{"id":46291799,"url":"https://github.com/strawpot/strawpot_claude_code_cli","last_synced_at":"2026-04-02T15:52:46.312Z","repository":{"id":341868960,"uuid":"1171043825","full_name":"strawpot/strawpot_claude_code_cli","owner":"strawpot","description":"StrawPot Claude Code agent CLI","archived":false,"fork":false,"pushed_at":"2026-03-27T23:42:24.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-28T05:53:35.797Z","etag":null,"topics":["agent","claude-code","cli","strawpot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strawpot.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-03-02T20:12:49.000Z","updated_at":"2026-03-27T23:42:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/strawpot/strawpot_claude_code_cli","commit_stats":null,"previous_names":["strawpot/strawpot_claude_code_cli"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/strawpot/strawpot_claude_code_cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawpot%2Fstrawpot_claude_code_cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawpot%2Fstrawpot_claude_code_cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawpot%2Fstrawpot_claude_code_cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawpot%2Fstrawpot_claude_code_cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strawpot","download_url":"https://codeload.github.com/strawpot/strawpot_claude_code_cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strawpot%2Fstrawpot_claude_code_cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31309476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"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":["agent","claude-code","cli","strawpot"],"created_at":"2026-03-04T08:15:36.467Z","updated_at":"2026-04-02T15:52:46.303Z","avatar_url":"https://github.com/strawpot.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StrawPot Claude Code CLI\n\nA Go wrapper that translates [StrawPot](https://github.com/strawpot) protocol arguments into [Claude Code](https://docs.anthropic.com/en/docs/claude-code) CLI flags. It acts as a pure translation layer — process management, sessions, and infrastructure are handled by StrawPot core.\n\n## Prerequisites\n\n- [Claude Code CLI](https://www.npmjs.com/package/@anthropic-ai/claude-code) (`npm install -g @anthropic-ai/claude-code`)\n- An Anthropic API key (or a Claude Pro/Max plan)\n\n## Installation\n\n```sh\ncurl -fsSL https://raw.githubusercontent.com/strawpot/strawpot_claude_code_cli/main/strawpot_claude_code/install.sh | sh\n```\n\nThis downloads a pre-built binary for your platform (macOS/Linux, amd64/arm64) to `/usr/local/bin`. Override the install directory with `INSTALL_DIR`:\n\n```sh\nINSTALL_DIR=~/.local/bin curl -fsSL ... | sh\n```\n\n## Usage\n\nThe wrapper exposes two subcommands:\n\n### `setup`\n\nRuns `claude auth login` to authenticate with Anthropic.\n\n```sh\nstrawpot_claude_code setup\n```\n\n### `build`\n\nTranslates StrawPot protocol flags into a Claude Code command and outputs it as JSON.\n\n```sh\nstrawpot_claude_code build \\\n  --agent-workspace-dir /path/to/workspace \\\n  --working-dir /path/to/project \\\n  --task \"fix the bug\" \\\n  --config '{\"model\":\"claude-opus-4-6\"}'\n```\n\nOutput:\n\n```json\n{\n  \"cmd\": [\"claude\", \"-p\", \"fix the bug\", \"--system-prompt-file\", \"/path/to/workspace/prompt.md\", \"--model\", \"claude-opus-4-6\", \"--dangerously-skip-permissions\", \"--add-dir\", \"/path/to/workspace\"],\n  \"cwd\": \"/path/to/project\"\n}\n```\n\n#### Build flags\n\n| Flag | Required | Description |\n|---|---|---|\n| `--agent-workspace-dir` | Yes | Workspace directory (used as `--add-dir`) |\n| `--working-dir` | No | Working directory for the command (`cwd` in output) |\n| `--task` | No | Task prompt (passed as `claude -p`) |\n| `--config` | No | JSON config object (default: `{}`) |\n| `--role-prompt` | No | Role prompt text (written to `prompt.md`) |\n| `--memory-prompt` | No | Memory/context prompt (appended to `prompt.md`) |\n| `--skills-dir` | No | Directory with skill subdirectories (symlinked to `.claude/skills/`) |\n| `--roles-dir` | No | Directory with role subdirectories (repeatable, symlinked to `roles/`) |\n| `--agent-id` | No | Agent identifier |\n\n## Configuration\n\n### Config JSON\n\nPass via `--config`:\n\n| Key | Type | Default | Description |\n|---|---|---|---|\n| `model` | string | _(none)_ | Model override (omit to use claude CLI default) |\n| `dangerously_skip_permissions` | boolean | `true` | Skip permission prompts. Set to `false` to require approval for each action. |\n\n### Environment variables\n\n| Variable | Description |\n|---|---|\n| `ANTHROPIC_API_KEY` | Anthropic API key (optional if using Plus/Max plan) |\n| `PERMISSION_MODE` | Permission mode passed to `--permission-mode` (e.g. `auto`) |\n\n## Development\n\n```sh\ncd claude_code/wrapper\ngo test -v ./...\n```\n\nReleases are built with [GoReleaser](https://goreleaser.com/) and published automatically via GitHub Actions.\n\n## License\n\nSee [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrawpot%2Fstrawpot_claude_code_cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrawpot%2Fstrawpot_claude_code_cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrawpot%2Fstrawpot_claude_code_cli/lists"}