How to get set up, then how every part of it works.
eng.town keeps every AI-agent session you run, so none of it is lost. A small program on your Mac finds the transcripts your agents leave behind, removes secrets, and uploads the ones about work repos. Everything after that — reading, searching, costing, analysing — happens here.
your Mac eng.town
-------- --------
Claude Code \
Codex > eng-town --> sessions --> read / search / copy
Buzz, etc. / (asks first) |
+--------> analytics (tokens, cost)
+--------> insights (weekly agent)
+--------> MCP (your agents read it back)New here? Get set up is the five-minute version: sign up, install the collector, connect your agents.
Two things are worth knowing before anything else. Nothing is uploaded without your say-so — see Consent model. And your sessions are private to you unless you share one, enforced inside the database rather than by this website — see Team management.
One command, or one prompt for the agent you already have open
Everything is one command. It installs the collector, enrolls this Mac, puts eng-town on your PATH, registers the MCP server so your agents can read your archive, and checks its own work at the end. About two minutes, most of it waiting.
Before anything works, you need a team. Signing in for the first time creates one for you, and an invite link from a teammate's admin puts you on theirs instead. Sort that out first, then run this.
curl -fsSL https://eng.town/releases/install.sh | shPaste this prompt into Claude Code or Codex. It runs the install and checks the result.
Please set up eng.town on this Mac for me, then check that it works.
eng.town is a private team archive of AI-agent chat transcripts (Claude Code, Codex, Buzz, Conductor),
so we can search and re-read them later. This Mac uploads nothing on its own: a thread reaches
eng.town only when I ask my agent to upload it. Run this single command — it installs the collector,
enrolls this machine, adds the command to my PATH, registers its MCP server (which gives you the
upload tool), and self-checks at the end:
curl -fsSL https://eng.town/releases/install.sh | sh
Things to know while it runs:
1. If it prints a notice about what it will and will not collect and waits for Enter, read it out to
me and press Enter.
2. It prints an enrollment URL with a code, e.g.
"Open https://app.eng.town/enroll?code=ABCD-1234-WXYZ". **I have to open that link in my browser and
confirm the code — you cannot do it for me.** Show me the URL and the code clearly and wait; the
installer polls and continues on its own once I confirm.
3. It asks one yes/no question about AI analysis of my sessions. Ask me before answering — do not
answer it on my behalf.
When it finishes, verify it and report back:
- Run `eng-town doctor` and tell me if anything failed.
- Confirm an "eng-town" entry exists in ~/.claude.json under mcpServers.
Then tell me, in a few lines:
- whether the install succeeded, and anything that did not,
- that I should open a new terminal (or run `exec $SHELL`) for `eng-town` to be on my PATH,
- that I should restart Claude Code for the MCP server to load,
- that nothing has been uploaded, and that to upload a thread I ask my agent to "upload this thread to
eng-town" (or run `eng-town upload`), and can ask again later to send a newer copy.
Rules: do not change any of my other configuration, and do not upload or share any sessions — that is
my decision, thread by thread. If a step fails, stop and show me the exact output rather than trying
to work around it.n for no, changeable any time on the Insights tab. If nobody is at the keyboard — a scripted or fleet install — it stays off and asks you next time.eng-town on your PATH, and the eng-town MCP server in ~/.claude.json, which gives your agent the upload tool.exec $SHELL) so your shell picks up the PATH change, and restart Claude Code so it loads the MCP server.upload this thread to eng-townOr run eng-town upload yourself. Each upload is a copy of the thread as it is right then. Carry on working and ask again, and the newer copy replaces the old one.
A folder that should always upload — say, one where a nightly agent runs dozens of chats — can be listed once, from inside it:
eng-town folders addEvery session in that folder, or below it, then uploads by itself: after each Claude Code turn, and in an hourly catch-up for everything else. eng-town folders shows the list; eng-town folders remove takes a folder off it.
The MCP server registers as eng-town. It can upload the thread you are in, remove one of your own sessions, and read your archive: search your sessions, list recent ones, summarise one, fetch one, and find related work. It reuses the device key from the install, so there is nothing new to log into. Ask your agent “what did I do about the webhook last week?” and it can go and look instead of asking you.
The dot in the sidebar is your collector. Green means it is set up and your last upload went through, red means your last upload reported errors (Devices shows them), and grey means no Mac is enrolled yet. A quiet week is not a problem: unless you listed a folder, your Mac only talks to eng.town when you ask it to. On the machine itself:
eng-town doctor # config, permissions, server — all in oneThe one command is eng-town install with the download in front of it, so every step has a switch. --no-path leaves your shell config alone, --no-mcp skips the ~/.claude.json entry. Re-running eng-town install is safe: every step checks before it acts, so it repairs what is missing and leaves the rest alone.
The command is eng-town. The older name agent-sync still works and still names the folder on disk (~/.agent-sync), so a working install is never renamed underneath you.
The program on your Mac that finds transcripts, cleans them, and uploads them
eng-town is a single program on each Mac and each box. It finds the transcript of the thread you ask it to upload, removes secrets, and sends what is left. Everything you see in eng.town got here through it.
eng-town upload. Nothing else uploads on its own, with one exception below.eng-town folders add puts a folder on your own list. Sessions that run in it, or below it, upload by themselves: a Claude Code hook starts an upload after each turn (at most once a minute per session), and an hourly job catches up on the rest, Codex included, sending only threads that changed. The list stays on your Mac; with nothing on it, the hook and the hourly job are not installed at all.Each upload is a copy of the thread at that moment. Uploading the same thread again sends a newer copy, which replaces the old one; it never makes a duplicate. A #private marker in a chat, or a .agent-sync-ignore file in a folder, keeps a thread off eng.town however it would have been uploaded.
| App | Where its transcripts live |
|---|---|
| Claude Code | ~/.claude/projects/ — main sessions and their sub-agents |
| Codex | ~/.codex/sessions/ and archived sessions |
| Buzz, Conductor, company-os | their own stores |
Every session carries the name of the repo it ran in, worked out from the git remote of its folder (worktrees and Conductor workspaces resolve back to their parent repo). It is only a label: it lets you filter Sessions and Analytics by repo, and it never decides what gets uploaded. A session that ran outside a git repo with a remote — a plain folder, say — has no label and shows —.
[REDACTED:anthropic] and the like. Fourteen pattern families are matched — Anthropic, OpenAI and GitHub tokens, AWS keys, Slack and Google tokens, Stripe keys, JWTs, bearer headers, private key blocks, passwords inside URLs, and SOMETHING_SECRET=… style assignments.If an upload is interrupted, ask again. The server recognises every message it already has and writes each one once, so repeating an upload never doubles anything.
| Command | What it does |
|---|---|
eng-town upload | upload the thread you are in, or send a newer copy of it |
eng-town folders add | make the folder you are in upload its sessions on their own |
eng-town doctor | checks config, permissions, the server and automatic uploads |
eng-town mcp --install | give your agents the upload tool and your archive — see below |
eng-town mcp --install registers eng.town as an MCP server in Claude Code. It adds two actions — upload the thread you are in, and remove one of your own sessions — and five read-only tools: search sessions, list recent ones, summarise one, fetch one, and find related work. So an agent can pull context out of what you did last week instead of asking you to explain it again. It reuses the device key you already have; there is nothing new to log into.
Cost, time and output over a period, by person, app, model and repo
Analytics answers “what did our agents cost, and what did we get for it?” Pick a period. Eight headline numbers sit on top, each with its change from the period before. Below them, five tabs: Spend, Time, Work done, Friction and People. Members see their own sessions; admins see everyone. Every filter applies to every number on the page.
These definitions are worth reading once, because two people looking at the same chart should agree on what it says.
| Metric | Definition |
|---|---|
| Session | one top-level chat. Sub-agents are not counted separately. |
| Prompt | a message you actually typed — automatic and system messages do not count |
| Tokens | input + cache read + cache write + output |
| Cache hit rate | cache reads as a share of everything the model read |
| Cache savings | what cache reads saved compared with paying the full input price |
| Agent time | the gaps between messages that ended with the agent speaking. A gap over 30 minutes counts as a break, not work. |
| Waiting for a person | the gaps that ended with your next prompt — the agent was done and waiting on you |
| Files and lines changed | from edits that went through (Edit, Write, apply_patch). A rewritten line counts once as added and once as removed. |
| Commands, test runs, commits, pull requests | read from the shell commands agents ran — a test run is a command like `bun test` or `pytest` |
| Tool errors | tool calls that came back as an error, as a share of all tool calls |
| Stopped | times a person stopped an agent mid-answer |
| Short first prompt | share of your sessions that opened with under 200 characters |
When an agent spawns sub-agents, their tokens and cost are added to the session that started them. A session's number is the whole cost of that piece of work, not just the top-level conversation. If any sub-agent used a model with no price, the parent's cost is shown as unpriced rather than as a number that is quietly too low.
Average prompt length, short-first-prompt rate, cache hit rate and tool calls per prompt are there to answer one question: is this person giving their agents enough context? A very short first prompt and a low cache-hit rate usually means an agent that had to rediscover the problem. There is deliberately no automatic “quality score” — the columns are raw material for a conversation, not a ranking.
A weekly agent that reads your sessions and writes findings you can act on
Once a week, a Claude agent reads your last seven days of sessions and writes up what it found — patterns in how you work, where time went, and what to do differently. Every finding carries a verbatim quote from a real session and a paste-ready prompt. It is off until you turn it on.
Monday 08:00 export your week -> upload -> start the agent -> hang up
(a coordinator on Opus 5, reading via Haiku 4.5 workers)
~15 min later the agent writes insights.json and goes idle
-> Anthropic calls our webhook
-> we download it, validate it against a schema, write the rows
you refresh the Insights tab has your week on itIf the webhook never arrives, a sweep on the hourly tick finishes the run properly instead. The result lands later, never not at all.
| Trigger | When |
|---|---|
| Weekly | Monday morning, if you have any sessions the last run did not see |
| Mid-week | when 10 or more new sessions have piled up since the last run |
| On demand | the Generate insights button, up to three times a day |
You can supply your own key on the Insights tab, and your runs are then billed to your Anthropic account. The key is write-only by construction: nothing in the stack can return it to any browser — including yours, and including an admin's. You can replace it or clear it, never read it back.
How every dollar figure on this site is worked out — and what it is not
Every cost in eng.town is API-equivalent list price: what those tokens would have cost had they been billed through the API. It is computed in the database from a price table, so it can be recomputed whenever prices change.
cost = ( input x price_in
+ output x price_out
+ cache_read x price_cache_read
+ cache_write_5m x price_5m
+ cache_write_1h x price_1h ) / 1,000,000Cache tokens are priced differently from fresh ones. Against the input price: a cache read costs a tenth, a five-minute cache write 1.25 times, and a one-hour cache write twice. That is why a session with a high cache-hit rate can be enormous in tokens and modest in dollars.
A price table shared by every team, shown read-only under Admin. A daily job fills it from a public price feed, so a new model is normally priced by the next day. Each row matches a family of model names, so a new point release inherits its family's price automatically. The cost is worked out in the database when a session syncs, not by the uploader.
If a session used a model with no price on file, its cost is null — the table shows — and the totals carry a footnote saying how many sessions were unpriced. Tokens are still counted. We would rather show you a visible gap than a total that is silently too low.
This is not your bill. Claude Code on a subscription does not charge per token, so the dollar figure will not reconcile against an invoice. It is the right number for comparing — this session against that one, this week against last, one person's usage against another's — and the wrong number for accounting.
The one exception is Insights: those runs go through the Anthropic API and are genuinely billed. The cost shown on a run is what it actually cost.
Where your transcripts physically live, and who can reach them
Everything lives in one private Postgres database and one private bucket — the database holds the structured transcript, the bucket the original file. Nothing is deleted automatically, ever.
| Table | One row per |
|---|---|
sessions | chat, with its token totals, cost, repo, app and model |
messages | turn or tool event — full-text indexed, which is what search reads |
tool_calls | tool the agent used, with its input and (truncated) output |
devices, sync_runs | enrolled Mac or box, and every upload it made |
team_members, model_prices | who may sign in, what things cost |
Alongside the parsed version, the collector keeps a gzipped copy of the original transcript — already redacted, the same as everything else. It goes into a private bucket that no browser can read directly. When you download one, the dashboard first checks in the database that you are allowed to see that session, then mints a link that expires in 60 seconds.
There is no retention policy and no automatic cleanup. Revoking a device does not remove the sessions it uploaded. The archive is the point of the product — a session from six months ago should still be there.
You can delete your own sessions from the session page, or ask your agent to remove one. It is gone along with its sub-agents and its raw file. Nothing brings it back unless you upload that thread again.
On a Mac, only the threads you ask for. On a box, every session
Your Mac uploads nothing on its own. A thread reaches eng.town only when you ask your agent to upload it. This is the part of eng.town that most needs to be boring and predictable, so here is exactly how it behaves.
| Machine | What is uploaded |
|---|---|
| Your Mac | only the thread you ask for, when you ask (“upload this thread to eng-town”, or eng-town upload) |
| A box | every session it runs — nobody is at the keyboard to ask |
Uploading a thread sends it as it is at that moment. If you keep working, the new messages stay on your Mac until you ask again; then the newer copy replaces the old one. Your history is never swept up: installing the collector uploads nothing.
Delete it from the session page, or ask your agent to remove it. Either way the session, its sub-agents and its raw file are gone. It comes back only if you upload that thread again.
Type #private or #nosync anywhere in a chat, or drop an .agent-sync-ignore file in a folder, and those sessions are never uploaded — not even if you ask, and not from a box. The folder rule also covers any session that reads or edits a file in that folder, wherever it was started.
Insights sends your transcripts to the Claude API, which is a different thing from storing them in your own database — so it is asked separately, in plain words, and it is off until you say yes. If nobody is at the keyboard — a scripted install, a fleet push — it stays off and un-asked rather than being decided on your behalf. You can change it any time on the Insights tab. Turning it off stops the next run; insights you already have are kept.
Your sessions are yours by default. Teammates cannot see them. If you want one to be readable by everyone — because the way you got the agent there is worth copying — the Share control on the transcript makes that one session visible to the team, and you can turn it off again.
Admins can read the sessions in their team and see each device's uploads, including how many sessions a private marker held back. They cannot see what was in those — a held-back session never left the machine, so there is nothing to see.
Who can sign in, what they can see, and how that is enforced
Every team on eng.town is its own sealed org with two roles, enforced by the database rather than by the user interface. A bug in the dashboard cannot show you someone else's transcripts, because the dashboard is not what is stopping it.
A six-digit code sent to your work email, or Google when it is enabled on the deployment. Your first sign-in creates a team of your own — unless an admin invited your email first, in which case you land on their team. Invite links come from the Admin → Team page.
| Role | Can see |
|---|---|
member | their own sessions and devices, plus anything a teammate has shared |
admin | everything in their own team, plus the team and price screens — never another team |
Deactivating a member does not delete anything. Their sessions stay; they simply cannot sign in.
A Mac never signs in with Google. It enrols with a short code that its owner claims in the dashboard, and gets a random 256-bit key in return. The server stores only a hash of that key. It can upload and remove its owner's sessions and read what its owner may read, and nothing else. A box's key can only upload.
An admin can revoke a device. The next time it calls in it is refused and switches itself off. Sessions it already uploaded are kept.