Skip to content

feat: mi stop hook instructs agent to update stale docs#1

Open
Prakshal-Jain wants to merge 1 commit intomainfrom
feat/mi-stop-hook-auto-update
Open

feat: mi stop hook instructs agent to update stale docs#1
Prakshal-Jain wants to merge 1 commit intomainfrom
feat/mi-stop-hook-auto-update

Conversation

@Prakshal-Jain
Copy link
Copy Markdown

Summary

  • Stop hook now lists which source files changed per stale .mi doc
  • Changes message from passive reminder to mandatory instruction for the agent to read, assess relevance, and update if needed
  • Agents skip unrelated changes (e.g. CSS animation fix doesn't trigger onboarding doc update)
  • Added .css to file type detection patterns

Test plan

  • Run mi_setup on a test repo, make source changes, stop session — verify hook outputs changed file list and instruction
  • Verify agent updates relevant .mi docs and skips irrelevant ones

🤖 Generated with Claude Code

- Stop hook now lists changed source files per stale .mi doc
- Instructs agent to read, assess relevance, and update if needed
- Skips unrelated changes (e.g. CSS animation doesn't affect onboarding docs)
- Added .css to file detection patterns

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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