agentbox

Solid

Fork the current agent session into a new VM or local Docker container with all the project files, agent settings and session teleported into.

AI & Automation 62 stars 7 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

<!-- agentbox-managed:v1 --> Fork the current Claude Code session into a fresh AgentBox box. 1. **Resolve the provider flag from `$ARGUMENTS`:** - empty → no flag (uses the default docker provider) - `docker` | `daytona` | `hetzner` | `vercel` → pass `--provider $ARGUMENTS` - anything else → stop and tell the user the valid values are `docker`, `daytona`, `hetzner`, `vercel` 2. **Detect an active plan (optional `--plan`).** If this session was just working on a Claude Code plan, carry it into the box so the fork resumes in plan mode. - **If you know the plan file path** for this session (plan mode writes it to `~/.claude/plans/<slug>.md`, and you have it from the plan you just produced in this conversation), use that path. - **Otherwise**, find the most recent plan only if it was touched in the last 15 minutes (a stale plan from another task should not be resurrected). Run via the Bash tool: ``` find "$HOME/.claude/plans" -name '*.md' -mmin -15 -type f 2>/dev/null \ | xargs -r ls -t 2>/dev/null | head -1 ``` If it prints a path, that's the current plan; if it prints nothing, there is no active plan — skip `--plan`. 3. **Fork.** If you are in plan mode, exit it, then run, via the Bash tool, exactly one command (add `--plan "<path>"` only if step 2 found a plan): ``` agentbox fork --session ${CLAUDE_SESSION_ID} [--provider $ARGUMENTS] [--plan "<plan path>"] ``` 4. **Report.** In one line, give the user the new box name ...

Details

Author
madarco
Repository
madarco/agentbox
Created
1 months ago
Last Updated
4 days ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category