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.
Files changed (106) hide show
  1. package/README.md +129 -28
  2. package/out/chunks/chunk-7476PETK.js +309 -0
  3. package/out/chunks/chunk-CVNNNSMQ.js +26 -0
  4. package/out/chunks/chunk-OQBJTZWK.js +60 -0
  5. package/out/chunks/chunk-UCZCF3BQ.js +9 -0
  6. package/out/chunks/command-help-specs-JZXVSLZ5.js +8 -0
  7. package/out/chunks/commands-XBFPLHSQ.js +8 -0
  8. package/out/chunks/help-P7TCOYAJ.js +10 -0
  9. package/out/chunks/main-help-ULF5PAQY.js +10 -0
  10. package/out/chunks/prompts-5E6VKRX5.js +8 -0
  11. package/out/chunks/spinner-URV2OX6O.js +8 -0
  12. package/out/chunks/tool-command-M6VA7P2F.js +8 -0
  13. package/out/octocode-cli.js +1 -1
  14. package/package.json +5 -3
  15. package/skills/README.md +60 -58
  16. package/skills/agentic-flow-best-practices/SKILL.md +280 -0
  17. package/skills/agentic-flow-best-practices/references/agent-collaboration-patterns.md +75 -0
  18. package/skills/agentic-flow-best-practices/references/pr-review-agent-example.md +47 -0
  19. package/skills/agentic-flow-best-practices/references/resources.md +112 -0
  20. package/skills/octocode-brainstorming/.env.example +11 -0
  21. package/skills/octocode-brainstorming/SKILL.md +262 -0
  22. package/skills/octocode-brainstorming/scripts/tavily-search.mjs +138 -0
  23. package/skills/octocode-chrome-devtools/README.md +541 -0
  24. package/skills/octocode-chrome-devtools/SKILL.md +197 -0
  25. package/skills/octocode-chrome-devtools/agents/openai.yaml +7 -0
  26. package/skills/octocode-chrome-devtools/references/CDP_AGENT_REFERENCE.md +401 -0
  27. package/skills/octocode-chrome-devtools/references/CHROME_FLAGS.md +234 -0
  28. package/skills/octocode-chrome-devtools/references/INTENTS.md +108 -0
  29. package/skills/octocode-chrome-devtools/references/INTENTS_AUTH.md +179 -0
  30. package/skills/octocode-chrome-devtools/references/INTENTS_AUTOMATION.md +214 -0
  31. package/skills/octocode-chrome-devtools/references/INTENTS_DEBUG.md +329 -0
  32. package/skills/octocode-chrome-devtools/references/INTENTS_ENVIRONMENT.md +237 -0
  33. package/skills/octocode-chrome-devtools/references/INTENTS_INSPECT.md +263 -0
  34. package/skills/octocode-chrome-devtools/references/INTENTS_STORAGE_CONSENT.md +214 -0
  35. package/skills/octocode-chrome-devtools/references/RECOVERY.md +39 -0
  36. package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS.md +43 -0
  37. package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS_ASYNC_WORKERS.md +345 -0
  38. package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS_BROWSER.md +403 -0
  39. package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS_OBSERVE.md +275 -0
  40. package/skills/octocode-chrome-devtools/references/SCRIPT_PATTERNS_SPECIAL.md +18 -0
  41. package/skills/octocode-chrome-devtools/scripts/cdp-runner.mjs +503 -0
  42. package/skills/octocode-chrome-devtools/scripts/cdp-sandbox.mjs +123 -0
  43. package/skills/octocode-chrome-devtools/scripts/cdp-template.mjs +81 -0
  44. package/skills/octocode-chrome-devtools/scripts/octocode-chrome-devtools.vpn.example.json +8 -0
  45. package/skills/octocode-chrome-devtools/scripts/open-browser.mjs +362 -0
  46. package/skills/octocode-chrome-devtools/scripts/sourcemap-resolver.mjs +193 -0
  47. package/skills/octocode-chrome-devtools/scripts/undercover.mjs +226 -0
  48. package/skills/octocode-design/README.md +2 -2
  49. package/skills/octocode-documentation-writer/README.md +1 -1
  50. package/skills/octocode-engineer/README.md +1 -1
  51. package/skills/octocode-engineer/SKILL.md +137 -306
  52. package/skills/octocode-engineer/references/cli-reference.md +13 -0
  53. package/skills/octocode-engineer/references/output-files.md +3 -3
  54. package/skills/octocode-engineer/scripts/run.js +146 -146
  55. package/skills/octocode-engineer/src/pipeline/main.ts +1 -17
  56. package/skills/octocode-engineer/src/pipeline/progress.ts +4 -0
  57. package/skills/octocode-engineer/src/reporting/summary-md.test.ts +48 -0
  58. package/skills/octocode-engineer/src/reporting/summary-md.ts +43 -2
  59. package/skills/octocode-install/SKILL.md +1 -1
  60. package/skills/octocode-pull-request-reviewer/README.md +5 -5
  61. package/skills/octocode-pull-request-reviewer/SKILL.md +1 -1
  62. package/skills/octocode-research/AGENTS.md +1 -1
  63. package/skills/octocode-research/README.md +2 -2
  64. package/skills/octocode-research/docs/ARCHITECTURE.md +1 -1
  65. package/skills/octocode-research/scripts/server.js +184 -239
  66. package/skills/octocode-research/src/routes/github.ts +4 -21
  67. package/skills/octocode-research/src/routes/local.ts +4 -21
  68. package/skills/octocode-research/src/utils/fileContentTransform.ts +44 -0
  69. package/skills/octocode-search-skill/SKILL.md +337 -0
  70. package/skills/octocode-search-skill/references/agent-skills-guide.md +177 -0
  71. package/skills/octocode-search-skill/references/discovery-surfaces.md +162 -0
  72. package/skills/octocode-search-skill/references/fetch-and-create-locally.md +57 -0
  73. package/skills/octocode-search-skill/references/install-reference.md +130 -0
  74. package/skills/octocode-search-skill/references/references-template.md +27 -0
  75. package/skills/octocode-search-skill/references/references.md +62 -0
  76. package/skills/octocode-slides/README.md +307 -0
  77. package/skills/octocode-slides/SKILL.md +410 -0
  78. package/skills/octocode-slides/references/01-brief.md +156 -0
  79. package/skills/octocode-slides/references/02-research.md +149 -0
  80. package/skills/octocode-slides/references/03-outline.md +172 -0
  81. package/skills/octocode-slides/references/04-design.md +301 -0
  82. package/skills/octocode-slides/references/05-implementation.md +213 -0
  83. package/skills/octocode-slides/references/06-review.md +258 -0
  84. package/skills/octocode-slides/references/animation.md +281 -0
  85. package/skills/octocode-slides/references/design-system.md +316 -0
  86. package/skills/octocode-slides/references/html-templates.md +673 -0
  87. package/skills/octocode-slides/references/image-generation.md +448 -0
  88. package/skills/octocode-slides/references/resources.md +840 -0
  89. package/skills/octocode-slides/references/slide-rules.md +541 -0
  90. package/skills/octocode-slides/references/wireframes.md +727 -0
  91. package/skills/octocode-slides/scripts/animation.js +182 -0
  92. package/skills/octocode-slides/scripts/base.css +353 -0
  93. package/skills/octocode-slides/scripts/base.html +655 -0
  94. package/skills/octocode-slides/scripts/generate_image.py +221 -0
  95. package/skills/octocode-slides/scripts/navbridge.js +79 -0
  96. package/skills/octocode-slides/scripts/presenter.js +316 -0
  97. package/skills/octocode-slides/scripts/slide.html +248 -0
  98. package/skills/octocode-stats/SKILL.md +73 -0
  99. package/skills/octocode-stats/assets/template.html +1332 -0
  100. package/skills/octocode-stats/scripts/build_dashboard.mjs +407 -0
  101. package/out/chunks/chunk-LH4AZJPA.js +0 -389
  102. package/out/chunks/command-help-specs-CQ3RBLP6.js +0 -8
  103. package/out/chunks/commands-M3QTWKWE.js +0 -51
  104. package/out/chunks/help-XPXP46ZT.js +0 -10
  105. package/out/chunks/main-help-HXFAFHPG.js +0 -10
  106. package/out/chunks/tool-command-VHFLPIHY.js +0 -8
