extend: agent-doctor — find custom subagents that silently won't register (completes the silent-failure family)#8
Open
deemwario wants to merge 1 commit into
Open
Conversation
…ster Completes the 'agent config that fails silently' family (hooklint=hooks, mcp-doctor=MCP servers, skill-doctor=skills, agent-doctor=subagents). A custom subagent (.claude/agents/<name>.md) with broken frontmatter just never shows up — no error, the agent silently isn't there. agent-doctor scans a .claude/agents dir (or a single .md) and flags: no frontmatter / no name / no description (won't register or route), name/filename mismatch, duplicate names, empty system-prompt body, and a malformed tools field. Conservative + honest — it does NOT validate individual tool names (the registry varies) or judge prompt quality. Exit 0/1/2; --json for CI. - single-file python3, stdlib only; test_agent-doctor.sh 24/24 green. - house-style README with the deemwar.com/contact CTA. MIT.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend:
agent-doctor— find custom subagents that silently won't register#ossengine cycle 19 —
extend the family, additive, no owner gate. Completes the "agent config that fails silently" family.Why
A custom subagent (
.claude/agents/<name>.md) with broken frontmatter just never shows up — no error, the agent silently isn't there. This is the 4th and final member of the silent-failure family:hooklint(hooks) ·mcp-doctor(MCP servers) ·skill-doctor(skills) ·agent-doctor(subagents).What it does
Scans a
.claude/agentsdir (or a single.md) and flags:NO_FRONTMATTER/NO_NAME/NO_DESCRIPTION(HIGH) — won't register, or won't be routed to (the model selects subagents by description)NAME_MISMATCH/DUP_NAME(MED) — invocation confusion / collisionEMPTY_BODY(LOW) — no system-prompt bodyTOOLS_MALFORMED(LOW, heuristic) —toolsfield that won't parseExit
0/1/2;--jsonfor CI. Conservative + honest — it does not validate individual tool names (the registry varies) or judge prompt quality (disclaimer says so).Verification (independently re-run)
test_agent-doctor.sh— 24/24 green.--json→{agents_dir, agents_scanned, findings, summary}.NO_FRONTMATTER+NO_DESCRIPTIONon synthetic fixtures.deemwar.com/contactCTA. MIT.🤖 Generated with Claude Code