mirror of
https://github.com/mksglu/context-mode.git
synced 2026-09-19 03:27:16 +08:00
163023a4a6
Follow-up to e4846fc — the agent.json file mirror was missed in the previous commit. Keep configs/kiro/agent.json in sync with src/adapters/kiro/hooks.ts so users who install via the configs template (rather than `context-mode upgrade`) also get the external-MCP routing protection.
19 lines
488 B
JSON
19 lines
488 B
JSON
{
|
|
"name": "context-mode",
|
|
"description": "Context-mode hooks for context window protection",
|
|
"hooks": {
|
|
"preToolUse": [
|
|
{
|
|
"matcher": "execute_bash|fs_read|@context-mode/ctx_execute|@context-mode/ctx_execute_file|@context-mode/ctx_batch_execute|@(?!context-mode/)",
|
|
"command": "context-mode hook kiro pretooluse"
|
|
}
|
|
],
|
|
"postToolUse": [
|
|
{
|
|
"matcher": "*",
|
|
"command": "context-mode hook kiro posttooluse"
|
|
}
|
|
]
|
|
}
|
|
}
|