brain_from_git
Infer fix, feature, and refactor lessons from git commit history. Bootstrap team knowledge for codebase onboarding with incremental processing.
Instructions
Bootstrap brain lessons from git history. Parses commit messages and infers fix/feature/refactor lessons automatically. Great for onboarding an existing codebase — run once and the brain instantly knows your team's accumulated patterns. Incremental by default: only processes new commits since the last run, so repeated calls are fast. Emits progress updates to stderr during long scans.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max commits to process (default: 100, max: 500) | |
| since | No | Only commits after this date, e.g. "2024-01-01" (optional) | |
| branch | No | Git branch to parse (default: current branch / HEAD) | |
| repo_path | No | Path to git repository (default: current directory) | |
| incremental | No | Only process commits since last run (default: true). Set false to reprocess all. | |
| instance_id | Yes | Brain instance ID |