TeamBrain

TeamBrain CI templates

Drop-in GitHub Actions workflows for running TeamBrain’s CI-side automation. Copy the ones you want into .github/workflows/ in the repo that holds the brain (.teambrain/), then set the required secrets.

Template Copy to Trigger What it does Secrets
lint.yml teambrain-lint.yml PR touching .teambrain/** tb lint --require-evidence on the brain; blocks the PR on any violation (exit 3). —
distill.yml teambrain-distill.yml Weekly (Mon 06:00 UTC) + manual tb distill: cluster new sessions → draft/dedup/gate → open a proposals PR. ANTHROPIC_API_KEY
digest.yml teambrain-digest.yml Weekly (Mon 13:00 UTC) + manual tb digest: post a people-free weekly summary to Slack. TEAMBRAIN_SLACK_WEBHOOK
sessions-rotation.yml teambrain-sessions-rotation.yml Monthly (1st, 04:00 UTC) + manual Squash the teambrain/sessions orphan branch to one commit (records kept, history dropped) and force-push. —
codemap.yml teambrain-codemap.yml Push to main tb distill --codemap: re-summarize only changed source files (hash-manifest diff) and commit the refreshed .teambrain/codemap/ tree directly. Opt-in — requires codemap.enabled: true in brain.yaml. ANTHROPIC_API_KEY

Notes