closedtab: a npm shared memory for you and your AI agents
My latest contribution to your human-agent stack is a very basic but necessary tool for smaller human-agent collaborations that produce a lot of back and forth work. After-action reports are a common tool used in the military as a way to review fieldwork, report what happened and reflect on what we can do better next time. It's also a useful way for people who weren't there, to read up on what happened so they're able to chime in. They're simple, readable, and yet detailed with what you need to know.
TL;DR: The repo is here or you can find it directly on npm.
I started using this format for my own human-agent projects last year. While I've written a lot about the judgment layer, about decision engineering and the blindspots that much of the AI-verse seems to have about speed, shipping and ignoring the gates to understand what's actually happening, this wasn't borne out of those frustrations. It was done just for me. The manifestations were different too. Sometimes, it was a multi-agent workflow with one agent as product manager, another as designer-engineer, another as the engineer, and me the human as product owner. Others were more traditional 1:1 collaborations with a single agent making improvements or changes.
My AARs take a lot of different shapes, but I ship them often. Pretty much after any feature sprint with an agent, I'll ensure it produces an AAR after and at this point, they know the format and do them without me asking even on projects where I forget to mention it to the agent.
Why I built this
Agents move fast and work across many sessions. You set a direction, an agent builds a piece, another agent picks up the next piece, and weeks later someone reopens the project to add more. Everyone in that chain reads better when there is a short record of what happened: what you asked for, what the agent did, the calls it made on its own, how it was checked, and what the next agent should know.
That record is the point. Write it once, and future-you, the next agent, and the agent re-reading it three sprints later all share the same trail. closedtab gives the record a consistent shape so it stays quick to write and easy to read. The shape is a six-part review — Intent, Action, Judgment, Deviation, Consequence, Change — built around one idea: outputs are easy to measure, and judgment is hard.
Two parts earn their keep:
- Judgment holds the decisions the agent made on its own, which of those a human should have made or seen, and where it should have escalated. This is the part a future reader goes to first.
- Deviation holds where what happened came apart from what was meant, the root cause, and the places the agent was confidently wrong. Read across many runs, the Deviation patterns tell you how a given agent actually behaves.
What you'd use it for
Write one for any agent run the team will want to remember. The default is the full Agent Action Record. There are lighter task templates too, each writing to its own prefix:
- A bug fix (
--type bugfix): what was reported, the root cause, the fix, how you verified it. - A feature you built (
--type feature): what shipped, the design decisions, how it was checked. - A decision worth recording (
--type adr): the context, the decision, the alternatives you weighed, and who made the call. - An end-of-sprint handoff (
--type handoff): the current state, where to pick up, the parts to keep stable, and the open questions for you.
Many teams write one per pull request. I keep all of my AARs in a folder within the repo called docs/ and over time, can even have a separate agent run analysis on that folder to understand the work that's been done, where there are gaps, lessons learned, project trajectory and so forth.