Skip to content

feat: add staleness-detector agent and /ce:prune command#269

Closed
matteoneri wants to merge 1 commit intoEveryInc:mainfrom
matteoneri:feat/ce-prune
Closed

feat: add staleness-detector agent and /ce:prune command#269
matteoneri wants to merge 1 commit intoEveryInc:mainfrom
matteoneri:feat/ce-prune

Conversation

@matteoneri
Copy link

Summary

  • staleness-detector agent: scans docs/solutions/ for stale entries by checking git history of referenced files. Uses model: haiku for cost efficiency.
  • /ce:prune command: interactive triage workflow (Keep/Update/Archive/Delete) with batch operations for large knowledge bases.
  • ce:review integration: staleness-detector runs as always-on advisory agent (P3, never blocks merge) with results in a dedicated summary section.

Closes the gap in the knowledge compounding loop: solutions are captured via /ce:compound and surfaced by learnings-researcher, but until now there was no mechanism to detect when they become outdated.

Changes

  • 2 new files: agents/workflow/staleness-detector.md, commands/ce/prune.md
  • 1 modified file: commands/ce/review.md (always-on agent + Protected Artifacts exemption + synthesis section)
  • Metadata bumped to v2.39.0 (30 agents, 23 commands)

Design

  • Brainstorm
  • Git-based detection (no LLM inference for staleness checks)
  • Interactive triage with Archive option (docs/solutions/.archived/ excluded from learnings-researcher)
  • Advisory only in ce:review: never blocks merge

Add git-based staleness detection for docs/solutions/ knowledge base:

- staleness-detector agent: scans docs, extracts file references, checks
  git history for changes since doc creation. Uses model: haiku.
- /ce:prune command: interactive triage (Keep/Update/Archive/Delete) with
  batch operations for large knowledge bases.
- Integrate staleness-detector into /ce:review as always-on advisory agent
  (P3, never blocks merge). Results in dedicated summary section.
- Update Protected Artifacts in ce:review to exempt staleness advisories.

Bump version to 2.39.0. Update counts: 30 agents, 23 commands.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tmchow
Copy link
Collaborator

tmchow commented Mar 14, 2026

@matteoneri There is this ce:compound-refresh which is a superset of what you're trying to accomplish here. Wanna take a look at it and provide feedback there? #260

@tmchow tmchow self-requested a review March 14, 2026 21:51
@matteoneri
Copy link
Author

matteoneri commented Mar 16, 2026

Thanks for pointing this out! Will test ce:compound-refresh. It looks like it covers everything and more. Closing this in favor of #260.

@matteoneri matteoneri closed this Mar 16, 2026
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.

2 participants