{"id":46251857,"url":"https://github.com/bborbe/claude-yolo","last_synced_at":"2026-03-03T22:30:36.922Z","repository":{"id":340368506,"uuid":"1163613717","full_name":"bborbe/claude-yolo","owner":"bborbe","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-24T13:53:15.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-24T18:38:40.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bborbe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-21T22:13:56.000Z","updated_at":"2026-02-24T13:53:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bborbe/claude-yolo","commit_stats":null,"previous_names":["bborbe/claude-yolo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/bborbe/claude-yolo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bborbe%2Fclaude-yolo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bborbe%2Fclaude-yolo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bborbe%2Fclaude-yolo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bborbe%2Fclaude-yolo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bborbe","download_url":"https://codeload.github.com/bborbe/claude-yolo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bborbe%2Fclaude-yolo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30064241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-03-03T22:30:36.239Z","updated_at":"2026-03-03T22:30:36.895Z","avatar_url":"https://github.com/bborbe.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# claude-yolo\n\nIsolated Claude Code execution with prompt-based task handoffs. Run coding tasks in Docker with `--dangerous` mode while keeping your laptop supervised for critical operations.\n\n## What This Is\n\nIsolated Docker environment for running Claude Code with restricted network access and proper isolation from production systems.\n\n## Installation\n\n### 1. Build the Docker image\n\n```bash\nmake build\n```\n\n### 2. Set up `~/.claude-yolo` directory\n\nYOLO uses a **separate** Claude Code config directory (`~/.claude-yolo`) isolated from your main `~/.claude` config. This keeps YOLO's auto-approve workflow separate from your normal Claude sessions.\n\n```bash\n# Create YOLO config directory\nmkdir -p ~/.claude-yolo/commands\n\n# Copy sample CLAUDE.md (workflow instructions)\ncp examples/CLAUDE.md ~/.claude-yolo/\n\n# Optional: Install slash commands from claude-yolo-plugin\n# See: https://github.com/bborbe/claude-yolo-plugin\n```\n\n**What's in `~/.claude-yolo`?**\n\n```\n~/.claude-yolo/\n├── CLAUDE.md           # Workflow instructions for YOLO\n├── commands/           # Slash commands available in YOLO\n│   └── run-prompt.md   # Execute prompts (from plugin)\n└── memory/             # Optional: YOLO-specific memory\n```\n\n**Why separate from `~/.claude`?**\n- Different workflow (auto-approve vs supervised)\n- Different constraints (no attribution, specific git patterns)\n- Isolation from your main Claude config\n- Safe experimentation\n\n**How it's mounted:**\n```bash\n-v ~/.claude-yolo:/home/node/.claude\n```\n\nInside container, YOLO sees `~/.claude-yolo` as `/home/node/.claude` and reads `CLAUDE.md` automatically.\n\n## Usage\n\n### Recommended: Prompt-Based Workflow\n\nThe cleanest way to use YOLO is with structured prompts:\n\n**1. Create prompt** (in management session):\n```\n/create-prompt Build CLI with list/get/set commands\n```\nSaves to: `{project}/prompts/001-description.md`\n\n**2. Execute with YOLO**:\n```bash\n./scripts/yolo-prompt.sh ~/Documents/workspaces/my-app 001\n```\n\n**3. Press Enter** at prompt dialog (current limitation)\n\n**4. YOLO executes** `/run-prompt 001` inside container:\n- Finds prompt file\n- Reads XML-structured content\n- Implements autonomously\n- Archives to `prompts/completed/`\n\n**Benefits:**\n- ✅ Clean separation: planning vs execution\n- ✅ Prompts live in project repo\n- ✅ Reusable slash command logic\n- ✅ Automatic archiving\n- ✅ No duplication\n\n**Requirements:**\n- Install [claude-yolo-plugin](https://github.com/bborbe/claude-yolo-plugin) for `/create-prompt` and `/run-prompt`\n- Copy slash commands to `~/.claude-yolo/commands/`\n\n### Interactive Mode (No Prompt)\n\nStart an interactive Claude Code session in auto-approve mode:\n\n```bash\n# From current directory\n./scripts/yolo-run.sh\n\n# From specific project\n./scripts/yolo-run.sh ~/Documents/workspaces/my-app\n\n# From subdirectory (auto-detects git root)\ncd src/api/client\n./scripts/yolo-run.sh\n```\n\nInside container:\n- Work at git root (`/workspace`)\n- Claude Code with `--dangerously-skip-permissions`\n- Network restricted to allowed domains only\n- Go module cache mounted for speed\n\n### One-Shot Mode (With Prompt)\n\nExecute a prompt and exit automatically:\n\n```bash\n# Inline prompt\n./scripts/yolo-run.sh \"implement OAuth2 login with JWT tokens\"\n\n# Prompt for specific project\n./scripts/yolo-run.sh ~/Documents/workspaces/my-app \"add user authentication\"\n\n# Multi-line prompt\n./scripts/yolo-run.sh \"$(cat \u003c\u003c'EOF'\nImplement the following feature:\n- Add REST API endpoint /api/users\n- Add validation middleware\n- Write tests with \u003e80% coverage\nEOF\n)\"\n\n# From file\n./scripts/yolo-run.sh \"$(cat task-spec.md)\"\n```\n\n**Use cases:**\n- Automated task execution from specs\n- CI/CD pipeline integration\n- Batch processing multiple prompts\n- Dark Factory pattern (spec → implementation)\n\n### Helper Script\n\n**`yolo-run.sh [path] [\"prompt\"]`**\n\n**Arguments:**\n- `path` (optional): Project directory or subdirectory (defaults to CWD)\n- `prompt` (optional): Prompt to execute in one-shot mode\n\n**How it works:**\n1. Auto-detects git root from given path\n2. Mounts git root as `/workspace`\n3. Passes Go module cache for faster builds\n4. If prompt given → one-shot mode (execute and exit)\n5. If no prompt → interactive mode (standard session)\n\n**Examples:**\n\n```bash\n# Interactive mode\n./scripts/yolo-run.sh                                    # Current project\n./scripts/yolo-run.sh ~/Documents/workspaces/my-app     # Specific project\n\n# One-shot mode\n./scripts/yolo-run.sh \"add logging middleware\"                              # Current project\n./scripts/yolo-run.sh ~/Documents/workspaces/my-app \"refactor auth module\"  # Specific project\n\n# From task file\nTASK=$(cat ~/Documents/Obsidian/Personal/24\\ Tasks/Build\\ Feature.md)\n./scripts/yolo-run.sh ~/Documents/workspaces/my-app \"$TASK\"\n```\n\n### Prompt Execution Script\n\n**`yolo-prompt.sh \u003cproject-path\u003e \u003cprompt-number-or-name\u003e`**\n\nExecutes a specific prompt from the project's `prompts/` directory via `/run-prompt`.\n\n**Arguments:**\n- `project-path` (required): Project directory\n- `prompt-number-or-name` (required): Prompt number (e.g., `001`) or name (e.g., `implement-cli`)\n\n**Examples:**\n```bash\n# By number\n./scripts/yolo-prompt.sh ~/Documents/workspaces/my-app 001\n\n# By name\n./scripts/yolo-prompt.sh ~/Documents/workspaces/my-app implement-cli\n```\n\n**Requires:** [claude-yolo-plugin](https://github.com/bborbe/claude-yolo-plugin) installed in `~/.claude-yolo/commands/`\n\n### Manual Docker Run\n\nFor advanced usage:\n\n```bash\ndocker run -it --rm \\\n  --cap-add=NET_ADMIN --cap-add=NET_RAW \\\n  -e \"YOLO_PROMPT=your prompt here\" \\\n  -v ~/Documents/workspaces/my-app:/workspace \\\n  -v ~/.claude-yolo:/home/node/.claude \\\n  -v ~/go/pkg:/home/node/go/pkg \\\n  claude-yolo\n```\n\n## Features\n\n### Network Firewall\n\nContainer runs with restricted network access via **tinyproxy** (domain-based filtering) + **iptables** (enforcement):\n\n- tinyproxy runs on `localhost:8888` with a domain allowlist\n- `HTTP_PROXY`/`HTTPS_PROXY` set automatically in entrypoint\n- iptables owner-match: only `root` (tinyproxy) gets direct outbound, `node` (claude) must go through proxy\n- ✅ Allowed: GitHub, npm, Anthropic API, Go proxies, OSV vulnerability DB\n- ❌ Blocked: Everything else (example.com fails)\n- Requires `--cap-add=NET_ADMIN --cap-add=NET_RAW`\n\n**Adding domains:** Edit `files/tinyproxy-allowlist` (regex patterns, one per line)\n\n### Git-Root Mounting\n\nContainer always works from git root:\n```\nmy-app/\n├── src/\n├── go.mod\n└── ...  ← mounted as /workspace in container\n```\n\n### Docker Isolation\n\nContainer has:\n- ✅ Read/write to mounted workspace\n- ✅ Git operations within workspace\n- ❌ No kubectl contexts\n- ❌ No access to other repos\n- ❌ No SSH keys (unless explicitly mounted)\n\n## Configuration\n\n**Makefile variables:**\n- `REGISTRY` - Docker registry (default: `docker.io`)\n- `IMAGE` - Image name (default: `bborbe/claude-yolo`)\n- `VERSION` - Auto-detected from git tags (override: `make build VERSION=custom`)\n\n**Network allowlist:** Edit `files/tinyproxy-allowlist` to add/remove allowed domains (regex patterns).\n\n**Claude model:** Edit `files/entrypoint.sh` to change `--model` flag.\n\n## Project Structure\n\n```\nclaude-yolo/\n├── Dockerfile             # Container definition\n├── Makefile               # Build/run helpers\n├── README.md\n├── files/                 # Files copied into container image\n│   ├── entrypoint.sh      # Container init (sets proxy env vars)\n│   ├── init-firewall.sh   # Starts tinyproxy + iptables rules\n│   ├── tinyproxy.conf     # Proxy configuration\n│   ├── tinyproxy-allowlist # Domain allowlist (regex patterns)\n│   └── stream-formatter.py # Parse stream-json output for one-shot mode\n├── scripts/               # Helper scripts (run on host)\n│   ├── yolo-run.sh        # Launch container (interactive or one-shot)\n│   └── yolo-prompt.sh     # Execute prompts via /run-prompt\n└── examples/\n    └── CLAUDE.md          # Sample workflow configuration\n```\n\n**User's YOLO setup:**\n```\n~/.claude-yolo/            # Isolated YOLO config (separate from ~/.claude)\n├── CLAUDE.md              # Workflow instructions (copied from examples/)\n├── commands/              # Slash commands for YOLO\n│   └── run-prompt.md      # From claude-yolo-plugin\n└── memory/                # Optional YOLO-specific memory\n```\n\n**Project workspace:**\n```\nmy-app/\n├── prompts/               # Executable prompts (created by /create-prompt)\n│   ├── 001-feature.md\n│   ├── 002-bugfix.md\n│   └── completed/         # Archived after execution\n└── ...                    # Your project files\n```\n\n## Related Projects\n\n**Claude YOLO Plugin** - Slash commands for prompt-based workflow:\n- Repository: https://github.com/bborbe/claude-yolo-plugin\n- Commands: `/create-prompt`, `/run-prompt`\n- Installation: Copy commands to `~/.claude-yolo/commands/`\n\n**Attribution:**\n- Slash commands inspired by [taches-cc-resources](https://github.com/glittercowboy/taches-cc-resources)\n- Dark Factory pattern concept\n- Prompt engineering best practices\n\n## Architecture\n\n**Management Session** (your laptop, safe):\n- Create prompts with `/create-prompt`\n- Review implementation results\n- Commit acceptable changes\n\n**YOLO Container** (Docker, isolated, auto-approve):\n- Reads `~/.claude-yolo/CLAUDE.md` for workflow\n- Executes prompts autonomously\n- Runs tests, commits changes\n- Restricted network access (firewall)\n\n**Key Insight:** Isolation enables autonomy. Auto-approve mode is safe because the container can't access production systems.\n\n## License\n\nBSD-2-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbborbe%2Fclaude-yolo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbborbe%2Fclaude-yolo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbborbe%2Fclaude-yolo/lists"}