Skip to content

feat(brain): add memory, hooks, maxTurns; deprecate --initial-prompt#635

Open
Wirasm wants to merge 2 commits intomainfrom
brain-frontmatter-upgrade
Open

feat(brain): add memory, hooks, maxTurns; deprecate --initial-prompt#635
Wirasm wants to merge 2 commits intomainfrom
brain-frontmatter-upgrade

Conversation

@Wirasm
Copy link
Owner

@Wirasm Wirasm commented Mar 4, 2026

Summary

  • Add memory: user, maxTurns: 200, and agent-scoped hooks: to kild-brain frontmatter
  • Create bash guard script enforcing "no source code access" at the hook level (PreToolUse)
  • Auto-snapshot fleet state on Stop hook
  • Replace manual memory management (~40 lines) with auto-memory reference
  • Fix router skill to use create-then-inject pattern instead of --initial-prompt
  • Deprecate --initial-prompt in CLI help text + runtime warnings on both create and open
  • Update CLAUDE.md with deprecation notes

Test plan

  • bash -n .claude/hooks/brain-bash-guard.sh passes
  • Guard blocks cat crates/..., cargo test, git diff, git log
  • Guard allows kild list, gh issue list, cat .kild/..., cat ~/.kild/...
  • cargo fmt --check passes
  • cargo clippy --all -- -D warnings passes
  • cargo test --all passes (424 tests)
  • cargo build --all succeeds
  • Manual: start brain session, verify hooks fire, test bash guard enforcement

Wirasm added 2 commits March 4, 2026 22:11
…te --initial-prompt

- Add `memory: user`, `maxTurns: 200`, and agent-scoped `hooks:` to
  kild-brain frontmatter (PreToolUse bash guard + Stop fleet snapshot)
- Create `.claude/hooks/brain-bash-guard.sh` to enforce "no source code
  access" constraint at the hook level
- Replace ~40 lines of manual memory management with auto-memory note
- Fix router skill to use create-then-inject instead of --initial-prompt
- Deprecate --initial-prompt in CLI help text with runtime warnings
- Update CLAUDE.md with deprecation notes and inject-based brain setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant