You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 94b22e8
Browse filesBrowse the repository at this point in the historyBrowse files
Everyday defaults: guards on, no time limit in the console
The loop detector, the stop check (task mode) and the time budget are on in
the built-in profiles, and Claude clears old tool results server-side. The
snapshot stays a benchmark setting. The built-in config sets no time limit:
the console runs without one, and -p, schedules and the SDKs fall back to 30
minutes. Docs explain the defaults and how the benchmark passes each task's
time limit.
Copy file name to clipboardExpand all lines: BLUEPRINT.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,13 +44,13 @@ gitagent 3 is a single static Rust binary that runs **agents defined as git repo
44
44
gitagent is measured on Terminal-Bench 2.1, and Terminal-Bench runs through **Harbor**, an open framework for running agents against containerised tasks. Harbor matters for four reasons.
45
45
46
46
1.**It is the same yardstick as the published results.** The leaderboards for Terminal-Bench 2.1 were produced with Harbor: the same task images, the same time limits, the same hidden tests, the same scoring. Running gitagent through it is what makes 93.03% comparable with the published 87.6% for Terminus 2 on the same model, rather than a number from a home-made runner.
47
-
2.**Grading is independent of the agent.** Harbor starts each task's container, hands the agent the instruction and the time limit, and when the agent has finished it runs the task's hidden tests itself and records the reward. gitagent never sees, reads or writes the tests. The result is a pass or a fail decided outside the agent, which is the only kind worth publishing.
47
+
2.**Grading is independent of the agent.** Harbor starts each task's container, hands the agent the instruction, stops it at the task's time limit, and when the agent has finished it runs the task's hidden tests itself and records the reward. gitagent never sees, reads or writes the tests. The result is a pass or a fail decided outside the agent, which is the only kind worth publishing.
48
48
3.**It fits a static binary.** Harbor's "installed agent" model uploads the agent into the task container and runs it there. gitagent is one binary with no runtime, so installing it is a single file copy, and nothing in the container has to change. The shim that does this, `gitagent_harbor/agent.py`, is about two hundred lines.
49
49
4.**It produces evidence others can check.** Harbor runs many trials in parallel, resumes trials that failed for reasons outside the agent (a revoked key, a full Docker network), keeps every trajectory and verifier log, and uploads a job publicly. The headline run's nine jobs, one per time limit, are public, so anyone can read every trial behind the number.
50
50
51
51
Harbor also hosts other benchmarks with the same task shape, SWE-bench Verified and SWE-bench Pro among them, so the same shim can be pointed at them without changes to the agent.
52
52
53
-
**How gitagent runs under Harbor.** The shim uploads the binary for the container's CPU to `/opt/gitagent/`, then runs `gitagent --bench --instruction-file … --model … --profile … --linger`. `--bench` makes the run depend only on files committed in the repository: no project or home configuration, no memory, no learning, no telemetry, repo mode refused, writes under `/tests` refused. `--linger` keeps the agent's shells open after it finishes, so a server it started is still up when the tests connect. The trajectory and counters are written to Harbor's log folder every turn, so even a timed-out trial keeps its record. A test, `bench_prompt_and_tools_match_the_published_run`, fails if the prompt or tool list sent to the model in `--bench` ever changes, so features built for agent folders can never leak into a scored run.
53
+
**How gitagent runs under Harbor.** The shim uploads the binary for the container's CPU to `/opt/gitagent/`, then runs `gitagent --bench --instruction-file … --model … --profile … --linger`. `--bench` makes the run depend only on files committed in the repository: no project or home configuration, no memory, no learning, no telemetry, repo mode refused, writes under `/tests` refused. `--linger` keeps the agent's shells open after it finishes, so a server it started is still up when the tests connect. Harbor enforces each task's time limit, but the shim is not given it, so `scripts/run-dev-pass.sh` reads the limit from each task's `task.toml`, starts one job per limit, and passes `--timeout-s` 60 seconds below it; the time budget then counts down against the real limit, and the run ends cleanly before Harbor stops the container. The trajectory and counters are written to Harbor's log folder every turn, so even a timed-out trial keeps its record. A test, `bench_prompt_and_tools_match_the_published_run`, fails if the prompt or tool list sent to the model in `--bench` ever changes, so features built for agent folders can never leak into a scored run.
54
54
55
55
---
56
56
@@ -127,6 +127,7 @@ Steps 4 to 9 repeat until the stop check accepts, the agent replies in conversat
127
127
| D21 | The terminal is the interface | One console with tool lines, approvals, a task board and command suggestions; no web server to secure |
128
128
| D22 | Landlock and seccomp around the agent's shell, not around gitagent | The agent cannot write outside its folders, while gitagent can still record |
129
129
| D23 |`--bench` reads only committed files, and a test pins its prompt and tools | Product features cannot change a scored run by accident |
130
+
| D24 | Everyday defaults keep the benchmark's guards, except the snapshot; the console has no time limit unless one is set | The loop detector, stop check and context clearing help in any repository; a person at the console stops a turn with Ctrl-C, while runs nobody watches keep a 30-minute ceiling; the snapshot costs up to 15 seconds per start in a project the user already knows |
130
131
131
132
**Left out on purpose:** critics that rewrite answers; best-of-N on benchmarks; memory or learning during a scored run; automated rewriting of the harness; masking every turn; third-party multi-provider frameworks; a web interface; voice; remote sandboxes.
Copy file name to clipboardExpand all lines: README.md
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ In interactive mode, Ctrl-C stops the current task and Ctrl-D or `exit` quits.
98
98
|`--config <file>`| A `gitagent.yaml` to use; its `prompts/` and `profiles/` override the built-ins |
99
99
|`--conversation`| A plain reply ends the run, instead of `task_complete` (always on in the console) |
100
100
|`--max-turns <n>`| Stop after this many model calls |
101
-
|`--timeout-s <seconds>`| Time budget for the run |
101
+
|`--timeout-s <seconds>`| Time limit for the run. Without one, the console has no limit and `-p` runs stop after 30 minutes|
102
102
|`--allowed-tools <a,b>`, `--disallowed-tools <a,b>`| Offer only these tools, or never these |
103
103
|`--append-system-prompt <text>`| Text added after the system prompt |
104
104
|`--workflow <name>`, `--input key=value`| Run one of the agent's workflows instead of a task |
@@ -276,6 +276,8 @@ The model is the same across these comparisons, so the difference lies in what t
276
276
277
277
None of these makes the model more capable. Together they remove the ways a capable model loses a task it could have solved: stopping too early, losing focus in long output, repeating itself, running out of time, and spending its opening turns on orientation. They also reinforce each other. A smaller context makes loops easier to escape, the time reminders leave room for the completion check to send work back before the deadline, and the cache savings make the extra verification turns nearly free.
278
278
279
+
Outside benchmarks, the same mechanisms are on by default, with two differences. The time reminders appear only when a run has a time limit, and the environment probe stays a benchmark setting. See [Configuration](#configuration).
280
+
279
281
**The rules behind the numbers** (`docs/INTEGRITY.md`, checked by `scripts/integrity-audit.sh`): the agent never reads a task's tests or verifier output, and a built-in guard refuses writes under `/tests`; the tasks used while developing were kept apart from the ones used to score; benchmark mode uses only the built-in configuration, with a test that fails if the prompt or tool list sent to the model ever changes.
280
282
281
283
## How gitagent works
@@ -292,7 +294,7 @@ Most agents are a prompt, a model and a bag of tools, and the interesting part i
292
294
293
295
**Reminders are appended, never injected.** The time left is shown on every result, and a reminder fires when the budget runs low. These go after the turn's results, never into earlier turns. Changing an earlier turn would invalidate the provider's prompt cache and the model's thinking blocks, so the whole history stays byte-identical and 92% of the input is served from cache. That is where the cost per run comes from.
294
296
295
-
**The loop detector.** If the model issues the same tool call with the same arguments and gets the same output twice, it is told so, with a nudge to change approach. Runaway loops are where other harnesses burn a time budget and a bill: a model that returns empty replies can be re-sent the whole growing conversation until the clock runs out. gitagent stops after the second repeat.
297
+
**The loop detector.** If the model makes the same tool call with the same arguments and gets the same output three times in a row, it is told so and asked to change approach. Runaway loops are where other harnesses burn a time budget and a bill: a model that returns empty replies can be re-sent the whole growing conversation until the clock runs out. gitagent breaks the loop at the third identical call.
296
298
297
299
**Context is managed, not truncated.** Old tool results are cleared in batches through the provider's own context editing, which does not count as a history edit. Near the end of the window the history is replaced by a structured summary, done, pending, key files, last failure, ruled out, with the original task repeated verbatim by the harness rather than paraphrased by the model, so the goal never drifts.
298
300
@@ -531,7 +533,14 @@ gitagent reads `gitagent.yaml` from `--config`, else the project folder (`gitage
531
533
|`agents/<name>.md`| Sub-agent definitions (`name`, `description`, `tools`, `disallowedTools`, `maxTurns`, `model`, `effort`; the body is the prompt), when the profile enables sub-agents |
532
534
|`.claude/agents/`, `.claude/skills/`, `.claude/settings.json`| An existing `.claude/` project layout, read as it is after the layers above: sub-agents and skills, and `PreToolUse` / `PostToolUse` hooks with their matchers, stdin JSON, exit codes and `hookSpecificOutput` answers (tool and argument names are translated both ways) |
533
535
534
-
`profile: auto` picks `anthropic`, `openai`, `google` or `compat` from the model's provider. Every behavior that changes results is a switch in the profile. Some features stay off until measured: the environment snapshot, the stop check, the time budget, the loop detector and hiding old tool output. Context compaction is on.
536
+
`profile: auto` picks `anthropic`, `openai`, `google` or `compat` from the model's provider. Every behavior that changes results is a switch in the profile. The defaults for everyday work:
537
+
538
+
-**On:** output shaping, context compaction, the loop detector, and the stop check for runs that end with `task_complete` (`-p` and SDK task mode; a reply ends a console turn, so it never fires there).
539
+
-**On for Claude models:** old tool results are cleared by the provider once the conversation passes 50,000 tokens.
540
+
-**On when the run has a time limit:** the minutes left on every result, a reminder at 70% of the limit and a final call at 90%.
541
+
-**Benchmark profiles only:** the environment snapshot, which adds up to 15 seconds to each start.
542
+
543
+
**Time limits.** Everyday work needs none. In the console a turn runs until it is done or you press Ctrl-C. Runs nobody watches (`-p`, schedules, the SDKs) stop after 30 minutes unless you set another limit with `timeout_s` in `gitagent.yaml`, `--timeout-s`, or `timeoutMs` over IPC. Setting `timeout_s` applies to the console too.
535
544
536
545
With `learning: online`, gitagent learns from each task it completes. The model reads the run's trajectory and proposes general lessons, which are saved in the project's `.gitagent/prompts/lessons.md`. A lesson is used only once two different tasks support it. Review the file like code: edit or delete lines freely. In repo mode the lessons are committed separately on the branch. `--bench` never learns and never loads project lessons.
537
546
@@ -551,9 +560,12 @@ On Linux, outside benchmark runs, the agent's shell runs under Landlock: it may
551
560
scripts/build-release.sh
552
561
PYTHONPATH=$PWD harbor run -d terminal-bench/terminal-bench-2-1 \
553
562
-a gitagent_harbor.agent:GitAgent -m anthropic/claude-opus-5-5 \
The profile is the one the published run used. Each task sets its own time limit in its `task.toml`. Harbor stops the agent at that limit, but the shim is not given it, so the limit is passed in with `timeout_s`: the task's limit minus 60 seconds, so gitagent finishes its work and its records before Harbor cuts it off. The example suits the tasks with the common 15-minute limit. `scripts/run-dev-pass.sh` handles every limit: it reads each task's limit, starts one Harbor job per limit, and passes the matching `timeout_s`. That is why the published run has one job per time limit.
568
+
557
569
The shim (`gitagent_harbor/agent.py`):
558
570
559
571
-**Install:** uploads the static binary for the container's CPU and runs it with `--bench`, which uses only the built-in configuration.
0 commit comments