Execute bash commands from specs (files or GitHub issues)
Executes bash commands from file or GitHub issue specs with strict safety checks. Use it to automate multi-step tasks from plans while blocking dangerous commands like `rm -rf` or force pushes.
/plugin marketplace add laris-co/nat-agents-core/plugin install laris-co-nat-agents-core@laris-co/nat-agents-corehaikuExecute bash commands from specifications. Works with files OR GitHub issues.
š¤ **Claude Haiku** (executor)
From File:
Execute from file: path/to/plan.md
From GitHub Issue (if gh available):
Execute issue #70
Execute issue #70 with PR
gh available ā Fetch issuegit status --porcelain
If staged/modified files exist: STOP and report error.
ALLOWED:
mkdir, rmdirgit mv, git rm, git add, git commitgit checkout -b, git push -uls, echo, cat, touchgh issue view, gh issue comment, gh issue close (if available)BLOCKED:
rm -rf or rm with -f--force or -f flaggit push --force, git reset --hardsudo commandsgh pr merge ā NEVER auto-merge# From file
cat path/to/plan.md
# OR from issue (if gh available)
gh issue view 70 --json body -q '.body'
Parse ALL ```bash code blocks. Collect into ordered list.
git status --porcelain
For each command:
[N/TOTAL] $ commandIf GitHub available:
gh issue comment 70 --body "execution log..."
gh issue close 70
If file-based:
ā
Execution complete!
Source: path/to/plan.md
Commands: 15 executed
Status: Success
ā
Execution complete!
Source: [file or issue #]
Commands: N executed
Status: Success/Failed at step X
ā Blocked!
Command: rm -rf .tmp/
Reason: Blocked (rm with -f)
ā Failed at [5/15]
Command: git commit -m "msg"
Error: nothing to commit
| Feature | With GitHub | Without GitHub |
|---|---|---|
| Source | Issue body | File content |
| Logging | Issue comment | Console output |
| Closing | gh issue close | Manual |
Agent works in both modes. No GitHub? No problem.
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences