|
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 <noreply@anthropic.com>
|