You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A narrower argument is added to a bounded command's default target instead of replacing it #68
The inner-shell pattern in §Discovery of bounding-heavy-commands adds a narrower argument to a command instead of putting it in place of the command's default target. The skill writes a bounded command line as sh -c '<command> <flag> "$BOUNDED_RUN_CPUS" "$@"' sh, and a narrower argument such as one test package goes after the final sh. For a command whose recorded line names its own target, such as a test runner called with "every package" as its argument, the narrower argument is added to that target. The run then covers the whole suite plus the narrower part, not the narrower part alone.
A baseline agent found this while it followed the skill: its recorded line ran the whole suite each time that it asked for one package. Another agent worked around it on its own with if [ $# -eq 0 ]; then set -- <default target>; fi before the command. The skill does not teach that.
Approach
In §Discovery, where the skill explains "$@" and the final sh, add the case of a command that has a default target: put the default target in the inner shell only when no argument is given, for example with if [ $# -eq 0 ]; then set -- <default target>; fi. Keep the example free of any tool name.
Acceptance criteria
A fresh agent that records a bounded command with a default target writes a line that runs only the narrower argument when one is given, and the full target when none is.
Closing without a skill change. Baseline tests against the current skill (the top of the stack, PR #67) found no failure to fix. In three separate runs, a fresh agent that read only the skill met a command with a default target. Each time it handled the narrower argument correctly with no guidance. Two wrote if [ $# -eq 0 ]; then set -- <default target>; fi in the inner shell. The third saw that its command took the target as a variable and overrode the variable with a narrower value. The observation that led to this issue came from an agent that noticed the problem itself. superpowers:writing-skills adds guidance only for a failure that the baseline shows, so adding text here would be churn. Reopen if an agent is seen running the full target when it asked for a narrower one.
Activity
sourcehawk commentedon Sep 30, 2026
Closing without a skill change. Baseline tests against the current skill (the top of the stack, PR #67) found no failure to fix. In three separate runs, a fresh agent that read only the skill met a command with a default target. Each time it handled the narrower argument correctly with no guidance. Two wrote
if [ $# -eq 0 ]; then set -- <default target>; fiin the inner shell. The third saw that its command took the target as a variable and overrode the variable with a narrower value. The observation that led to this issue came from an agent that noticed the problem itself.superpowers:writing-skillsadds guidance only for a failure that the baseline shows, so adding text here would be churn. Reopen if an agent is seen running the full target when it asked for a narrower one.