Spaces:
Sleeping
Sleeping
Commit History
-
Fix parallel-research display: per-call stats in CLI and web UI (#49)
Aksel Joonas Reedi +1: lee101 Unverified signatureWhen multiple research sub-agents ran concurrently, the CLI collapsed them into a single flickering slot and every web-UI tool card showed the aggregate across all agents — so 3 parallel calls looked like 1. CLI (agent/utils/terminal_display.py): - Replace the global SubAgentDisplay singleton with SubAgentDisplayManager that tracks each agent by agent_id and renders one block per agent with independent (tool count · tokens · elapsed). - 4 rolling tool-call lines per agent (was 2). - When 2+ agents are live, switch to a compact one-line-per-agent layout (label + stats + most-recent tool). Detailed 4-line rolling view only when a single agent is active. Keeps the live region small enough to fit on one terminal page so cursor-up/erase doesn't drift when content would otherwise scroll into scrollback. - Clip every live-region line to terminal width (ANSI-aware) so a wrapped line can't corrupt the cursor-up math on narrow terminals. - On completion, erase the live block and f…5ab7c4e -
Merge pull request #50 from huggingface/fix/ctrl-c-and-streaming-rework
Aksel Joonas ReediUnverified signatureCLI: global Ctrl+C, progressive streaming, headless cleanup1481358 -
Merge pull request #51 from huggingface/feat/hf-auto-routing
Aksel Joonas ReediUnverified signatureRoute HF inference through /v1 auto-router + reasoning effort knobdc35197 -
Fix CLI particle logo text: ML AGENT → ML INTERN (#46)
Aksel Joonas ReediUnverified signature8b5b1bf -
Route HF inference through /v1 auto-router + add reasoning_effort knob
Users paste bare HF model ids (MiniMaxAI/MiniMax-M2.7, moonshotai/Kimi-K2.6) with an optional :fastest|cheapest|preferred|<provider> suffix; the router picks a provider and handles failover. /model does a live preflight against /v1/models and prints providers, pricing, context, tool support — warn-and- allow for unknowns with fuzzy suggestions. Friendly messages replace LiteLLM's raw traceback for model/provider mismatches, and the noisy 'Give Feedback' banner is suppressed. Adds a reasoning_effort config + /effort command (default high). OpenAI and Anthropic get the top-level param natively; HF router gets it via extra_body with minimal->low normalization for models like MiniMax M2 that require reasoning. Frontend + backend model selectors updated to the bare-id format.0a9e96d -
CLI: global Ctrl+C handling, progressive streaming, headless cleanup
Ctrl+C: - Install a SIGINT handler via loop.add_signal_handler, re-armed each loop iteration since prompt_toolkit wipes it on prompt_async exit. - First press cancels the current turn (session.cancel() sets the asyncio Event the agent loop already checks between tokens and tool boundaries). - Second press within 1s exits the CLI. Hint is shown on first press. - Approval prompt Ctrl+C/EOF rejects remaining items instead of crashing the event listener (which used to deadlock the main loop). Streaming: - print_markdown is async and uses asyncio.sleep for the typewriter, so the event loop can service signal handlers between characters. The old time.sleep loop was blocking SIGINT delivery during a full response. - On Ctrl+C mid-render, stop cleanly (no dumping the remainder) and emit an ANSI reset so half-open color state doesn't bleed onto the next line. - _StreamBuffer renders block-by-block (paragraphs split on \\n\\n) as the LLM produces them, rather than buffering the wh…f08efb1
-
Update particle logo text to ML AGENT
b3993a3
-
Enhance terminal display with new markdown emphasis styles
Add support for various markdown emphasis styles in the terminal display, including strong, emphasis, code, code block, and headers. Update the Console configuration to ensure ANSI styles are preserved during rendering.e76b3d1
-
Refactor approval handling and enhance markdown table styles
4501765
-
Enhance user experience by clearing 'Waiting for approval' status immediately upon approval and refining markdown table styles for better readability and aesthetics.
4a5df81
-
Research stats tick every second via background timer
9d8d295 -
Live research stats: tool count, tokens, elapsed time in header
a96af97 -
Show full sub-agent tool call lines, no truncation
3d0a369 -
Sub-agent display: 2 lines, gray, 20 char truncation
ca36d1f -
Indent ASCII banner to match all other output
6132a19 -
Indent all agent output, remove turn separator line
ad9fcf9 -
Render streamed responses as markdown, indent agent output for alignment
f8cf893 -
Tool output: last 10 lines for main agent, rolling 3-line display for sub-agents
01df4c7 -
Full HF-yellow ASCII art banner for CLI
c99339e -
Overhaul CLI visual design with rich-powered formatting
- Replace ASCII banner with compact rich Panel - Remove init noise (token loaded, MCP servers, etc.) - Replace "Turn complete" banner with subtle separator - Tool calls display as clean `▸ name args` - Rich-themed help command with syntax highlighting - Centralize all display functions in terminal_display module - Remove Colors class dependency from reliability_checks8c7924f
-
adding token counts
551d5e0 -
smol cleanup
712aaa7
-
new system prompt and push to hub automatic checks
Henri Bonamyc45e68e
-
formatting + typo fix
eaf2575
-
color for output, tool output truncation, plan printing
Henri Bonamy258ab19
-
minimal impl. of the agent
5fe810b