ATaC-team/ATaC
Record and Replay AI Agent Trajectories.
What is ATaC?
ATaC is an add-on for pi, an AI assistant that completes tasks by making "tool calls" — individual actions like reading a file, writing a file, or fetching data. When you ask pi to do something, it strings together many such calls.
ATaC's job is to notice when pi uses the same sequence of tool calls repeatedly (e.g., "read several files, combine them, write one output") and turn that sequence into a reusable JavaScript program. The tagline "Keep what works" captures this: instead of pi redoing the work from scratch each time, it can just run the saved program with new inputs.
How it works
- Work as usual. You give pi a task like normal. After pi finishes, ATaC quietly scans the session for tool-call sequences that look reusable and proposes them as program candidates.
- Test and publish. Candidates appear in an Inbox (
/atac:inbox) where you can review the code, see test reports, request changes, or publish. You can also enable fully automatic testing and publishing with/atac:permissions auto. - Reuse with new inputs. Once a program is published, pi is instructed to prefer using that program over repeating the same work manually — so future tasks with similar structure run faster and more reliably.
What a program looks like
A program is JavaScript that combines tool calls with logic. The README's example reads several text files in parallel, joins their contents, and writes a single combined file:
const notes = await Promise.all(
inputs.paths.map((path) => tools.read({ path })),
);
await tools.write({
path: inputs.output,
content: notes.join("\n\n"),
});
return { output: inputs.output };
Each program also includes a manifest (metadata describing what it does) and tests. The full format is documented in docs/programs.md.
The Inbox
/atac:inbox is the control center. From there you can:
- Review candidate programs
- Inspect their code and test reports
- Request revisions
- Browse already-published programs
Important detail: tests run against real tools using your existing pi permissions — so testing isn't simulated; it actually executes the tool calls.
Control modes
- Default: ATaC extracts programs automatically, but you review and publish them manually.
- Automatic:
/atac:permissions autoenables automatic testing and publishing. - Fully manual: You can also choose fully manual extraction and publishing. In this mode,
/atac:extractanalyzes unprocessed work from the current session together.
All modes keep their results in the Inbox.
Requirements & installation
- Requires Node.js 22.19+ and pi 1.1.x.
- Install with:
pi install https://github.com/ATaC-team/ATaC - After installing, restart pi or run
/reload, then use pi as usual.
Development
To work on ATaC itself: clone the repo, install dependencies with npm ci, link the checkout to pi with pi install /absolute/path/to/ATaC, and run checks via npm run check, npm test, and npm run test:package.
License
MIT.
Related
- Project
- Project
- Project
- Project
- Project