sub-agent
What it does
This skill delegates a coding job to a separate coding assistant that runs without interaction in the background. It is for developers who want a feature, review, or refactor done while they keep working.
When to use it
- ✓When you want a self-contained feature built by another coding assistant in the background.
- ✓When a code review or refactor needs a lot of file exploration.
- ✓When you want to run a coding assistant in non-interactive mode so it finishes without prompts.
Skill link
https://github.com/TokenRhythm/opensquilla/blob/main/src/opensquilla/skills/bundled/sub-agent/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you hand off the refactor of the billing module to a background coding assistant and check on it later?”
5 new skills a week. 1 minute to read.
How it works
The agent starts the chosen coding assistant with a non-interactive command and a clear task, then tracks the background process until it finishes. It uses the process tools to check progress and collect the results.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Sub-Agent (opensquilla process tools)
Generic "spawn a sub-Agent" entry point for delegating self-contained tasks to Codex / Claude Code / OpenCode / Pi via background process. Use this playbook for self-contained coding and file-editing tasks.
Use OpenSquilla's exec_command and process tools for coding agent work. exec_command starts both short and long commands; use yield_time_ms=0 for a long run and keep the returned execution handle. OpenSquilla does not expose a bash tool; do not use the legacy bash tool-call DSL.
Non-Interactive CLI Mode
OpenSquilla's process tools do not expose a pty parameter. Prefer non-interactive command modes that run and exit cleanly:
# ✅ Correct for Codex/Pi/OpenCode
exec_command(command="codex exec 'Your prompt'")
For Claude Code (claude CLI), use --print --permission-mode bypassPermissions instead.
--dangerously-skip-permissions with PTY can exit after the confirmation dialog.
--print mode keeps full tool access and avoids interactive confirmation:
# ✅ Correct for Claude Code (no PTY needed)
cd /path/to/project && claude --permission-mode bypassPermissions --print 'Your task'
# For background execution: use exec_command(yield_time_ms=0, ...)
# ❌ Wrong for Claude Code
exec_command(command="claude --dangerously-skip-permissions 'task'")
OpenSquilla Tool Parameters
| Tool | Key parameters | Description |
|---|---|---|
exec_command |
command, workdir, timeout, yield_time_ms |
Start a shell command; use yield_time_ms=0 for a long run and keep the returned execution handle. |
process |
action, session_id, data, offset, limit |
Poll, log, write to, or stop a background process. |
Process Tool Actions (for background sessions)
| Action | Description |
|---|---|
list |
List all running/recent sessions |
poll |
Check if session is still running |
log |
Get session output (with optional offset/limit) |
write |
Send raw data to stdin |
submit |
Send data + newline (like typing and pressing Enter) |
eof |
Close stdin |
remove |
Remove a finished session from the process list |
kill |
Terminate the session |
Quick Start: One-Shot Tasks
For quick prompts/chats, create a temp git repo and run:
# Quick chat (Codex needs a git repo!)
SCRATCH=$(mktemp -d) && cd $SCRATCH && git init && codex exec "Your prompt here"
# Or in a real project
exec_command(workdir="~/Projects/myproject", command="codex exec 'Add error handling to the API calls'")
Why git init? Codex refuses to run outside a trusted git directory. Creating a temp repo solves this for scratch work.
The Pattern: workdir + exec_command + process
For longer tasks, use exec_command(yield_time_ms=0, ...):
# Start agent in target directory.
exec_command(yield_time_ms=0, workdir="~/project", command="codex exec --full-auto 'Build a snake game'")
# Returns an execution handle (the current compatibility field is `session_id`)
# Wait for it to finish — blocks until the process exits (or the timeout
# elapses, in which case just call wait again). Prefer this over polling in a
# loop: a looped process(action="poll") burns a full turn + tokens each time.
process(action="wait", session_id="XXX")
# Peek at output without blocking (optional, for progress)
process(action="log", session_id="XXX")
# Send input (if agent asks a question)
process(action="write", session_id="XXX", data="y")
# Submit with Enter (like typing "yes" and pressing Enter)
process(action="submit", session_id="XXX", data="yes")
# Kill if needed
process(action="kill", session_id="XXX")
Why workdir matters: Agent wakes up in a focused directory, doesn't wander off reading unrelated files (like your soul.md 😅).
Codex CLI
Model: gpt-5.2-codex is the default (set in ~/.codex/config.toml)
Flags
| Flag | Effect |
|---|---|
exec "prompt" |
One-shot execution, exits when done |
--full-auto |
Sandboxed but auto-approves in workspa |
FAQ
Which assistants does it work with?
The skill mentions Codex, Claude Code, OpenCode, and Pi.
Does it need an interactive terminal?
No. The skill uses non-interactive modes that run and exit cleanly.
Can it run a long task?
Yes. It can start a long-running command and keep its handle to check later.
Details
Original description by the author
Delegate a self-contained task to a coding assistant through a non-interactive background process. Use for feature development, code review, refactoring, and tasks requiring substantial file exploration.
repo: TokenRhythm/opensquilla
Popularity
- GitHub stars
- 7.1k
- Ranking position
- #13593
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
browser-use
7.1kLets your agent open, read and operate web pages in the OpenSquilla Desktop sidebar browser, including forms and visual checks.
deep-research
7.1kTeaches your agent to run multi-round research with a saved plan, tracked sources and a long report with citations.
docx
7.1kHelps your agent read, edit or create Word .docx files while keeping formatting, tracked changes and structure intact.
html-coder
7.1kHelps your agent write clean, semantic HTML pages with accessible forms, media and HTML5 features, and open them as a web preview.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.