octocode-cli 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +129 -28
- package/out/chunks/chunk-7476PETK.js +309 -0
- package/out/chunks/chunk-CVNNNSMQ.js +26 -0
- package/out/chunks/chunk-OQBJTZWK.js +60 -0
- package/out/chunks/chunk-UCZCF3BQ.js +9 -0
- package/out/chunks/command-help-specs-JZXVSLZ5.js +8 -0
- package/out/chunks/commands-XBFPLHSQ.js +8 -0
- package/out/chunks/help-P7TCOYAJ.js +10 -0
- package/out/chunks/main-help-ULF5PAQY.js +10 -0
- package/out/chunks/prompts-5E6VKRX5.js +8 -0
- package/out/chunks/spinner-URV2OX6O.js +8 -0
- package/out/chunks/tool-command-M6VA7P2F.js +8 -0
- package/out/octocode-cli.js +1 -1
- package/package.json +5 -3
- package/skills/README.md +60 -58
- package/skills/agentic-flow-best-practices/SKILL.md +280 -0
- package/skills/agentic-flow-best-practices/references/agent-collaboration-patterns.md +75 -0
- package/skills/agentic-flow-best-practices/references/pr-review-agent-example.md +47 -0
- package/skills/agentic-flow-best-practices/references/resources.md +112 -0
- package/skills/octocode-brainstorming/.env.example +11 -0
- package/skills/octocode-brainstorming/SKILL.md +262 -0
- package/skills/octocode-brainstorming/scripts/tavily-search.mjs +138 -0
- package/skills/octocode-chrome-devtools/README.md +541 -0
- package/skills/octocode-chrome-devtools/SKILL.md +197 -0
- package/skills/octocode-chrome-devtools/agents/openai.yaml +7 -0
- package/skills/octocode-chrome-devtools/references/CDP_AGENT_REFERENCE.md +401 -0
- package/skills/octocode-chrome-devtools/references/CHROME_FLAGS.md +234 -0
- package/skills/octocode-chrome-devtools/references/INTENTS.md +108 -0
- package/skills/octocode-chrome-devtools/references/INTENTS_AUTH.md +179 -0
- package/skills/octocode-chrome-devtools/references/INTENTS_AUTOMATION.md +214 -0
- package/skills/octocode-chrome-devtools/references/INTENTS_DEBUG.md +329 -0
- package/skills/octocode-chrome-devtools/references/INTENTS_ENVIRONMENT.md +237 -0
- package/skills/octocode-chrome-devtools/references/INTENTS_INSPECT.md +263 -0
- package/skills/octocode-chrome-devtools/references/INTENTS_STORAGE_CONSENT.md +214 -0
- package/skills/octocode-chrome-devtools/references/RECOVERY.md +39 -0
- package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS.md +43 -0
- package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS_ASYNC_WORKERS.md +345 -0
- package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS_BROWSER.md +403 -0
- package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS_OBSERVE.md +275 -0
- package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS_SPECIAL.md +18 -0
- package/skills/octocode-chrome-devtools/scripts/cdp-runner.mjs +503 -0
- package/skills/octocode-chrome-devtools/scripts/cdp-sandbox.mjs +123 -0
- package/skills/octocode-chrome-devtools/scripts/cdp-template.mjs +81 -0
- package/skills/octocode-chrome-devtools/scripts/octocode-chrome-devtools.vpn.example.json +8 -0
- package/skills/octocode-chrome-devtools/scripts/open-browser.mjs +362 -0
- package/skills/octocode-chrome-devtools/scripts/sourcemap-resolver.mjs +193 -0
- package/skills/octocode-chrome-devtools/scripts/undercover.mjs +226 -0
- package/skills/octocode-design/README.md +2 -2
- package/skills/octocode-documentation-writer/README.md +1 -1
- package/skills/octocode-engineer/README.md +1 -1
- package/skills/octocode-engineer/SKILL.md +137 -306
- package/skills/octocode-engineer/references/cli-reference.md +13 -0
- package/skills/octocode-engineer/references/output-files.md +3 -3
- package/skills/octocode-engineer/scripts/run.js +146 -146
- package/skills/octocode-engineer/src/pipeline/main.ts +1 -17
- package/skills/octocode-engineer/src/pipeline/progress.ts +4 -0
- package/skills/octocode-engineer/src/reporting/summary-md.test.ts +48 -0
- package/skills/octocode-engineer/src/reporting/summary-md.ts +43 -2
- package/skills/octocode-install/SKILL.md +1 -1
- package/skills/octocode-pull-request-reviewer/README.md +5 -5
- package/skills/octocode-pull-request-reviewer/SKILL.md +1 -1
- package/skills/octocode-research/AGENTS.md +1 -1
- package/skills/octocode-research/README.md +2 -2
- package/skills/octocode-research/docs/ARCHITECTURE.md +1 -1
- package/skills/octocode-research/scripts/server.js +184 -239
- package/skills/octocode-research/src/routes/github.ts +4 -21
- package/skills/octocode-research/src/routes/local.ts +4 -21
- package/skills/octocode-research/src/utils/fileContentTransform.ts +44 -0
- package/skills/octocode-search-skill/SKILL.md +337 -0
- package/skills/octocode-search-skill/references/agent-skills-guide.md +177 -0
- package/skills/octocode-search-skill/references/discovery-surfaces.md +162 -0
- package/skills/octocode-search-skill/references/fetch-and-create-locally.md +57 -0
- package/skills/octocode-search-skill/references/install-reference.md +130 -0
- package/skills/octocode-search-skill/references/references-template.md +27 -0
- package/skills/octocode-search-skill/references/references.md +62 -0
- package/skills/octocode-slides/README.md +307 -0
- package/skills/octocode-slides/SKILL.md +410 -0
- package/skills/octocode-slides/references/01-brief.md +156 -0
- package/skills/octocode-slides/references/02-research.md +149 -0
- package/skills/octocode-slides/references/03-outline.md +172 -0
- package/skills/octocode-slides/references/04-design.md +301 -0
- package/skills/octocode-slides/references/05-implementation.md +213 -0
- package/skills/octocode-slides/references/06-review.md +258 -0
- package/skills/octocode-slides/references/animation.md +281 -0
- package/skills/octocode-slides/references/design-system.md +316 -0
- package/skills/octocode-slides/references/html-templates.md +673 -0
- package/skills/octocode-slides/references/image-generation.md +448 -0
- package/skills/octocode-slides/references/resources.md +840 -0
- package/skills/octocode-slides/references/slide-rules.md +541 -0
- package/skills/octocode-slides/references/wireframes.md +727 -0
- package/skills/octocode-slides/scripts/animation.js +182 -0
- package/skills/octocode-slides/scripts/base.css +353 -0
- package/skills/octocode-slides/scripts/base.html +655 -0
- package/skills/octocode-slides/scripts/generate_image.py +221 -0
- package/skills/octocode-slides/scripts/navbridge.js +79 -0
- package/skills/octocode-slides/scripts/presenter.js +316 -0
- package/skills/octocode-slides/scripts/slide.html +248 -0
- package/skills/octocode-stats/SKILL.md +73 -0
- package/skills/octocode-stats/assets/template.html +1332 -0
- package/skills/octocode-stats/scripts/build_dashboard.mjs +407 -0
- package/out/chunks/chunk-LH4AZJPA.js +0 -389
- package/out/chunks/command-help-specs-CQ3RBLP6.js +0 -8
- package/out/chunks/commands-M3QTWKWE.js +0 -51
- package/out/chunks/help-XPXP46ZT.js +0 -10
- package/out/chunks/main-help-HXFAFHPG.js +0 -10
- package/out/chunks/tool-command-VHFLPIHY.js +0 -8
package/README.md
CHANGED
|
@@ -6,69 +6,170 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/octocode-cli)
|
|
7
7
|
[](https://github.com/bgauryy/octocode-mcp/blob/main/packages/octocode-cli/LICENSE)
|
|
8
8
|
|
|
9
|
-
**Two things in one binary:**
|
|
9
|
+
**Two things in one binary:** manage Octocode MCP across your IDEs, and run any Octocode tool directly from the terminal.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
2. **Run tools** — call any Octocode tool directly from the terminal, for agents and humans alike.
|
|
13
|
-
|
|
14
|
-
[Website](https://octocode.ai) | [CLI Reference](https://github.com/bgauryy/octocode-mcp/blob/main/packages/octocode-cli/docs/CLI_REFERENCE.md) | [GitHub](https://github.com/bgauryy/octocode-mcp)
|
|
11
|
+
[Website](https://octocode.ai) · [CLI Reference](https://github.com/bgauryy/octocode-mcp/blob/main/docs/dev/reference/CLI_REFERENCE.md) · [GitHub](https://github.com/bgauryy/octocode-mcp)
|
|
15
12
|
|
|
16
13
|
<img src="https://raw.githubusercontent.com/bgauryy/octocode-mcp/main/packages/octocode-cli/assets/example.png" alt="Octocode CLI Demo" width="700" style="border-radius: 8px; margin: 20px 0;">
|
|
17
14
|
|
|
18
15
|
</div>
|
|
19
16
|
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Homebrew (macOS / Linux) — installs the `octocode` command
|
|
23
|
+
brew install bgauryy/octocode/octocode
|
|
24
|
+
|
|
25
|
+
# or npm (global)
|
|
26
|
+
npm install -g octocode-cli
|
|
27
|
+
|
|
28
|
+
# or run once without installing
|
|
29
|
+
npx octocode-cli install
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The installed command is **`octocode`** (e.g. `octocode --help`).
|
|
33
|
+
|
|
20
34
|
## Quick Start
|
|
21
35
|
|
|
22
36
|
```bash
|
|
23
|
-
npx octocode-cli
|
|
24
|
-
octocode
|
|
25
|
-
octocode
|
|
37
|
+
npx octocode-cli install # Interactive setup wizard
|
|
38
|
+
octocode install --ide cursor # Install for a specific IDE
|
|
39
|
+
octocode install --ide cursor --check # Pre-flight: check writability & current state
|
|
40
|
+
octocode auth # GitHub authentication
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## GitHub Token
|
|
46
|
+
|
|
47
|
+
Octocode resolves a GitHub token in this order: **environment variable → Octocode-managed token (`auth login`) → `gh` CLI**.
|
|
48
|
+
|
|
49
|
+
For env-based setup, any of these are accepted (checked in this priority): `OCTOCODE_TOKEN`, `GH_TOKEN`, `GITHUB_TOKEN`.
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
export GITHUB_TOKEN=ghp_xxx # or OCTOCODE_TOKEN / GH_TOKEN
|
|
53
|
+
octocode token --source # show which token & source is being used
|
|
54
|
+
octocode token --validate # ping the GitHub API to verify it
|
|
26
55
|
```
|
|
27
56
|
|
|
57
|
+
---
|
|
58
|
+
|
|
28
59
|
## Run Tools
|
|
29
60
|
|
|
30
|
-
Call any Octocode
|
|
61
|
+
Call any of the 14 Octocode tools directly from the terminal — great for scripts, pipelines, and one-off queries.
|
|
31
62
|
|
|
32
63
|
```bash
|
|
33
|
-
|
|
34
|
-
octocode
|
|
35
|
-
octocode
|
|
36
|
-
octocode
|
|
64
|
+
# Discover tools
|
|
65
|
+
octocode tools # list all tools with descriptions
|
|
66
|
+
octocode tools localSearchCode # show schema for a specific tool
|
|
67
|
+
octocode tools localSearchCode githubSearchCode # batch schemas
|
|
68
|
+
|
|
69
|
+
# Run a tool
|
|
70
|
+
octocode tools localSearchCode --queries '{"path":".","pattern":"TODO"}'
|
|
71
|
+
octocode tools githubSearchCode --queries '{"keywordsToSearch":["useReducer"],"owner":"facebook","repo":"react"}'
|
|
72
|
+
|
|
73
|
+
# Machine-readable output
|
|
74
|
+
octocode tools localSearchCode --queries '{"path":".","pattern":"TODO"}' --json
|
|
75
|
+
|
|
76
|
+
# Full MCP instructions + all schemas (for agents)
|
|
77
|
+
octocode instructions
|
|
37
78
|
```
|
|
38
79
|
|
|
80
|
+
Shared fields (`id`, `researchGoal`, `reasoning`, `mainResearchGoal`) are auto-filled — only provide tool-specific fields.
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
39
84
|
## Manage Octocode
|
|
40
85
|
|
|
41
86
|
| Command | What it does |
|
|
42
87
|
|---------|--------------|
|
|
43
|
-
| `install
|
|
88
|
+
| `install --ide <ide>` | Configure octocode-mcp for an IDE |
|
|
89
|
+
| `install --ide <ide> --check` | Pre-flight: verify config path is writable, show what would change |
|
|
90
|
+
| `install --ide <ide> --rollback` | Restore the most recent backup configuration |
|
|
91
|
+
| `install --ide <ide> --rollback --backup-path <file>` | Restore a specific backup file |
|
|
44
92
|
| `auth` / `login` / `logout` | GitHub authentication |
|
|
45
|
-
| `
|
|
46
|
-
| `
|
|
47
|
-
| `
|
|
48
|
-
| `
|
|
49
|
-
| `
|
|
93
|
+
| `login --force` | Log out the current session and re-authenticate in one step |
|
|
94
|
+
| `login --git-protocol <ssh\|https>` | Set the git protocol used for clones |
|
|
95
|
+
| `logout --yes` | Skip the confirmation prompt |
|
|
96
|
+
| `auth refresh` | Refresh an Octocode-managed token (source-aware) |
|
|
97
|
+
| `token` | Print the resolved GitHub token |
|
|
98
|
+
| `token --type <auto\|octocode\|gh>` | Force a specific token source instead of auto-resolution |
|
|
99
|
+
| `token --source` | Show which source resolved the token |
|
|
100
|
+
| `token --validate` | Ping the GitHub API to verify the token and show rate-limit |
|
|
101
|
+
| `status` | Full health check: auth + MCP clients + cache |
|
|
102
|
+
| `status --sync` | Also includes per-MCP sync analysis |
|
|
103
|
+
| `sync` | Sync MCP configs across all IDEs |
|
|
104
|
+
| `sync plan` / `sync --dry-run` | Show what `sync` would do without writing anything |
|
|
105
|
+
| `sync --status` | Show sync analysis without syncing |
|
|
106
|
+
| `sync --force` | Auto-resolve conflicts (use first variant found) |
|
|
107
|
+
| `skills` | Install / remove / list / search / read bundled skills |
|
|
108
|
+
| `skills search --direct` | Search skills.sh directly (human-readable) |
|
|
109
|
+
| `skills search --direct --install` | Fetch and install top result automatically |
|
|
110
|
+
| `skills read <path\|github:owner/repo/name>` | Preview a SKILL.md from disk or GitHub |
|
|
111
|
+
| `skills install --targets <t1,t2>` | Install all bundled skills to targets |
|
|
112
|
+
| `skills install --skill <name> --targets <t>` | Install one specific skill |
|
|
113
|
+
| `skills install --local <path> --targets <t>` | Install a local skill folder |
|
|
114
|
+
| `skills install --dry-run` | Preview installs without writing |
|
|
115
|
+
| `skills install --mode symlink` | Symlink instead of copy |
|
|
116
|
+
| `skills remove --skill <name> --targets <t>` | Remove a skill |
|
|
117
|
+
| `skills list` | List all installed skills across all targets |
|
|
118
|
+
| `skills list --target <t>` | Filter to one target |
|
|
119
|
+
| `skills sync <from> <to>` | Copy skills between targets |
|
|
120
|
+
| `mcp list` | Scan all OS MCP config files |
|
|
121
|
+
| `mcp list --client <id>` | Search registry for a specific client |
|
|
122
|
+
| `mcp list --installed` | List only installed MCPs with env-var status |
|
|
123
|
+
| `mcp list --search <text>` | Filter by id / name / description / tags |
|
|
124
|
+
| `mcp list --category <name>` | Filter by category |
|
|
125
|
+
| `mcp status --client <id>` | Show servers in one config + env var status |
|
|
126
|
+
| `mcp install --id <id> --client <id>` | Install one MCP server |
|
|
127
|
+
| `mcp install --id a,b,c` | Batch-install MCPs (parallel preflight) |
|
|
128
|
+
| `mcp install --id <id> --config <path>` | Install into a custom config file |
|
|
129
|
+
| `mcp install --id <id> --env K=V,K2=V2` | Set env vars for the installed server |
|
|
130
|
+
| `mcp install --id <id> --force` | Overwrite existing entry |
|
|
131
|
+
| `mcp remove --id <id> --client <id>` | Remove an MCP server |
|
|
132
|
+
| `cache status` | Inspect cache sizes (repos, skills, logs) |
|
|
133
|
+
| `cache clean --all` | Clean repos + skills + logs |
|
|
134
|
+
| `cache clean --repos` / `--skills` / `--logs` | Clean specific targets |
|
|
135
|
+
| `cache clean --tools` | Clean all tool caches (local + lsp + api) |
|
|
136
|
+
| `cache clean --local` / `--lsp` / `--api` | Clean individual tool caches |
|
|
137
|
+
| `cache clean --all --dry-run` | Show what would be freed without deleting |
|
|
138
|
+
| `cache clean --all --yes` | Skip confirmation prompt |
|
|
139
|
+
|
|
140
|
+
---
|
|
50
141
|
|
|
51
142
|
## Supported Clients
|
|
52
143
|
|
|
53
|
-
`cursor`, `claude-desktop`, `claude-code`, `windsurf`, `zed`, `vscode-cline`, `vscode-roo`, `vscode-continue`, `opencode`, `trae`, `antigravity`, `codex`, `gemini-cli`, `goose`, `kiro
|
|
54
|
-
|
|
55
|
-
## Docs
|
|
144
|
+
`cursor`, `claude` / `claude-desktop`, `claude-code`, `windsurf`, `zed`, `vscode-cline`, `vscode-roo`, `vscode-continue`, `opencode`, `trae`, `antigravity`, `codex`, `gemini-cli`, `goose`, `kiro`
|
|
56
145
|
|
|
57
|
-
|
|
58
|
-
- [Skills Guide](https://github.com/bgauryy/octocode-mcp/blob/main/packages/octocode-cli/docs/SKILLS_GUIDE.md) — bundled skills installation
|
|
146
|
+
---
|
|
59
147
|
|
|
60
148
|
## Troubleshooting
|
|
61
149
|
|
|
62
150
|
```bash
|
|
63
|
-
octocode
|
|
64
|
-
octocode
|
|
65
|
-
octocode
|
|
151
|
+
octocode status --sync # Full health check including sync analysis
|
|
152
|
+
octocode token --validate # Verify your GitHub token against the API
|
|
153
|
+
octocode token --source # Debug token resolution chain
|
|
154
|
+
octocode install --ide cursor --check # Pre-flight before installing
|
|
155
|
+
octocode sync plan # Preview sync changes before applying
|
|
156
|
+
octocode cache clean --all --dry-run # See what cache clean would free
|
|
66
157
|
```
|
|
67
158
|
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Docs
|
|
162
|
+
|
|
163
|
+
- [CLI Reference](https://github.com/bgauryy/octocode-mcp/blob/main/docs/dev/reference/CLI_REFERENCE.md) — full command and flag reference
|
|
164
|
+
- [Skills Guide](https://github.com/bgauryy/octocode-mcp/blob/main/docs/dev/SKILLS_GUIDE.md) — bundled skills installation
|
|
165
|
+
- [Configuration Reference](https://github.com/bgauryy/octocode-mcp/blob/main/docs/configuration/CONFIGURATION_REFERENCE.md)
|
|
166
|
+
- [Troubleshooting](https://github.com/bgauryy/octocode-mcp/blob/main/docs/configuration/TROUBLESHOOTING.md)
|
|
167
|
+
---
|
|
168
|
+
|
|
68
169
|
## Privacy & Telemetry
|
|
69
170
|
|
|
70
171
|
De-identified telemetry (command usage, error rates) helps improve the CLI. Source code, env values, and repo contents are not collected.
|
|
71
172
|
|
|
72
|
-
[Privacy Policy](https://github.com/bgauryy/octocode-mcp/blob/main/PRIVACY.md)
|
|
173
|
+
[Privacy Policy](https://github.com/bgauryy/octocode-mcp/blob/main/PRIVACY.md) · [Terms of Usage](https://github.com/bgauryy/octocode-mcp/blob/main/TERMS.md)
|
|
73
174
|
|
|
74
175
|
MIT. Copyright 2026 Octocode AI.
|