6 new issues for Claude Code hook improvements: - 012: Test output filtering (reduce noise, show failures only) - 013: Stop verification (verify work complete before stopping) - 014: Auto-test on edit (async tests after code changes) - 015: Session context injection (git/issues/CI on startup) - 016: Silent auto-formatting (suppress formatter output) - 017: Expose/hide policy (define what to show vs suppress) Based on Claude Code hooks documentation: - PostToolUse with suppressOutput for noise reduction - Stop hooks with agent verification - Async hooks for background testing - SessionStart for context injection - additionalContext for exposing important info Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2.8 KiB
2.8 KiB
feat: Replace shell scripts with core CLI commands
Summary
This tracking issue covers the migration from shell scripts to native core CLI commands in core-agent. Every shell script should be replaced by a core command, making the plugin purely configuration (JSON, MD) + calls to core.
Philosophy
- Every agent using
coretests the framework - Missing features get raised as issues
- Code as if functionality exists (TDD approach)
- The CLI becomes battle-tested and bulletproof
Issues
Claude Code Hooks (core ai)
| Issue | Command | Replaces |
|---|---|---|
| #001 | core ai session |
pre-compact.sh, session-start.sh, suggest-compact.sh |
| #002 | core ai context |
capture-context.sh, extract-actionables.sh |
| #003 | core ai hook |
prefer-core.sh, block-docs.sh, post-commit-check.sh |
Quality Assurance (core qa)
| Issue | Command | Replaces |
|---|---|---|
| #004 | core qa debug |
check-debug.sh |
Data Collection (core collect)
| Issue | Command | Replaces |
|---|---|---|
| #005 | core collect github |
github-history/collect.sh |
| #006 | core collect bitcointalk |
bitcointalk/collect.sh |
| #007 | core collect market |
coinmarketcap/*.sh |
| #008 | core collect papers |
ledger-papers/discover.sh, collect-whitepaper.sh |
| #009 | core collect excavate |
project-archaeology/excavate.sh |
| #010 | core collect process |
job-collector/process.sh |
| #011 | core collect dispatch |
collection/dispatch.sh |
Target State
After all issues are implemented:
claude/
├── hooks/
│ └── hooks.json # Calls core ai hook validate-*
├── commands/
│ └── remember.md # Calls core ai context add
├── collection/
│ └── hooks.json # Calls core collect dispatch
└── skills/
└── */
└── SKILL.md # Documentation only, calls core collect *
No shell scripts. Just JSON config + markdown docs + core CLI calls.
Hook Improvements (feedback cycle)
| Issue | Feature | Purpose |
|---|---|---|
| #012 | Test output filtering | Reduce noise, show only failures |
| #013 | Stop verification | Verify work complete before stopping |
| #014 | Auto-test on edit | Run tests async after code changes |
| #015 | Session context | Inject git/issues/CI context on start |
| #016 | Silent formatting | Auto-format without output noise |
| #017 | Expose/hide policy | Define what to show vs suppress |
Implementation Order
- Phase 1:
core ai session+core ai context(enables hooks to work) - Phase 2:
core ai hook+core qa debug(safety + quality) - Phase 3: Hook improvements (012-017) - better feedback cycle
- Phase 4:
core collect github+core collect bitcointalk(most used) - Phase 5: Remaining collection commands