
teamai-cli
Git-backed AI config sync for engineering teams
Replaces Buildbetter

Who it's for
TeamAI distributes CLAUDE.md fragments, skills, hooks, and MCP configs from a shared repo to every developer's local Claude Code or Codex environment. A SessionStart hook runs `teamai pull` automatically, so each session starts with the latest team standards without any manual steps.
If your team is not using any agentic AI coding tools or is on a single-user setup, TeamAI's sharing model has nothing to distribute.
Admins configure role-to-namespace mappings and tag-based subscriptions once, then any new skill or rule pushed to the team repo propagates to exactly the members who need it. The `teamai status` command shows each member's local vs. team repo diff, making it easy to audit alignment.
If you need real-time config enforcement rather than pull-based sync, note that TeamAI updates land on session start, not continuously.
The friction-based learning capture scores sessions for signals like AI retries and user interruptions. When a session involved real problem-solving, TeamAI suggests running `/teamai-share-learnings` to summarize and push a structured learning document to the team repo. Future sessions can search it via `teamai recall`.
If your sessions are mostly routine code generation with no significant debugging, the friction scoring will rarely trigger and the recall knowledge base will grow slowly.
TeamAI covers Claude Code, Codex, Cursor, CodeBuddy, OpenCode, and other agents from one shared repo. Skills and rules written once are distributed to whichever agents each team member uses, removing the need to maintain separate configuration files per tool.
If your team has standardized on a single agent that has a built-in team sync feature, TeamAI's multi-agent breadth adds setup overhead without benefit for that specific setup.
The problem
Engineering teams using AI coding agents accumulate configuration in isolation. Each developer has their own CLAUDE.md, their own Cursor rules file, their own MCP tools configured locally. When one person figures out an effective skill or a useful coding standard for the AI, they have no channel to distribute it. Other team members either repeat the same discovery process or never benefit from it. The challenge compounds as teams adopt more agents. A team running Claude Code and Cursor simultaneously has two separate configuration systems with no shared layer. Skills written for one agent do not transfer to another. And when team standards evolve, updating everyone's local configs is a manual, error-prone process. Teams with a strong knowledge-sharing culture still find that AI agent configuration is the one area where everything stays siloed.
How it works
Stores skills, rules, docs, hooks, MCP configs, and environment variables in a shared git repo and distributes them to Claude Code, Codex, Cursor, CodeBuddy, WorkBuddy, OpenCode, and five other agents on pull. Each resource type has its own directory format: skills at `skills/<name>/SKILL.md`, rules at `rules/*.md`, and MCP at `mcp/mcp.yaml`.
When a session ends, a Stop hook scores it for friction signals: interruptions, denied tool calls, and AI retries. High-friction sessions trigger a prompt to run `/teamai-share-learnings`, which summarizes the session and opens a pull request to the team repo. Low-friction sessions generate no prompts, keeping noise low.
An opt-in subagent (`teamai-recall`) deploys to each AI tool's agents directory and searches accumulated team knowledge before a task using BM25 ranking plus a codebase graph boost. The agent runs a relevance precheck first and skips retrieval when the task is unrelated to stored team knowledge.
`teamai import` parses repositories into a structured graph under `teamwiki/` using a WASM tree-sitter parser for TypeScript, JavaScript, Python, and Go, falling back to regex-based heuristics for other languages. The graph stores components, interfaces, configs, and cross-repo import edges, which recall uses for graph-boosted re-ranking.
Admins configure role-to-namespace mappings so each team member syncs only the skills relevant to their role. Tags let members subscribe to a subset of skills and rules. A `teamai source` command subscribes to skills from other teams' or shared repos, which sync automatically on pull.
Features
- Cross-agent config sync
- Friction-based learning capture
- Team knowledge recall
- Codebase knowledge graph
- Role and tag-based distribution
How to install
Install globally with npm, then initialize against your team's shared git repository.
npm install -g teamai-cli
teamai init https://github.com/yourorg/yourrepoRecommended for this setup
Strengths
- No proprietary infrastructure required: TeamAI runs on any standard git host: GitHub, GitLab, GitCode, CNB, TGit, or a private Git service. There is no server to operate, no vendor account to maintain, and no data leaving your git provider. The configuration lives in a repo the team already controls.
- MIT licensed with no usage restrictions: The MIT license allows use, modification, distribution, and commercial deployment without additional restrictions. Teams can fork the CLI, adapt it for internal tooling, or include it in their own pipelines without licensing concerns.
- Broadest multi-agent coverage in the category: One shared repo distributes configuration to Claude Code, Codex, Cursor, CodeBuddy, WorkBuddy, OpenCode, Qoder, ZCode, and others. A single shared repo covers the agents a team already uses rather than requiring separate config management per tool.
- Git-native review workflow for AI config: Changes to team skills and rules go through a standard push/MR/merge flow. The same review discipline teams apply to code applies to AI configuration, giving a versioned history of every change and a clear approval path before any update reaches team members.
Trade-offs
- Team Context and Improvement features are beta: The recall, codebase knowledge graph, session digest, and dashboard capabilities are marked beta in the README. Teams should treat these as experimental and not depend on them for critical workflows until they stabilize.
- Requires a shared git repository to be set up: Getting started requires creating and hosting a shared git repo, granting write access to team members, and running `teamai init` on each member's machine. Teams without a self-managed Git setup will need to provision one. Straightforward, but not a zero-config install.
- Multi-agent support varies across providers: Not every agent supports every feature. WorkBuddy lacks the `agents` capability, OpenCode has no usage or session tracking, and the DeepSeek integration supports neither rules nor hooks. Teams relying on less-supported agents will get a subset of the full feature set.
Tech stack
FAQ
TeamAI uses a shared git repository as the source of truth. Admins push skills, rules, hooks, and MCP configs to the repo; members run `teamai pull` (or let the automatic SessionStart hook do it) to sync the latest resources to their local AI tools. Changes go through the standard push/merge-request/merge flow before reaching members.
The README lists full support for Claude Code, Codex, Cursor, CodeBuddy, and Qoder. OpenCode, WorkBuddy, OpenClaw, Hermes, ZCode, and the DeepSeek integration have partial support, with some feature categories unavailable. The feature matrix in the README documents which capabilities apply to each agent.
When enabled, recall deploys a `teamai-recall` subagent to each AI tool's agents directory. Before a task, the agent searches accumulated team knowledge using BM25 ranking plus a codebase graph boost, then returns a structured summary of relevant learnings. It is disabled by default and must be enabled explicitly with `teamai recall enable`.
TeamAI is a CLI that runs locally; your team's configuration lives in any git repository you choose (GitHub, GitLab, private Git). There is no cloud service to subscribe to. The CLI is MIT licensed and free to use.
`teamai import` parses source repositories using a WASM tree-sitter parser for TypeScript, JavaScript, Python, and Go, extracting import edges, call sites, and interface implementations into a graph under `teamwiki/`. For other languages, a regex-based heuristic track runs instead. The graph improves recall results by boosting hits that are architecturally related to the query.