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
feat(cli): teach the brain to interpret cli_* results, not read them raw
Ruben Lütke2c42a87c28f7
diff --git a/jarvis/clis/prompt_section.py b/jarvis/clis/prompt_section.pyindex a27267350e..063e2897f0 100644--- a/jarvis/clis/prompt_section.py+++ b/jarvis/clis/prompt_section.py@@ -28,7 +28,14 @@ _FOOTER = ("machine-readable output flags (--json, --format json) when the CLI ""supports them. If you are unsure of the exact command or flags, first run ""`<cli> --help` or `<cli> <group> --help` (read-only) to discover them, "- "then issue the real command."+ "then issue the real command.\n"+ "Each cli_* tool result is a structured object: "+ "{success, output:{exit_code, stdout, stderr, duration_ms}, error}. "+ "An exit_code of 0 means success and stdout holds the real result (often "+ "JSON) — read it, then summarize it in your own natural words. Never read "+ "the result object, the JSON envelope, the exit code, or table characters "+ "aloud. On a non-zero exit_code, briefly explain the cause from stderr in "+ "plain language; never quote the error object.")diff --git a/tests/unit/clis/test_prompt_section.py b/tests/unit/clis/test_prompt_section.pyindex aea03154c4..5a8426ef44 100644--- a/tests/unit/clis/test_prompt_section.py+++ b/tests/unit/clis/test_prompt_section.py@@ -55,3 +55,16 @@ def test_section_tells_model_to_self_discover_with_help():fake = FakeCliRegistry({"gh": make_spec("gh")}, active=[FakeTool("cli_gh")])out = render_connected_clis_section(fake)assert "--help" in out+++def test_section_explains_cli_result_interpretation():+ from jarvis.clis.prompt_section import render_connected_clis_section++ fake = FakeCliRegistry({"gh": make_spec("gh")}, active=[FakeTool("cli_gh")])+ out = render_connected_clis_section(fake)+ # Describes the structured result shape …+ assert "exit_code" in out+ assert "stdout" in out+ # … and tells the model to interpret stdout, not read the envelope aloud.+ assert "summarize" in out.lower() or "natural" in out.lower()+ assert "never read" in out.lower()