Skip to content

fix(#352): enable Bash execution for background QA sub-agents - #361

Merged
admarble merged 2 commits into
mainfrom
feature/352-fix-background-qa-sub-agents-silently-fail-on-bash
Mar 13, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/352-fix-background-qa-sub-agents-silently-fail-on-bash

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Fixed background QA sub-agents silently failing when executing Bash commands (git diff, npm test, etc.)
  • Changed from mode="acceptEdits" to mode="bypassPermissions" for quality check agents
  • Added comprehensive Bash coverage table and permission mode guidance to subagent-types.md

Root Cause

The acceptEdits mode only auto-approves Edit/Write tools — Bash calls are silently denied when agents run in background mode. QA quality check agents need to run git diff, npm test, and other shell commands.

Changes

File Change
.claude/skills/qa/SKILL.md Added mode="bypassPermissions" to all quality check Task calls
templates/skills/qa/SKILL.md Synced same changes to template copy
.claude/skills/_shared/references/subagent-types.md Added Bash coverage table and permission mode guidance
CHANGELOG.md Added changelog entry under [Unreleased] > Fixed

Test Plan

  • Build passes (npm run build)
  • All 1511 tests pass (npm test)
  • Changes are documentation/skill templates only (no TypeScript code changes)
  • Template synced to both .claude/skills/qa/ and templates/skills/qa/

Acceptance Criteria Verification

AC Description Status Evidence
AC-1 QA sub-agents can execute Bash commands when running in background ✅ MET Added mode="bypassPermissions" to Task calls
AC-2 Sub-agent permission mode documented with Bash coverage table ✅ MET Added comprehensive table to subagent-types.md
AC-3 QA skill templates updated in both directories ✅ MET Updated .claude/skills/qa/ and templates/skills/qa/
AC-4 No regression for foreground/sequential execution ✅ MET Same mode used for consistency, works in both modes

Closes #352

🤖 Generated with Claude Code

Background QA sub-agents were silently failing when trying to execute
Bash commands (git diff, npm test, etc.) because `mode="acceptEdits"`
only auto-approves Edit/Write tools, not Bash.

Changes:
- Update QA skill to use `mode="bypassPermissions"` for quality check agents
- Add comprehensive Bash coverage table to subagent-types.md documentation
- Document when to use each permission mode based on agent needs
- Sync changes to templates/skills/qa/SKILL.md

The change is safe because these quality check agents only read and
analyze code - they never write files or push to remote repositories.

Entire-Checkpoint: 04409b9d1cc6
The third skill directory (skills/) was missed in the original fix.
All three directories (.claude/skills/, templates/skills/, skills/)
now have consistent mode="bypassPermissions" for QA sub-agents.
@admarble
admarble merged commit 0a9d2ac into main Mar 13, 2026
4 of 9 checks passed
@admarble
admarble deleted the feature/352-fix-background-qa-sub-agents-silently-fail-on-bash branch March 13, 2026 21:09
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: background QA sub-agents silently fail on Bash calls due to permission mode gap

1 participant