package/README.md CHANGED
@@ -6,69 +6,170 @@
6
6
  [![npm downloads](https://img.shields.io/npm/dm/octocode-cli.svg?style=flat-square)](https://www.npmjs.com/package/octocode-cli)
7
7
  [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](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
- 1. **Manage** install, authenticate, sync, and configure Octocode MCP, skills, and marketplace MCPs across IDEs.
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 # Interactive setup
24
- octocode-cli install --ide cursor # Non-interactive install
25
- octocode-cli auth # GitHub authentication
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 tool directly — works for agents, scripts, and humans. Shared fields (`id`, `researchGoal`, `reasoning`, `mainResearchGoal`) are auto-filled.
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
- octocode-cli --tool localSearchCode --queries '{"path":".","pattern":"runCLI"}'
34
- octocode-cli --tool githubSearchCode --queries '{"keywordsToSearch":["useReducer"],"owner":"facebook","repo":"react"}'
35
- octocode-cli --tool githubSearchCode --help # Input/output schema
36
- octocode-cli --tools-context # Full MCP instructions + all schemas
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` | Configure octocode-mcp for an IDE |
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
- | `token` / `status` | Token and auth info |
46
- | `sync` | Sync MCP configs across IDEs |
47
- | `skills` | Install/remove bundled skills |
48
- | `mcp` | Manage MCP marketplace |
49
- | `cache` | Inspect/clean cache and logs |
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
- - [CLI Reference](https://github.com/bgauryy/octocode-mcp/blob/main/packages/octocode-cli/docs/CLI_REFERENCE.md) — full command and tool syntax
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-cli status # Check auth
64
- octocode-cli token --source # Debug token resolution
65
- octocode-cli sync --status # Check config consistency
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) | [Terms of Usage](https://github.com/bgauryy/octocode-mcp/blob/main/TERMS.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.