Repository navigation
feat: local and global personal stores; release v0.3.0 - #18
Merged
Merged
Conversation
Decisions and learned rules can now be kept out of the repository: `--local` (.git/ingrain/local, L- ids) for one repository and `--global` (~/.config/ingrain or $INGRAIN_HOME, G- ids) for every repository. `ingrain init --local` writes hooks to the git-excluded .claude/settings.local.json; `ingrain init --global` writes plugin-style hooks to ~/.claude/settings.json. Hooks, check, decisions for/list/stale read all stores; supersede/accept/reject/show route by id. Agents can't edit, accept or retune personal-store files (no first-setup exception), a repo that only sees global decisions keeps its own decisions/ editable, and broken personal files are skipped instead of failing checks everywhere. Docs: new book page guide/personal-stores.md, README, skills, layout, regenerated CLI reference. Version bumped to 0.3.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ingrain can now be used without committing anything, and with personal decisions and rules that apply in every repository.
decisions/,.corrections/D---local.git/ingrain/local/L---global~/.config/ingrain/($INGRAIN_HOME)G-ingrain init --local: puts the hooks in.claude/settings.local.json(added to.git/info/exclude) and writes nothing to the working tree.ingrain init --global: puts plugin-style--from-pluginhooks in~/.claude/settings.json. It skips them if that file already enables the ingrain plugin.check,decisions for/list/staleand the rules read all stores.--local/--globalpick the store.supersede,accept,rejectandshowfind the store from the id.Safety
decisions/folder (ADRs) editable.Docs
New book page
docs/book/src/guide/personal-stores.md. Also updated: README, allskills/*/SKILL.md, the layout page, the hooks, decisions, learned-rules, quick-start and agents pages, and the regenerated CLI reference.Release
Version is now 0.3.0 in Cargo.toml/.lock, plugin.json, action, examples, docs and CHANGELOG.
Ledger
Two proposals for a person to accept: one replaces D-0019 (plugin hooks also act where personal decisions exist), the other D-0014 (personal stores are read as they are in pre-commit).
Tests
cargo test --workspace: 121 passed, including the newcrates/cli/tests/personal.rs.cargo clippy --all-targetsis clean,mdbook buildpasses, andingrain checkreports nothing broken.🤖 Generated with Claude Code