Skip to content

SubagentStart hook injects lazy-mode into every subagent, including code reviewers; uninstall clobbers combined statusLine #502

Description

@jra2s394

Two issues in v4.8.3.

1. Unmatched SubagentStart injection biases review agents. hooks/claude-codex-hooks.json registers the SubagentStart hook with no matcher, so the full lazy-dev ruleset ("at most three short lines", "no essays", minimize output) is injected into every subagent, including code-review, audit, and security agents. A reviewer told to keep output to three short lines reports fewer findings. Confirmed live: audit subagents spawned from a session with ponytail installed each received PONYTAIL MODE ACTIVE in their context. Suggested fix: gate the injection on agent type, or expose a config flag to exclude review-class subagents, or at minimum document how to remove the SubagentStart block.

2. scripts/uninstall.js (line 33) deletes the whole statusLine setting on a substring match. If the user has a combined statusline command that merely contains ponytail-statusline, uninstall removes the entire statusLine key, destroying the parts that belong to other tools. Suggested fix: strip only the ponytail segment from the command string and keep the key when other content remains.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions