O2 Review Loop
openobserve/openobserve
Splits a change into planner, coder and independent reviewer roles: you confirm a spec, a subagent implements it, and a separate reviewer checks each round's local WIP commit.
Hands a self-contained coding task to Codex, Claude Code, OpenCode or Pi as a non-interactive background process, using OpenSquilla's exec_command and process tools.
$ npx skills add TokenRhythm/opensquilla --skill sub-agent -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install TokenRhythm/opensquilla sub-agent --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/TokenRhythm/opensquilla.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/opensquilla/skills/bundled/sub-agent .claude/skills/sub-agent && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sub-agent" agent skill from https://github.com/TokenRhythm/opensquilla/tree/main/src/opensquilla/skills/bundled/sub-agent into .claude/skills/sub-agent/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sub-agent", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/TokenRhythm/opensquilla/tree/main/src/opensquilla/skills/bundled/sub-agentType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add TokenRhythm/opensquilla --skill sub-agent -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install TokenRhythm/opensquilla sub-agent --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TokenRhythm/opensquilla.git skills-src && mkdir -p .agents/skills && cp -r skills-src/src/opensquilla/skills/bundled/sub-agent .agents/skills/sub-agent && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sub-agent" agent skill from https://github.com/TokenRhythm/opensquilla/tree/main/src/opensquilla/skills/bundled/sub-agent into .agents/skills/sub-agent/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sub-agent", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add TokenRhythm/opensquilla --skill sub-agent -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install TokenRhythm/opensquilla sub-agent --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TokenRhythm/opensquilla.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/src/opensquilla/skills/bundled/sub-agent .cursor/skills/sub-agent && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sub-agent" agent skill from https://github.com/TokenRhythm/opensquilla/tree/main/src/opensquilla/skills/bundled/sub-agent into .cursor/skills/sub-agent/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sub-agent", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/TokenRhythm/opensquilla.git --path src/opensquilla/skills/bundled/sub-agent--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add TokenRhythm/opensquilla --skill sub-agent -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install TokenRhythm/opensquilla sub-agent --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TokenRhythm/opensquilla.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/src/opensquilla/skills/bundled/sub-agent .gemini/skills/sub-agent && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sub-agent" agent skill from https://github.com/TokenRhythm/opensquilla/tree/main/src/opensquilla/skills/bundled/sub-agent into .gemini/skills/sub-agent/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sub-agent", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install TokenRhythm/opensquilla sub-agentInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add TokenRhythm/opensquilla --skill sub-agent -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/TokenRhythm/opensquilla.git skills-src && mkdir -p .github/skills && cp -r skills-src/src/opensquilla/skills/bundled/sub-agent .github/skills/sub-agent && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sub-agent" agent skill from https://github.com/TokenRhythm/opensquilla/tree/main/src/opensquilla/skills/bundled/sub-agent into .github/skills/sub-agent/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sub-agent", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add TokenRhythm/opensquilla --skill sub-agent -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install TokenRhythm/opensquilla sub-agent --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/TokenRhythm/opensquilla.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/src/opensquilla/skills/bundled/sub-agent .opencode/skills/sub-agent && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sub-agent" agent skill from https://github.com/TokenRhythm/opensquilla/tree/main/src/opensquilla/skills/bundled/sub-agent into .opencode/skills/sub-agent/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sub-agent", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sub-agentHands a self-contained coding task to Codex, Claude Code, OpenCode or Pi as a non-interactive background process, using OpenSquilla's exec_command and process tools.
This is a playbook for OpenSquilla, a token-efficient AI agent, to spawn another coding agent for a bounded job such as feature work, code review, refactoring or file-heavy exploration. It starts the other agent with exec_command, setting yield_time_ms to 0 for long runs and keeping the returned handle, and it avoids interactive modes because OpenSquilla's process tools have no pty option.
For Codex, Pi and OpenCode it uses their one-shot exec-style commands. For Claude Code it runs the claude CLI with --print and --permission-mode bypassPermissions, which lets the delegated agent work without confirmation prompts and avoids a case where the skip-permissions flag with a PTY exits after the dialog. The process tool then lists, polls, reads logs from, writes to, submits input to, closes stdin on, removes or kills background sessions, and a quick-start section covers one-shot prompts in a temporary git repo.
9 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 4494195. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitcodexghclaudeopencodeFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sub-Agent Delegation loads about 3k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 752 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from TokenRhythm/opensquilla at commit 4494195, republished under its Apache-2.0 licence (© TokenRhythm). 752 words, ~2,992 tokens.
.claude/skills/sub-agent/SKILL.md (or your agent's skills folder).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.
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'")| 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. |
| 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 |
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.
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 😅).
Model: gpt-5.2-codex is the default (set in ~/.codex/config.toml)
| Flag | Effect |
|---|---|
exec "prompt" | One-shot execution, exits when done |
--full-auto | Sandboxed but auto-approves in workspace |
--yolo | NO sandbox, NO approvals (fastest, most dangerous) |
# Quick one-shot
exec_command(workdir="~/project", command="codex exec --full-auto 'Build a dark mode toggle'")
# Background for longer work
exec_command(yield_time_ms=0, workdir="~/project", command="codex exec --full-auto 'Refactor the auth module'")⚠️ CRITICAL: Never review PRs in OpenSquilla's own project folder! Clone to temp folder or use git worktree.
# Clone to temp for safe review
REVIEW_DIR=$(mktemp -d)
git clone https://github.com/user/repo.git $REVIEW_DIR
cd $REVIEW_DIR && gh pr checkout 130
exec_command(workdir="$REVIEW_DIR", command="codex review --base origin/main")
# Clean up after: trash $REVIEW_DIR
# Or use git worktree (keeps main intact)
git worktree add /tmp/pr-130-review pr-130-branch
exec_command(workdir="/tmp/pr-130-review", command="codex review --base main")# Fetch all PR refs first
git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
# Deploy the army - one Codex per PR
exec_command(yield_time_ms=0, workdir="~/project", command="codex exec 'Review PR #86. git diff origin/main...origin/pr/86'")
exec_command(yield_time_ms=0, workdir="~/project", command="codex exec 'Review PR #87. git diff origin/main...origin/pr/87'")
# Monitor all
process(action="list")
# Post results to GitHub
gh pr comment <PR#> --body "<review content>"# Foreground
exec_command(workdir="~/project", command="claude --permission-mode bypassPermissions --print 'Your task'")
# Background
exec_command(yield_time_ms=0, workdir="~/project", command="claude --permission-mode bypassPermissions --print 'Your task'")exec_command(workdir="~/project", command="opencode run 'Your task'")# Install: npm install -g @mariozechner/pi-coding-agent
exec_command(workdir="~/project", command="pi -p 'Your task'")
# Non-interactive mode
exec_command(command="pi -p 'Summarize src/'")
# Different provider/model
exec_command(command="pi --provider openai --model gpt-4o-mini -p 'Your task'")Note: Pi now has Anthropic prompt caching enabled (PR #584, merged Jan 2026)!
For fixing multiple issues in parallel, use git worktrees:
# 1. Create worktrees for each issue
git worktree add -b fix/issue-78 /tmp/issue-78 main
git worktree add -b fix/issue-99 /tmp/issue-99 main
# 2. Launch Codex in each
exec_command(yield_time_ms=0, workdir="/tmp/issue-78", command="pnpm install && codex exec --full-auto 'Fix issue #78: <description>. Commit and push.'")
exec_command(yield_time_ms=0, workdir="/tmp/issue-99", command="pnpm install && codex exec --full-auto 'Fix issue #99 from the approved ticket summary. Implement only the in-scope edits and commit after review.'")
# 3. Monitor progress
process(action="list")
process(action="log", session_id="XXX")
# 4. Create PRs after fixes
cd /tmp/issue-78 && git push -u origin fix/issue-78
gh pr create --repo user/repo --head fix/issue-78 --title "fix: ..." --body "..."
# 5. Cleanup
git worktree remove /tmp/issue-78
git worktree remove /tmp/issue-99codex exec, opencode run, pi -p)--print --permission-mode bypassPermissions (no PTY required)$OPENSQUILLA_STATE_DIR, default ~/.opensquilla/state) - keep agent state separate from project worktrees.When you spawn coding agents in the background, keep the user in the loop.
This prevents the user from seeing only "Agent failed before reply" and having no idea what happened.
For long-running background tasks, ask the agent to print a clear completion line so progress is visible in process(action="log", ...) output:
... your task here.
When completely finished, send a brief status update in this session.Example:
exec_command(yield_time_ms=0, workdir="~/project", command="codex exec --full-auto 'Build a REST API for todos.
When completely finished, print: Done: Built todos REST API with CRUD endpoints'")This makes completion visible in the background process log.
mktemp -d && git init for scratch work.codex exec "prompt" runs and exits cleanly - perfect for one-shots.submit to send input + Enter, write for raw data without newline.© TokenRhythm, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in src/opensquilla/skills/bundled/sub-agent of TokenRhythm/opensquilla.
Open the folder on GitHubat commit 4494195
Sub-Agent Delegation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sub-Agent Delegation this skillTokenRhythm/opensquilla | 7.1k | — | ~3k | Automated safety check: Pass | Apache-2.0 | |
| O2 Review Loopopenobserve/openobserve | 22k | — | ~3.7k | Automated safety check: Pass | AGPL-3.0 | |
| Kimi Code DelegationCherryHQ/cherry-studio | 52k | — | ~504 | Automated safety check: Pass | AGPL-3.0 | |
| Swarm Orchestrationruvnet/ruflo | 74k | 2 repos | ~779 | Automated safety check: Pass | MIT | |
| Subagent-Driven DevelopmentHoangNguyen0403/agent-skills-standard | 570 | — | ~852 | Automated safety check: Pass | MIT | |
| Multi AgentWrongStack/WrongStack | 368 | — | ~3.6k | Automated safety check: Pass | MIT |
openobserve/openobserve
Splits a change into planner, coder and independent reviewer roles: you confirm a spec, a subagent implements it, and a separate reviewer checks each round's local WIP commit.
CherryHQ/cherry-studio
Delegates one bounded repository task to Kimi Code in non-interactive prompt mode and reads back the final result from its JSON event stream.
ruvnet/ruflo
Coordinates a hierarchical swarm of specialized agents through the claude-flow CLI for work that spans several files or modules at once.
HoangNguyen0403/agent-skills-standard
Runs a multi-task implementation plan by sending each task to a fresh implementer subagent, reviewing it independently, then reviewing the whole branch.
WrongStack/WrongStack
A skill your agent uses whenever work can be split across multiple AI agents running in parallel, or when orchestrating leader/worker patterns in WrongStack.
bbartling/open-fdd
A skill your agent uses for rigorous pull request, branch, patch, or diff review.
TokenRhythm/opensquilla
Runs multi-round research in three stages with a persisted state file, evidence tracking and a long-form report with per-claim citations.
TokenRhythm/opensquilla
Deterministic PDF operations through bundled scripts: extract text and tables, merge files or page ranges, split by range, fill form fields and build PDFs from data.
TokenRhythm/opensquilla
Inspects, edits in place or creates Word .docx files with bundled Python scripts, keeping existing styles intact when content changes.
TokenRhythm/opensquilla
Guides semantic, accessible HTML work: pages, forms, media and HTML5 APIs, plus how to deliver a runnable webpage project with a preview.
TokenRhythm/opensquilla
Reads, edits in place, or creates PowerPoint .pptx decks, picking one of three paths based on what tools and files are available.
TokenRhythm/opensquilla
Inspects, edits in place or creates Microsoft Excel .xlsx workbooks with openpyxl, treating each cell as a typed number, string, datetime or formula value.
Categories
Hands a self-contained coding task to Codex, Claude Code, OpenCode or Pi as a non-interactive background process, using OpenSquilla's exec_command and process tools. This is a playbook for OpenSquilla, a token-efficient AI agent, to spawn another coding agent for a bounded job such as feature work, code review, refactoring or file-heavy exploration. It starts the other agent with exec_command, setting yield_time_ms to 0 for long runs and keeping the returned handle, and it avoids interactive modes because OpenSquilla's process tools have no pty option.
Sub-Agent Delegation fits situations like: handing a self-contained coding task to another coding agent in the background; running a long refactor or code review without blocking the main session; starting a one-shot Codex or Claude Code job and polling its output.
Run `npx skills add TokenRhythm/opensquilla --skill sub-agent -a claude-code`. Or copy the skill folder (src/opensquilla/skills/bundled/sub-agent in TokenRhythm/opensquilla) into .claude/skills/sub-agent in your project. Claude Code loads it when a task matches its description.
Run `npx skills add TokenRhythm/opensquilla --skill sub-agent -a codex`. Or copy the skill folder (src/opensquilla/skills/bundled/sub-agent in TokenRhythm/opensquilla) into .agents/skills/sub-agent in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TokenRhythm/opensquilla --skill sub-agent -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sub-agent, .gemini/skills/sub-agent, .github/skills/sub-agent and .opencode/skills/sub-agent in your project.
Going by SKILL.md and its folder, Sub-Agent Delegation needs the command-line tools its instructions call (git, codex, gh, claude and opencode). Our summary lists: OpenSquilla's exec_command and process tools; A coding agent CLI such as codex or claude installed.
SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Sub-Agent Delegation is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sub-Agent Delegation: O2 Review Loop (openobserve/openobserve, 22k stars), Kimi Code Delegation (CherryHQ/cherry-studio, 52k stars), Swarm Orchestration (ruvnet/ruflo, 74k stars) and Subagent-Driven Development (HoangNguyen0403/agent-skills-standard, 570 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
TokenRhythm (a GitHub organization) maintains it in TokenRhythm/opensquilla, which has 7,087 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 4, 2026.
Source: TokenRhythm/opensquilla on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.