Cut the work so each piece fits one context.
Then decide what runs each piece.
At about 100k tokens the model starts to lose what sits in the middle.
A long context degrades before it is full.
One task fits one fresh session
and ends with one test you approved.
If you cannot write the test yet, it is still planning.
Planning ends in a file, not in an agent run.
Backlog.md is one tool that keeps files in this shape, with a list and a board over them.
# backlog/tasks/task-1 - Wrap-XFOIL-as-a-pi-tool.md
## Description
Register xfoil_polar in an extension so the agent can run a NACA polar with a schema.
## Acceptance Criteria
- [ ] #1 node test-tool.mjs returns the NACA 2412 table with CL(4 deg) = 0.715 ± 0.001
- [ ] #2 A NACA code that is not 4 digits raises an error; nothing reaches XFOILA fresh session gets the repo, the task file and the test.
Not the previous transcript.
| Answer | Where the output goes | Choose it when | Example |
|---|---|---|---|
| Skill | Into this context, when the model asks | The model lacks know-how, not code | SKILL.md on ncrit |
| Tool | Into this context, through a schema | A step must run the same way every time | xfoil_polar |
| Script | Into a file; no model | You can write the for-loop | sweep.py |
| Agent | Into a fresh context; only the answer returns | Output you will not read, or a different model | xfoil-analyst |
| Group | Members | What the projects share |
|---|---|---|
| A | Kevin, Ruizhe, Allegra, Shreya | Public datasets and long data pipelines |
| B | Madison, Grace, Kazuki | CFD solvers and interpretation |
| C | Bjarni, Anna, Nathanael | A simulation code to wrap, checked against published or existing numbers |
| D | Michael, Stephen, Hugh | A training or build loop the agent sets up, launches and summarizes |
| E | Ben, Menna, Ufuk | A formulation or controller checked for meaning and problem validity |
| Technique | Session | The rule |
|---|---|---|
| Context | 2, 3 | All the model knows about your problem is in the window |
| Skill | 3 | A file the model reads when the task matches |
| Sandbox | 4 | Limit what a wrong tool call can do |
| Approved tests | 6 | The agent proposes tests; you approve them |
| Task file | 7 | One task, one fresh session, one approved test |
| Tool, script, agent | 7 | Where does the output go? A schema, a file, a fresh context |
Anthropic, Building effective agents, the section on workflows and agents (10 min). The pi-subagents README, the first two sections (5 min).
Subagents and orchestration. We build a skill, a tool, a script and an agent together, on one problem.