A framework for defining persistent AI personas with memory, file ownership, and cross-team protocols.
A practical guide for introducing AI teammates to a team that’s already shipping code.
You have a codebase, a team, and AI coding tools already in use. You want to move from ad-hoc AI sessions (where every conversation starts from scratch) to persistent AI personas that accumulate knowledge and respect ownership boundaries.
Prerequisites:
Time commitment: The initial onboarding takes 15-30 minutes of interaction with your AI tool. After that, teammates are self-maintaining.
Don’t try to cover your entire codebase on day one. Pick 2-3 teammates that cover the areas you work in most. You can always add more later.
Good starting points:
Skip dedicated testing, DevOps, or documentation teammates unless your project is large enough to justify them.
Point your AI tool at ONBOARDING.md from the teammates repo. The agent will:
.teammates/ directory with all the filesKey moment: When the agent proposes the roster, push back if the domains are too narrow. Fewer teammates with broader scope is almost always better than many narrow specialists.
.teammates/ DirectoryThe .teammates/ directory belongs in version control (except USER.md, which is gitignored automatically). This means:
git add .teammates/
git commit -m "Add AI teammates"
cd cli && npm install && npm run build
teammates claude # or your preferred adapter
The CLI handles routing, handoffs, and memory injection automatically.
Tell your agent at the start of each session:
Read
.teammates/<name>/SOUL.mdand.teammates/<name>/WISDOM.mdbefore starting work.
Most tools support system prompts or project instructions where you can add this permanently.
The first few sessions will feel similar to normal AI usage. The value compounds over time:
Don’t skip the memory step. After each session, make sure the teammate wrote a daily log entry. If it didn’t, remind it. The daily log is how knowledge persists.
“Do I have to use these?”
No. Teammates are opt-in. The .teammates/ directory doesn’t affect anyone who doesn’t read it. People who prefer raw AI sessions can keep doing that.
“Will this slow me down?” The overhead is near zero. You point your AI tool at a SOUL.md file. Everything else happens automatically. The time saved by not re-explaining your project every session far outweighs the setup.
“What if two people use the same teammate at once?” Teammates write to their own memory files. If two people use the same teammate simultaneously, you might get a merge conflict in a daily log file. Resolve it like any other merge conflict — keep both entries.
“Can I customize a teammate for my workflow?”
USER.md is gitignored and local to each person. Fill it in with your preferences, and teammates will adapt their communication style and detail level to you specifically.
Signs you need another teammate:
Signs you have too many teammates:
Teammates aren’t permanent. Restructure when:
“The AI doesn’t read SOUL.md automatically” Add it to your tool’s project instructions or system prompt. Most tools have a way to inject files at session start.
“Memory files are getting huge”
Run /compact (via the CLI) or tell the teammate to compact its memories. This rolls daily logs into weekly summaries and distills typed memories into wisdom.
“Teammates give inconsistent answers”
Check WISDOM.md — if it’s empty, the teammate hasn’t been compacted yet. Run /compact to distill patterns from accumulated memories.
“Ownership boundaries feel wrong” Edit the SOUL.md files directly. Boundaries are just markdown — change them, update the roster in README.md, and the team adapts immediately.
.teammates/ to version control