From 0de9413438fb5115d2da40b070d73412549ce752 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Tue, 24 Nov 2026 18:37:51 +0530 Subject: Add Agentux Solo autonomous research engine Deterministic enforcement of the RETRIEVE->IDENTIFY->RESEARCH->SAVE->ANSWER cycle for small models. The engine searches memory first, nudges the model when it tries to answer without researching, and auto-saves web results so the cycle completes even when a 0.5B model cannot emit a valid save_knowledge tool call. - src/agentux/solo_engine.py: SoloEngine with event-driven run loop, multi-strategy memory retrieval, research/save nudges, and auto-save - src/agentux/knowledge.py: SQLite knowledge store (knowledge, sources, research_history, metadata tables) - src/agentux/solo.py: SOLO_SYSTEM_PROMPT, looks_like_question heuristic, solo_preset, apply_solo - src/agentux/cli.py: --solo-engine flag and run_solo_engine() entry point that wires the engine to the live Ollama provider - tests/test_solo_engine.py: 31 tests covering the full research cycle Verified end-to-end against qwen2.5:0.5b: first run researches and saves, second run answers from memory. Co-Authored-By: Claude Code --- src/agentux/cli.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/agentux/cli.py') diff --git a/src/agentux/cli.py b/src/agentux/cli.py index a165da4..aabd2f7 100644 --- a/src/agentux/cli.py +++ b/src/agentux/cli.py @@ -1080,7 +1080,11 @@ def main(argv: Optional[List[str]] = None) -> int: if getattr(args, "web", False): from .web import WebServer agent = build_agent(config, args, mcp_manager=manager, stream=stream) - web_server = WebServer(agent, config, port=getattr(args, "port", 8080)) + try: + web_server = WebServer(agent, config, port=getattr(args, "port", 8080)) + except RuntimeError as exc: + console.print(f"[bold red]⌋ web console error[/bold red] {exc}") + return 1 web_server.start(open_browser=getattr(args, "open", False)) console.print(f"\n [bold #00ff88]⏣ AGENTUX · Web Console[/bold #00ff88]\n") console.print(f" • Local URL: [bold cyan]{web_server.url}[/bold cyan]") -- cgit v1.2.3