brain_from_git
Automatically infer fix, feature, and refactor lessons from git commit history. Bootstrap your codebase's accumulated patterns for quick onboarding.
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 |
|---|---|---|---|
| instance_id | Yes | Brain instance ID | |
| repo_path | No | Path to git repository (default: current directory) | |
| limit | No | Max commits to process (default: 100, max: 500) | |
| branch | No | Git branch to parse (default: current branch / HEAD) | |
| since | No | Only commits after this date, e.g. "2024-01-01" (optional) | |
| incremental | No | Only process commits since last run (default: true). Set false to reprocess all. |