Skip to content

fix(spec): delete the 0%-execution-rate explorer fan-out prescription (#927) - #931

Merged
admarble merged 1 commit into
mainfrom
feature/927-fix-spec-the-explorer-fan-out-prescription-has
Aug 10, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/927-fix-spec-the-explorer-fan-out-prescription-has

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • /spec's "Agent Spawn Rules" table prescribed spawning 1–3 sequant-explorer subagents by issue-content heuristic — measured at 0 spawns across 169 /spec runs in the local transcript corpus. Replaces the table with the strategy actually in use: targeted inline Read/Grep by default, escalating to a single built-in Explore agent only for genuinely open-ended discovery.
  • Removes sequant-explorer.md from .claude/agents/ and templates/agents/, and all remaining references across the 3 mirrored skill dirs (spec/SKILL.md, _shared/references/subagent-types.md) and docs/features/declarative-agents.md.
  • Agent(sequant-explorer) in spec/SKILL.md's frontmatter allow-list swapped to Agent(Explore) so the documented escalation path stays usable.

AC-4: consumer upgrade path (residual)

sequant sync/update's copyTemplates (src/lib/templates.ts:578) is purely additive — its copyDir loop only reads template entries and writes them; there is no unlink/prune path anywhere in the sync flow. Consumer projects that already have .claude/agents/sequant-explorer.md will keep that stale file after upgrading to this version. It is inert: nothing in the shipped skills references it anymore, so it has no runtime effect beyond disk clutter. No prune machinery was added — a single orphaned file doesn't justify that complexity (also noted in the CHANGELOG entry).

AC-5: token delta

File Before After Delta
spec/SKILL.md (per mirror) 18,567 bytes 18,423 bytes −144 bytes (~−36 tokens)
_shared/references/subagent-types.md (per mirror) 9,019 bytes 8,711 bytes −308 bytes (~−77 tokens)
docs/features/declarative-agents.md 7,848 bytes 7,554 bytes −294 bytes
.claude/agents/sequant-explorer.md 985 bytes (deleted) −985 bytes
templates/agents/sequant-explorer.md 985 bytes (deleted) −985 bytes

Repo-wide total: −3,620 bytes (~−900 tokens) removed, counting all 3 skill mirrors.

AC-3 note (flagged during QA)

grep -rn 'sequant-explorer' --include='*.md' . returns CHANGELOG history (as intended) plus 2 hits in vscode-extension/README.md — the VS Code extension's package filename sequant-explorer-0.0.1.vsix, an unrelated entity that happens to share the substring. The requirement (no remaining references to the agent) is satisfied; the AC's literal grep is over-broad. Renaming the extension package is out of scope.

Test plan

  • npm run build — pass
  • npm run lint — pass
  • npm run lint:skill-sync — 44/44 synced
  • npm run lint:skill-calls — no violations
  • npm run lint:skill-gates — no violations
  • npx skills-ref validate templates/skills/spec/ — valid
  • grep -rn 'sequant-explorer' --include='*.md' . — only CHANGELOG history + unrelated vscode-extension package name (see AC-3 note)
  • No source code changed; no test suite impact.

Closes #927

…#927)

`/spec`'s Agent Spawn Rules table prescribed spawning 1-3 sequant-explorer
subagents by issue-content heuristic, but measured over 169 /spec runs in
the local transcript corpus it never fired once. Replace the table with
the strategy actually in use: targeted inline Read/Grep by default,
escalating to a single built-in Explore agent only for open-ended
discovery. Remove sequant-explorer.md and its references across the 3
skill mirrors and docs/features/declarative-agents.md.

Known residual: sequant sync/update's copyTemplates has no prune path, so
consumer projects keep a stale, inert sequant-explorer.md after upgrading.

Closes #927
@admarble
admarble merged commit b40f366 into main Aug 10, 2026
8 checks passed
@admarble
admarble deleted the feature/927-fix-spec-the-explorer-fan-out-prescription-has branch August 10, 2026 12:34
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.

fix(spec): the explorer fan-out prescription has a 0% execution rate over 169 runs — delete it or make it real

1 participant