Team
How team sharing works
What each commit and push does in team mode, what is sent, and how a rewritten commit keeps its record.
Once a repository is in team mode, you commit and push as usual. This is what Wisdom does around it.
What happens on each commit
Section titled “What happens on each commit”- The commit. Wisdom adds one line to the message,
Wisdom-Record: r-…, as a readable backup. - After it. A background job keeps the commit’s record. If the commit has agent work, a model writes its guide: Claude Haiku 5.5 through your own Claude Code, about $0.001 to $0.008 a guide in Wisdom’s tests. The commit doesn’t wait for it.
- An amend or a rebase. git’s own
post-rewritehook tells Wisdom the old and new commit, and Wisdom keeps a link between them. - The push. Your
git pushwaits for any guide still being written, up to five minutes, then sends the commit links, the sessions and the records of the branches you push. If any of this fails, Wisdom says so and your push goes ahead. Links that couldn’t go are retried in the background, and a session your team’scheckrefused is tried at each push.
Four git hooks do this. None of them can stop git: if one fails, it says so and your commit or push goes ahead.
| Hook | What it does |
|---|---|
prepare-commit-msg |
Adds the Wisdom-Record: line. An amend keeps its line; a merge gets none. |
post-commit |
Starts the background job for the record and guide. |
post-rewrite |
Keeps a link from each rewritten commit to the ones it came from. |
pre-push |
Finishes what’s missing, then sends links, sessions and records. |
Only commits made in team mode travel. Work you recorded before wisdom-team.yaml was
committed stays on your machine.
To send without a git push, run wisdom team push.
What a push sends
Section titled “What a push sends”| Sent | Never sent |
|---|---|
| The sessions a pushed commit’s record names | Sessions no pushed commit names |
| Each commit’s record and guide, and its commit links | Your .wisdom/ folder |
Your git name and email, labelled “git config”, since git doesn’t verify them. Set identity to false to leave them out. |
Any login |
Each session goes through the same export as wisdom share, and every possible secret is
redacted automatically, since there’s no one to ask during a push. The records are scanned the
same way, since a guide can quote a request. Your own recording is never changed.
When a commit gets a new sha
Section titled “When a commit gets a new sha”Records are kept by commit, and an amend, a rebase or a squash merge on GitHub gives the work a
new sha. A link says “this commit came from those”, so glance --commit and the CI check
find the records again. Links come only from something that saw the rewrite or can prove it:
| Rewrite | Linked by |
|---|---|
| An amend, a rebase, a fixup on your machine | git’s own post-rewrite hook |
| A squash or rebase merge on GitHub | wisdom team relink, in the CI job after each merge: from the pull request GitHub names, or the same change by git patch-id |
git filter-repo |
wisdom team relink --commit-map .git/filter-repo/commit-map |
Links differ in how sure they are, and a reading says which basis it has. One made because git or
GitHub reported it, or because the change is identical, is firm. One paired only by its position in a rebase
merge says a weaker link. A link is never taken from a commit message or a model.
A linked commit reads like this, followed by each record it came from:
squash merge of PR #12, from GitHub's pull request: it came from 2 commits; their records followLinks travel with your pushes and come with wisdom team fetch. To have every plain git fetch
and git pull bring them too, run wisdom team sync on. It adds two lines to .git/config,
and wisdom team sync off takes them out.
Without a link, the Wisdom-Record: lines in a squash commit’s message still lead to its
records. Keep them when you edit a squash message, or set GitHub’s default squash message to
“Pull request title and commit details” (Settings > General > Pull Requests).
Limits
Section titled “Limits”- Tested with GitHub, not yet GitLab.
relinkasks only GitHub; elsewhere it links bygit patch-idalone. - A contributor from a fork can’t push Wisdom’s refs to the team’s repository. At the merge, the CI job copies them from a fork it can read.
- The default writer needs Claude Code installed and logged in. Without it, commits with agent
work get no guide and say why;
wisdom guide offgives them the plain one. - A push looks at up to 2,000 commits of what it sends.
- A commit of thousands of files takes minutes to record, and its model guide can run out of time.
- A cherry-pick where you resolved a conflict isn’t linked. The original keeps its record.
- A session is pushed whole, about 100 KB for a typical one. Keep one session per task, so unrelated work doesn’t travel with it.
- A repository with only
wisdom-team.json(from 0.6.0-beta.0) is in local mode, since that file is no longer read. Convert it towisdom-team.yamlwith the same fields and commit it.