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(agentic-ide): front-load pane titles for two-word truncation
rubenluetke10-beep871e9ed52cde
diff --git a/jarvis/agentic_ide/recap_engine.py b/jarvis/agentic_ide/recap_engine.pyindex b13675b7e7..b4bd7abbff 100644--- a/jarvis/agentic_ide/recap_engine.py+++ b/jarvis/agentic_ide/recap_engine.py@@ -246,23 +246,32 @@ past all of that to the work itself.Answer with exactly two physical lines and nothing else:-HEADLINE: <3-7 words, HARD MAXIMUM 48 characters. A self-contained navigation \-label for the user's problem or desired outcome, normally "subject — result". \-Put the unique subject first and a concrete result, blocker, or completion \-state second. No pane name, agent name, quotation marks, or trailing period.>+HEADLINE: <about 5 words, HARD MAXIMUM 48 characters. A self-contained \+navigation label for the user's problem or desired outcome, normally \+"subject — result". No pane name, agent name, quotation marks, or trailing \+period.>DETAIL: <exactly two complete sentences on this same physical line. State the \original goal first, then what has been achieved, what is blocked, or the next \step. Finish both sentences.>Rules:+- THE FIRST TWO WORDS MUST IDENTIFY THIS PANE ON THEIR OWN. Narrow sidebars \+truncate the headline after roughly two words, so they are often ALL the user \+sees. Front-load the most specific noun phrase this session has — the feature, \+the bug, the subsystem — and push everything generic behind it. Test yourself: \+if the first two words could open the headline of a DIFFERENT session in the \+same workspace, they are too generic.+- Never OPEN with a bare activity name ("Code Review", "Bug Fix", "Refactor", \+"Research") or process narration such as "Investigating", "Implementing", \+"Working on", "Fixing", "Analyzing", "Reviewing", or an equivalent phrase in \+the requested language. Name WHAT is being reviewed or fixed first; the \+activity may follow after it if room remains.- The headline answers "Which user problem or outcome is this pane for?", not \"Which generic engineering activity is happening?" Use the user's vocabulary \when the original request is visible; otherwise infer the outcome cautiously \from the work.-- Do not start the headline with process narration such as "Investigating", \-"Implementing", "Working on", "Fixing", "Analyzing", "Reviewing", or an \-equivalent phrase in the requested language. Those verbs spend the visible \-space before identifying the task.+- Aim for about 5 words. Shorter is acceptable only when the subject genuinely \+needs fewer; never pad, never exceed 48 characters.- Keep file paths, class names, commands and implementation mechanisms OUT of \the headline. Put useful technical evidence in DETAIL instead.- Be concrete in DETAIL. "Working on the code" is worthless. Name supported \@@ -277,7 +286,10 @@ plainly instead of inventing some.- Report, do not address the user, and do not offer help. No preamble, no \markdown, no bullet points, no code fences.-Headline examples (poor -> useful):+Headline examples (poor -> useful). Note how the first two words alone \+already say which session this is:+- "Code Review — 6 findings" -> \+"Pane titles review — 6 findings"- "Consolidating the workspace launcher into a single screen" -> \"Workspace setup — one clear screen"- "Fixing three bugs in the terminal notification system" -> \diff --git a/tests/unit/agentic_ide/test_recap_engine.py b/tests/unit/agentic_ide/test_recap_engine.pyindex 1c2e61184e..fa93155a6f 100644--- a/tests/unit/agentic_ide/test_recap_engine.py+++ b/tests/unit/agentic_ide/test_recap_engine.py@@ -271,6 +271,17 @@ def test_the_headline_prompt_is_an_outcome_label_that_fits_the_real_header() ->assert "Workspace setup — one clear screen" in system+def test_the_headline_prompt_front_loads_the_first_two_words() -> None:+ """The second screenshot's lesson: the rail truncates after ~2 words, so+ those two must identify the session alone — and 'Code Review' does not."""+ system = recap_engine._SYSTEM # noqa: SLF001 - the contract under test++ assert "FIRST TWO WORDS" in system+ assert "about 5 words" in system+ assert '"Code Review"' in system # named as a banned opener+ assert "Pane titles review — 6 findings" in system # ...and its repair++def test_a_pane_nobody_briefed_says_so_in_the_prompt() -> None:prompt = recap_engine.build_prompt(_pane(), _rows(10))