Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

S1 task set

The streamlining bet is empirical: a minimalist harness with a good prompt outperforms a complex one. This page is the run that decides it. It is the exit criterion for S1 in streamlining.md, and it runs against two builds of the same commit:

# The before: the tools the roadmap kept.
cargo run -p robi --bin robi-api --features read-tools,edit-tools

# The after: shell only, which is the default build.
cargo run -p robi --bin robi-api

Everything else is held equal: the same model, the same model settings, the same AGENTS.md, the same workspace at the same commit, and the same user instruction. Do not tune the prompt between runs. The point is to compare the harnesses, not to make the new one win.

The tasks

Each is one session, started from a clean tree, in this repository. Together they cover the four jobs the tools used to own: read, search, edit, verify.

#TaskWhat it is testing
T1“Read crates/robi/src/agent/tools/shell.rs and tell me what Shell::execute does when the command fails”A read of a known file. read_file versus sed/cat.
T2“Where is ShellAccess decided for each mode, and what else would need to change to add a mode?”A search across files. grep/find versus grep -rn.
T3“In crates/robi/src/agent/tools/shell.rs, add a hint to the payload when the command exits non-zero but the sandbox did not block anything. Do not change the blocked-path hint.”A small exact edit in a known file, plus verification.
T4“Add a --verbose note to docs/src/guides/editor.md’s ‘See what changed’ section, then confirm the markdown still builds”An edit plus a real verification command.
T5“Why does a read-only shell refuse cargo check, and what would it take to allow it?”Reasoning over the sandbox profile, with no edit.
T6“Rename the WriteAccess::ReadWrite variant to ReadWrite … “ — pick a task from your own backlogAn unfamiliar edit, so the result is not memorised.

T6 exists because the first five are in a repository the model has seen. Choose a one-file change in a workspace the model has not been trained on, keep it identical across both runs, and discard the task if either run touches a second file.

The metrics

Record one row per task per build. Six numbers, because one is not enough:

MetricWhy it mattersWhere it comes from
Task successThe only one that matters if it moves the wrong wayDid the edit land, and does it do what was asked? Read the diff.
Model turns to doneA shell-first agent that needs ten extra turns is not simplerThe loop records an iteration per turn
Tool-call errorsShell syntax mistakes, bad paths, failed replacementstool failed and invalid arguments in the log
Tokens in and outThe prompt gets longer and the schemas get shorter; measure the netProvider usage on the turn
Time to first useful diffPerceived speed, not wall-clockFirst file_changed or git diff in the trace
Approval prompts per taskFewer prompts is the point; more means the sandbox is doing too muchawaiting_approval frames

The roadmap’s exit criterion is stated against the first three: the same number of turns as today, with no higher rate of failed commands. If the shell-only build does not clear that, the answer is not to rewrite the prompt first — it is --features read-tools, which restores the read half alone and leaves editing on the shell.

Reading the traces

A single number will not decide this. Read the turns where the shell-only build lost, and classify each loss:

LossFix
The model does not know a command formA prompt hint in agent/prompt/editing.rs
The model knows the form and needs three calls to do what one tool didA missing tool; consider read-tools
The command is refused by the sandboxA policy question, not a prompt question
The model gives up and asks the userA prompt ordering problem, usually

That distinction — prompt hint versus missing tool — is the roadmap’s main open question, and it is a judgement call over traces, not a score.

What was already measured without running this

Two things are facts rather than measurements, and they are in the plan:

  • The default build drops tree-sitter, fastembed, and sqlite-vec from the dependency graph. cargo tree -p robi | grep -E 'tree-sitter|fastembed|sqlite-vec' prints nothing. A later change deleted the crates outright, so no feature brings them back.
  • A cold workspace start issues no index work, because there is no IndexHub and no index task left in the tree.

The task set above is what still needs a human at the keyboard.