Files
ruflo/v3/@claude-flow
rUvandReuven cc114c8db4 fix(mcp): sharpen high-overlap tool descriptions for better selection (#1748 Issue 4) (v3.6.30) (#1756)
#1748 Issue 4 — across 4 experiments, the model invoked 0 of 237 Ruflo
MCP tools, even on a 230-call-site cross-file refactor. The diagnosis:
descriptions don't lead with 'Use when native X doesn't help because Y',
so the model's tool-selection heuristic always wins for native tools.

This PR sharpens descriptions for 7 of the highest-overlap tools — the
ones where the model HAS a native equivalent and the differentiation
needs to be crystal clear.

Memory family (5 tools — competes with Read/Write/Grep/Glob):
  - memory_store: 'Use when native Write is wrong because the data is
    not a file ... AND you need to recall it later by semantic query,
    not by path'
  - memory_retrieve: 'Use when native Read is wrong because the value
    is not a file (lives in .swarm/memory.db)'
  - memory_search: 'Use when native Grep is wrong because Grep matches
    characters and you need conceptually-related entries'
  - memory_delete: 'No native equivalent — Write to a file does not
    affect the .swarm/memory.db SQLite store'
  - memory_list: 'Use when native Glob is wrong because the entries
    are not files'

Hooks family (1 high-leverage tool):
  - hooks_route: '3-tier routing recommendation BEFORE spawning ...
    Native tools have no equivalent — Claude Code does not introspect
    its own model-selection cost'

Agent family (1 — competes with native Task):
  - agent_spawn: 'Use when native Task is wrong because you need
    cost tracking / cross-session learning / swarm coordination'

This is a representative subset, not the full 237. Pattern is now
established; subsequent PRs can extend per-family. The smoke test for
this approach: re-run the #1748 G3 cross-file rename — does the model
now invoke memory_search to find existing references, or still fall
through to Grep?

Published as 3.6.30 to npm:
  @claude-flow/cli@3.6.30 → tags: latest, alpha, v3alpha
  claude-flow@3.6.30      → tags: latest, alpha, v3alpha
  ruflo@3.6.30            → tags: latest, alpha, v3alpha

Status of #1748: Issue 1 ✅, Issue 2 ✅, Issue 3 ⏳, Issue 4 (this) — first
batch of descriptions sharpened; pattern established; further families
land incrementally.

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-05-05 10:20:05 -04:00
..