The problem
Every new developer relearns why the code is the way it is through meetings, handoffs and guesses, and the coding agent they use starts every session knowing nothing either. The first real pull request takes months, and the reasons behind old decisions leave with the people who made them.
Architecture
- Channel
- Repository with docs/decisions
- CLAUDE.md or AGENTS.md at root
- Agent
- Reads decisions every session
- Drafts the new decision entry
- Tools
- Claude Code
- Git history
- Human
- Engineers record decisions
- A senior reviews the first PR
Where the data stays: Everything stays in your own repository; the coding agent sends the model only what it reads while it works, under your plan's data terms.
Design flow
- An engineer records a decision in the repository
- New engineer opens Claude Code: it loads the decisions
- A change departs from a decision: it says so and stopsOnly sometimes
- The new engineer ships the first change with a new entry
- A senior reviews the PR and the decision entryHuman checkpoint
Setup
Total time: 4 h 45 min our estimate
- 2 h
Done when: Ten markdown files in one template (context, decision, consequences, date, author) cover the choices every new hire asks about, written by the engineers who made them.
- 45 min
Done when: CLAUDE.md holds the build and test commands, the project layout, the rule to read docs/decisions first and to stop when a change departs from one; /context all in a session lists it under Memory files.
- 45 min
Done when: One topic file per area (for example api.md, frontend.md) with a paths field, so the rule loads only when the agent works on matching files.
- 1 h
Done when: On day one the new engineer gets a ten line explanation of their first area from the agent, with the file names, and their first pull request carries a new decision entry.
- 15 min
Done when: A one line log per hire (start date, first merged PR date) exists, and a senior's review of that PR is the gate, not the agent.
Ticks are saved on this browser.
Starter prompt
Written from how the use case works and its sources. Replace the parts in square brackets.
Before you change anything in this repository, read CLAUDE.md and every file in docs/decisions/. Then explain in ten lines how [the area I am about to work on] is built and which recorded decisions constrain it, naming the files. When a change I ask for would depart from a recorded decision, say so and stop until I confirm. After the change, draft a new entry in docs/decisions/ in the same format (context, decision, consequences, date, author) for me to review before anything is committed.
Risks and data
Data
Decision files can leak secrets if people paste credentials or customer names into the context section. Keep the template to reasons and trade offs, and remember a CLAUDE.md or AGENTS.md is read by every agent session, so nothing confidential belongs in it.
How it goes wrong
Stale entries that contradict each other, which Anthropic's docs warn makes the agent pick one arbitrarily, and a knowledge base nobody updates after month two. Review the files when a correction repeats, keep each decision dated, and make the new entry part of the pull request template so recording is not optional.
How the agent works
It starts
Tribe AI, a North American startup that builds AI products and agents for large companies in regulated industries, records engineering decisions as its engineers make them in what CTO Pooja Brown calls 'essentially a Git-based brain', so the patterns, tooling and lessons from everything already built carry over.
The agent works
A new hire plugs into that knowledge base through Claude Code: by day three they know what they need to do and within five days they are producing code changes, where the firm used to measure three to four months from joining to the first pull request. md from the Git root down to the working directory, 32 KiB by default.
The result
The human checkpoint is unchanged: engineers write the decision entries, and a senior reviews the new engineer's first pull request and the decision it adds.
Worked example
Tribe AI, both an Anthropic partner and a Claude customer, expects its enterprise business to grow sixfold and its team fivefold this year. Anthropic's undated customer page gives the onboarding figure as under 5 days for a new engineer to ship a first code change, down from months; Brown describes the old measure, from joining to the first PR, as three to four months. The same page says time to a production agent in a customer's environment fell from about six months to about one month, and that CEO Jaclyn Rice Nelson built a go to market analyst agent with Claude so she can 'run into my next investor meeting with all the data at my fingertips' instead of sending her team Slack requests. The page does not describe the knowledge base's format or who maintains it; the file layout below is ours.
Tribe's page names Claude Code and the Claude Platform, not a file layout, so the CLAUDE.md and AGENTS.md steps come from each vendor's own docs: Claude Code loads CLAUDE.md at the start of every session and can read a repository's AGENTS.md in its place; Codex reads AGENTS.md from the Git root down, with a 32 KiB default limit that you raise or split across nested files. The knowledge itself is plain markdown in Git, which is why either agent can read it.
Join the Agent OS Club
Get hours back with a team of AI agents for every department, set up step by step for the tools you use, with a person answering your questions. Founding member price: USD 14.95 a month or USD 150 a year, locked for as long as you stay. Cancel any time.
Founding offer, ends 31 December 2026 or at member 100
Join the Agent OS ClubBuilding this for an organization? Learn more at theagentiv.com
Sources
- https://claude.com/customers/tribe-ai
- https://code.claude.com/docs/en/memory
- https://learn.chatgpt.com/docs/agent-configuration/agents-md.md
Published: 2026-12-01