Repository navigation
section-team v0.4.0
This release adds section rules from nine paid rounds on the platform-sized task p1 (tg to ph). It also adds:
- a design check by
plan-advisorbefore Max writes code for complex single-area work; - a
node-httpskill; - a memory guard;
- a team summary the plugin saves for you.
One held-out round on three other tasks (hq) measured this release before its last fix.
For platform work, pick Max. Round hq ran two runs per setup, judged blind by Codex and by Fable, on three tasks:
- h5: bug fixes and a new import in an existing service;
- h6: a JSON Patch library and its command-line tool;
- h7: a parts-store API and page, built in two stages.
Max ranked first in every case on both judges and passed every hidden test, at 10.5 times plain Claude Code's cost (12.8 times on h7). Balanced, the default, missed two of the bars set before the round; see Measured.
Balanced builders write the code first, then the tests, from the spec; Max keeps tests first.
- In Balanced, a standing tests-first instruction in a project's
CLAUDE.mdorAGENTS.mdgives way to this order. Only a job message that asks for tests first in words still holds. - In Balanced, the test gaps a passing grade lists are optional.
- A Balanced final review adds a test only for a probe that broke the spec, or for a spec line with no test.
Max checks complex single-area work before code. In Max, a single-area task with new concurrent writes, protocol framing, auth or crypto, on a product with no foundation note, first gets a short design note, and plan-advisor checks it before any code.
- The note is frozen with no questions and no OK from you. The supervisor picks defaults and lists them in its final summary.
- In a folder with no git repo, the supervisor creates one first.
section-team:node-http skill. The backend's rules for a server built on node:http itself, with no web framework, moved into this skill, and some were added. The backend loads it only for such a server. It covers:
- the replies Node writes itself: a request node:http would refuse (a method it does not know, a broken request line) is answered through its
clientErrorhandler; - requests sent in one write, answered in order;
- request bodies: where the spec has the whole body read before any reply, a reply written by hand on the
clientErroror CONNECT path waits for every declared byte, up to Node's request limit; - a client that ends its sending side first, which still gets its reply.
Memory guard. The first Bash or PowerShell call by a section starts one guard for the session.
- Every 5 seconds the guard stops any process the session started that holds more memory than the limit. That covers the sections' commands, the supervisor's commands and the session's MCP servers, but never Claude Code itself. Each stop is logged in
.team/tmp/memory-guard.log. - On Windows the guard is on by default, and the limit is 75% of physical memory, never under 4096 MB.
- On macOS and Linux it runs only when
SECTION_TEAM_MEMORY_LIMIT_MBholds a limit. SECTION_TEAM_MEMORY_LIMIT_MBsets the limit as a whole number of MB, and0turns the guard off.
The plugin saves the team summary. The supervisor writes its summary under a ## Team summary heading, and the plugin saves it to .team/reports/. While sections are still running, the supervisor answers each hand-back in one line.
Fixed: a long hand-back or notification is no longer saved as your request. 0.3.0 had a bug that also affected hand-backs and task notifications of 3000 characters or more (from an agent, a teammate, a side session or a CI monitor):
- it saved them under
.team/reports/as-user-request.mdfiles; - it pointed sections to those files as if they were your words.
0.4.0 no longer does either.
Scratch folders. Before each tool call of a builder section, the plugin makes .team/tmp/<section id>/ for that section's scratch files, such as probe scripts and logs. In a worktree session the folder is in the worktree.
- The empty folder stays.
.team/is git-ignored by default. If you keep.team/in git, scratch files there show ingit statusuntil they are removed.- Sections put copies of the project in the system temp folder.
Foundation note.
- Slices side by side. Slices that share nothing (no shared files, and contracts already in the note) are built side by side instead of one at a time.
- Sections per slice. Each slice in the note names the sections it wakes. A slice that touches auth, payments, uploads or secrets includes the security section.
- Check after each slice. Each slice, or each set of slices built side by side, still ends with the testing section's whole-stack check.
- Later jobs inside the note's areas. A later job that builds inside the note's areas and changes nothing the note states records its design in
.team/notes/decisions.md. It leaves the note alone and wakes no plan advisor. - Changes are written in place. A change to the frozen note, and each plan-advisor fix taken for it, is written into the lines it changes instead of appended as override blocks. This is not measured yet.
Section rules from the p1 rounds. Added to the sections' house rules and roles, the reviewer's rubric and the testing section's probes:
- one clock reading per request; the spec outranks advice and a job message's rewording of it;
- the SQLite write lock taken at the start of a write transaction;
- an outside call made once per request (with its attempts as the spec counts them) with no transaction open; an answer stored beside its data never replaces one stored from newer data;
- work the server does itself between a read and the write (such as a password hash) is never used once the rows it came from have changed;
- a configured URL keeps its path, with only the characters a request line cannot carry percent-encoded;
- late replies on a page:
- where the spec lists which late replies change nothing (from overlapping requests, or from before a logout), the page follows it;
- where it lists none, a newer request that redraws the same place on screen wins over an older one, and a reply that adds to a place is still applied;
- nothing from before a logout is shown;
- a spec break that happens only at a rare moment is a failing item, never optional;
- builders and the coder never change a product file in place just to watch a test fail (a mutation check goes in a copy of the project in the system temp folder);
- every test run is bounded from outside, a time limit inside a test catches a hang only, and a test a busy machine can fail is a fix;
- the testing section reads the code for what probes miss, and Max's second final review reads the code instead of probing again;
ai-llmloadsclaude-apionly when the job calls Claude.
Benchmark harness.
- Claude Code's own advisor tool is kept out of bench runs.
- The supervisor's chat peak is read per pass.
- Judges get the fixture databases a solution's tests use.
Measured. Round hq ran at plugin commit d795636, which is this release without its last fix. It had two runs per setup, judged blind by Codex and Fable (12 cases each):
| Cost × solo | Hidden tests h5 / h6 / h7 (of 25 / 47 / 148) | Codex | Fable | Ranked 1st (Codex / Fable) | |
|---|---|---|---|---|---|
| Plain Claude Code (solo) | 1.0 ($11.19 for 6 runs) | 25 / 47 / 146 | 7.92 | 7.17 | 0 / 0 of 12 |
| Balanced | 5.2 | 25 / 47 / 147 | 8.58 | 8.50 | 0 / 0 of 12 |
| Max | 10.5 | 25 / 47 / 148 | 9.42 | 9.00 | 12 / 12 of 12 |
- Max met its bar, which was set before the round: never below Balanced on either judge, and ahead on at least one. It was ahead on both, by 0.83 on Codex and 0.50 on Fable.
- Balanced missed two bars set before the round:
- Codex put it 0.67 above solo, against a bar of 1.0. Fable put it 1.33 above.
- It cost 5.2 times solo, against a limit of 5. h5 and h6 were under 5×, and h7 was 6.6×.
- Test strength: on h5, Codex found no functional defect in any Balanced or Max build; the gap was test strength.
- Last p1 round: in ph, at 8713aa3, Balanced was 1.5 (Codex) and 2.0 (Fable) above solo at 4.7 times its cost, and every run passed all 264 hidden tests.
- Every round is in the README.
Not measured yet
- The frozen-note change (commit 2003125) came after round hq.
- Balanced's two misses in hq stand. A change for Balanced's test strength is now being measured on new tasks. It ships only if it passes.
- Any saving in real use.
- Sample size: two runs per setup per round.
Upgrade. Update the plugin, or pull your clone, then start a new session. This release changes every section file in agents/. In agents/backend.md it adds section-team:node-http to the go-to skills line. In agents/ai-llm.md that line changes because claude-api is no longer preloaded. If you gave sections skills with add-skill or assign-skill in a clone:
- Not committed (
assign-skillalone does not commit):git pullstops before it merges.- Run
git checkout -- agents. The files are generated, and your skills stay inscripts/roster-extra.json. - Pull.
- Run
node scripts/gen-agents.mjs.
- Run
- Committed (
add-skillcommits them):- Run
git pull --no-rebase. - When it stops with conflicts in
agents/*.md, runnode scripts/gen-agents.mjsto rebuild them from the new roster plus yourscripts/roster-extra.json. - Run
git add agents, then finish the merge withgit commit.
- Run
Requirements: Claude Code with plugin support (2.1.275 or later for the one-command install). Access to Opus 5.5, Sonnet 5.5 and Haiku 5.5. Node.js 22.3 or later (or 20.16 or later) for the hooks.