Onboard a new developer so their AI knows your team's pitfalls on day one
A new developer asks their AI for help on day one. Without your team's lessons, that AI repeats the traps your team has already fixed. This page shows the steps that put those lessons in front of it, and where they stop working.
How does a new developer's AI learn the pitfalls?
Four things carry the team's knowledge to a new person's AI. The briefing at the start of each session. Lessons filled from the git history. Company rules that every AI gets from its first session. And one setup command plus an invitation to the team's Brain. All of it needs lessons to exist first.
- 1. Lessons exist
- Fill an empty Brain with brain_from_git, or let the team save lessons as they fix things.
- 2. Rules written
- An org admin adds the company rules in the dashboard.
- 3. Invitation sent
- Share on the Brain card, or the invite command in the project.
- 4. Setup run
- The new person runs the join command from the email, or autopilot in a fresh clone, and restarts the editor.
- 5. First session
- The AI calls session_start and starts with the rules, then the lessons.
What does the AI get at the start of a session?
At the start of a session, the AI calls session_start. The briefing holds the last session summary, recent lessons, lessons that match the planned work, the Brain's health and what teammates learned this week. If the workspace has company rules, the briefing starts with them.
The briefing does not replace a search for a concrete task. For that, the AI calls smart_recall with one line about the task. Tool description: sdk/mcp/src/tools.ts, entry session_start.
How do I fill an empty Brain from git?
brain_from_git reads commit messages and infers lessons from them: fixes, features and refactors. By default it reads 100 commits, at most 500. Later runs read only new commits. It runs in the local package, because it reads files on your machine. A short commit message gives a short lesson.
Tool description: sdk/mcp/src/tools.ts, entry brain_from_git. Local only: sdk/mcp/README.md.
How do company rules reach the new person?
Company rules are short binding sentences that admins write once in the dashboard. The AI of every team member gets them from its first session, in every Brain, so nobody pastes them into a project file. A rule is text the AI keeps in view. It is not a technical block.
How to write them, the limits and the approval for deviations: company rules.
What is the one-command setup?
One command sets up a project: autopilot finds your editors, writes the MCP config and a rule file for each, adds a git hook that learns from your commits and fills the Brain from git history. You sign in once in the browser with a device code. Then you restart the editor.
# In the project, one command: finds your editors, writes MCP config and rule file,
# adds a git hook, fills the Brain from git history
npx @cachly-dev/mcp-server@latest autopilot
# With an invitation from the team: accept it and connect this project
npx @cachly-dev/mcp-server@latest join <token>How does the new person join the team Brain?
An owner or org admin invites the new person by email, from the Brains page with Share or with the invite command. The email holds a link and a join command with a token. The command accepts the invitation and writes the Brain's ID into the editor configs. Members can read and teach the Brain.
Roles, review and what syncs: shared memory for AI coding agents in a team. Code: api/internal/handler/org_handler.go.
What are the limits?
Nothing here invents knowledge. A Brain with no lessons gives the new person's AI an empty briefing. brain_from_git sees only what commit messages say. The briefing shows recent and focus-matching lessons, not the whole Brain. Company rules are text, so keep real access limits in your own systems.
Frequently asked questions
What if our Brain is empty?
Run brain_from_git once, or let autopilot do it during setup. It builds lessons from commit messages. After that, a lesson a teammate saves with learn_from_attempts can show up in the new person's next briefing.
Does the new developer need to type anything special?
Not after setup. The rule file that autopilot writes tells the editor's AI to check its memory before a task. The developer only signs in once in the browser and restarts the editor.
Do company rules replace lessons?
No. Rules are short, binding and written by admins, for example how deploys are done. Lessons are what the team learned from real problems. The briefing starts with the rules and then lists lessons.
Can the new person change the team's Brain?
Members can read and teach the Brain. Deleting it, billing and inviting more people stay with the owner or an org admin.
More: Company rules · Shared memory for a team · All docs