add-agent
БесплатноБез исполняемых скриптовНе проверенAdd a new AI coding agent to Agent Sandbox. Creates all required files (Dockerfile, templates, CI, docs) and wires the agent into the CLI, proxy, and build…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Scaffold Agent Support
This skill generates all the files needed to add a new AI coding agent to Agent Sandbox. It follows the established patterns from Claude, Copilot, and Codex implementations.
Arguments
The skill takes a single argument: the agent name (lowercase, no spaces). Example: gemini, opencode, factory.
Process
Step 1: Gather Information
Ask the user for the following (skip any already provided):
- Agent name (from argument)
- Display name - human-readable name for comments and labels (e.g., "Google Gemini CLI")
- Project URL - link to the agent's GitHub repo or website (for README table)
- Installation method - how to install the agent binary/CLI
- npm package (like Claude and Copilot)
- direct binary download from GitHub releases (like Codex)
- curl installer script
- pip package
- go install
- Package identifier - npm package name, GitHub releases URL pattern, pip package, go module, or download URL
- Version detection source - how CI detects new releases
- npm registry (Claude, Copilot):
npm view {package} version - GitHub releases API (Codex):
gh api repos/{owner}/{repo}/releases/latest --jq .tag_name - Note any tag prefix that needs stripping (e.g., Codex uses
rust-vprefix)
- npm registry (Claude, Copilot):
- Version variable name - env var for build.sh (e.g.,
GEMINI_VERSION) - Config directory - where the agent stores its config in the container (e.g.,
/home/dev/.gemini) - Default config files - any config files to bake into the image (e.g., Codex bakes
config.tomlto disable its internal sandbox) - Internal sandbox - does the agent have its own sandboxing (Landlock, seccomp, etc.) that should be disabled inside our container? If so, how to disable it.
- Required API domains - domains the agent needs to reach (API, auth/OAuth, CDN)
- Authentication method - how users authenticate (API key env var, OAuth flow, device code, etc.)
- Auto-approve flag - the CLI flag for unattended/yolo mode (e.g.,
--dangerously-skip-permissions,--yolo,--full-auto) - VS Code extension ID - if one exists (e.g.,
github.copilot-chat), or "none" for CLI-only agents - Agent-specific environment variables - any env vars the agent needs at runtime
- Does the agent need Node.js? - whether to install Node.js in the Dockerfile (only if the base image doesn't include it and the agent needs it)
Step 2: Create Files
Generate all files listed below. Read the reference files first to match the exact format and structure.
2.1: Dockerfile
Create images/agents/{agent}/Dockerfile.
Pattern:
ARG BASE_IMAGE=agent-sandbox-base:local+FROM ${BASE_IMAGE}- Optional extra packages block (same pattern as existing agents)
- Install Node.js if needed (copy pattern from Copilot Dockerfile)
- As root: create config directory and
~/.local/binif installing a binary there - Copy any default config files (e.g.,
COPY config.toml /home/dev/.{agent}/config.toml) USER dev- Set
ENV PATH="/home/dev/.local/bin:$PATH"if installing to~/.local/bin - Install the agent (method depends on installation type)
- For direct binary downloads: use
ARG TARGETARCHfor multi-arch, prefer musl (statically linked) over gnu variants - Add labels:
org.opencontainers.image.descriptionand version label
If the agent needs default config files, create them alongside the Dockerfile (e.g., images/agents/{agent}/config.toml).
2.2: CLI Compose Template
Create cli/templates/{agent}/cli/docker-compose.yml.
Copy from an existing CLI template (Copilot is simplest) and modify:
- Comment at top:
# {Display Name} Sandbox - Agent image:
ghcr.io/mattolson/agent-sandbox-{agent}:latest - State volume:
{agent}-statemounted at config directory - History volume:
{agent}-history - Agent-specific environment variables
- Always include
GODEBUG=http2client=0(workaround for Go programs through mitmproxy) - Always include
HTTP_PROXY,HTTPS_PROXY,NO_PROXYsettings - Update the named volumes section at the bottom
2.3: Devcontainer Compose Template
Create cli/templates/{agent}/devcontainer/docker-compose.yml.
Same as CLI template but add the devcontainer directory mount:
- .:/workspace/.devcontainer:ro
2.4: devcontainer.json
Create cli/templates/{agent}/devcontainer/devcontainer.json.
Copy from existing and modify:
name:"{Display Name} Sandbox"- VS Code extensions array if applicable, or remove extensions arrays for CLI-only agents
- Keep proxy settings and JetBrains settings unchanged
2.5: Update CLI Agent List
Edit cli/libexec/init/init: add the new agent name to the available_agents array.
2.6: Update BATS Test
Edit cli/test/init/init.bats: update the "rejects invalid --agent value" test assertion to include the new agent name in the expected agent list string (e.g., "claude copilot codex gemini").
2.7: Update Proxy Service Domains
Установить add-agent в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл add-agent?
Add a new AI coding agent to Agent Sandbox. Creates all required files (Dockerfile, templates, CI, docs) and wires the agent into the CLI, proxy, and build system.
Как установить скилл add-agent?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл add-agent запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic