Skip to content

Commit 8d42837

Browse files
Yanjunclaude
andcommitted
fix: all 19 tools now have WHEN TO CALL + CLAUDE.md trigger table complete
- myco_expand: added WHEN TO CALL docstring - CLAUDE.md template: added Evolve + Undo rows (myco_evolve, myco_expand) - All 19 MCP tools now have trigger documentation - Agent knows exactly when to auto-invoke every tool Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e2ac092 commit 8d42837

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/myco/mcp_server.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,8 +1378,9 @@ async def myco_expand(
13781378
) -> str:
13791379
"""Reverse a previous compression — restore input notes and delete the output.
13801380
1381-
Use when a compression was done incorrectly or when you need to
1382-
re-process the original inputs differently.
1381+
WHEN TO CALL:
1382+
(a) When a compression was done incorrectly.
1383+
(b) When you need to re-process the original inputs differently.
13831384
13841385
Args:
13851386
output_id: The id of the extracted (output) note to reverse.

src/myco/templates/CLAUDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ If no skill matches (or no skills/ directory), proceed with agent judgment.
4343
| **External** | `myco_absorb`, `myco_forage` | When gaps detected |
4444
| **Log** | `myco_trace`, `myco_reflect` | After completing tasks, session end |
4545
| **View** | `myco_observe` | When recalling past decisions |
46+
| **Evolve** | `myco_evolve`, `myco_evolve_list` | When skill_degradation hunger signal fires |
47+
| **Undo** | `myco_expand` | When a compression was incorrect |
4648

4749
## Reflex Arcs (auto-enforced)
4850

0 commit comments

Comments
 (0)