Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(brain): stop the model re-searching facts the wiki context already holds
Ruben Lütke471d767d45e8
diff --git a/jarvis/brain/wiki_relevance.py b/jarvis/brain/wiki_relevance.pyindex 269c07cecd..783b670390 100644--- a/jarvis/brain/wiki_relevance.py+++ b/jarvis/brain/wiki_relevance.py@@ -279,7 +279,9 @@ _CONTEXT_HEADER = ("with the question. Use a note only if it directly helps answer what was ""actually asked. If it does not, ignore it completely and do not mention ""it, allude to it, or work it into the answer. Never volunteer a personal "- "detail the question did not ask for."+ "detail the question did not ask for. If a note already answers the "+ "question, answer directly from it — do not call a knowledge-search tool "+ "to re-find the same fact; search only for what these notes do not cover.")diff --git a/tests/unit/brain/test_wiki_relevance.py b/tests/unit/brain/test_wiki_relevance.pyindex 313e85f48d..f63c0f0327 100644--- a/tests/unit/brain/test_wiki_relevance.py+++ b/tests/unit/brain/test_wiki_relevance.py@@ -176,5 +176,15 @@ def test_framed_block_tells_the_model_it_may_be_irrelevant() -> None:assert "may have nothing to do" in lowered+def test_framed_block_forbids_redundant_knowledge_tool_calls() -> None:+ """The other half of the contract: when a note already answers, the+ model must not burn tool rounds re-finding the same fact (live trace+ 2026-07-26: a dentist question spent ~10 rounds with the answer already+ injected)."""+ lowered = frame_context_block(["**Dentist**: 15 April, 14:00"]).lower()+ assert "do not call a knowledge-search tool" in lowered+ assert "answer directly" in lowered++def test_framing_an_empty_list_yields_nothing_to_append() -> None:assert frame_context_block([]) == ""