@octocodeai/octocode-tools-core 17.0.1 → 18.0.1

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 (219) hide show
  1. package/README.md +48 -38
  2. package/dist/direct.js +52 -35
  3. package/dist/github/canonicalRepo.d.ts +14 -0
  4. package/dist/github/codeSearch/matchPositions.d.ts +11 -0
  5. package/dist/github/codeSearch.d.ts +2 -1
  6. package/dist/github/compare.d.ts +42 -0
  7. package/dist/github/dateWindow.d.ts +4 -0
  8. package/dist/github/discussions.d.ts +45 -0
  9. package/dist/github/githubAPI.d.ts +7 -13
  10. package/dist/github/history/commitFiles.d.ts +39 -0
  11. package/dist/github/history.d.ts +1 -0
  12. package/dist/github/issues/types.d.ts +8 -8
  13. package/dist/github/prTransformation.d.ts +24 -25
  14. package/dist/github/queryBuilders/base.d.ts +0 -1
  15. package/dist/github/queryBuilders/issues.d.ts +0 -6
  16. package/dist/github/releases.d.ts +9 -1
  17. package/dist/github/responseHeaders.d.ts +6 -0
  18. package/dist/index.d.ts +7 -6
  19. package/dist/index.js +56 -39
  20. package/dist/providers/github/githubPullRequests.d.ts +9 -0
  21. package/dist/providers/github/paginationMetadata.d.ts +6 -5
  22. package/dist/providers/providerQueries.d.ts +11 -6
  23. package/dist/providers/providerResults.d.ts +9 -1
  24. package/dist/schema.d.ts +0 -1
  25. package/dist/schema.js +1 -2
  26. package/dist/scheme/pagination.d.ts +5 -13
  27. package/dist/scheme/responseEnvelope.d.ts +28 -22
  28. package/dist/security/bridge.d.ts +3 -2
  29. package/dist/shared/config/index.d.ts +0 -1
  30. package/dist/shared/config/index.js +1 -1
  31. package/dist/shared/languageSelectors/classify.d.ts +2 -2
  32. package/dist/shared/languageSelectors/data.d.ts +4 -4
  33. package/dist/shared/languageSelectors.d.ts +1 -1
  34. package/dist/shared/paths.d.ts +1 -4
  35. package/dist/tools/directToolCatalog/toolCatalogDefinitions.d.ts +10 -11
  36. package/dist/tools/directToolCatalog/toolCatalogFormatters.d.ts +12 -0
  37. package/dist/tools/directToolCatalog.meta.d.ts +1 -0
  38. package/dist/tools/github_clone_repo/contentSize.d.ts +9 -0
  39. package/dist/tools/github_clone_repo/scheme.d.ts +26 -96
  40. package/dist/tools/github_fetch_content/finalizer/types.d.ts +2 -3
  41. package/dist/tools/github_fetch_content/scheme.d.ts +92 -142
  42. package/dist/tools/github_fetch_content/types.d.ts +2 -1
  43. package/dist/tools/github_search_code/scheme.d.ts +39 -87
  44. package/dist/tools/github_search_discussions/execution.d.ts +15 -0
  45. package/dist/tools/github_search_discussions/scheme.d.ts +16 -0
  46. package/dist/tools/github_search_pull_requests/contentResponse/fileSurfaces.d.ts +2 -16
  47. package/dist/tools/github_search_pull_requests/scheme.d.ts +97 -119
  48. package/dist/tools/github_search_pull_requests/splitExecutions.d.ts +8 -0
  49. package/dist/tools/github_search_pull_requests/splitSchemes.d.ts +216 -0
  50. package/dist/tools/github_search_pull_requests/types.d.ts +28 -29
  51. package/dist/tools/github_search_repos/execution.d.ts +0 -2
  52. package/dist/tools/github_search_repos/scheme.d.ts +36 -64
  53. package/dist/tools/github_view_repo_structure/scheme.d.ts +37 -66
  54. package/dist/tools/local_dead_code/deadCodeScan.d.ts +26 -0
  55. package/dist/tools/local_dead_code/entrypoints.d.ts +16 -0
  56. package/dist/tools/local_dead_code/execution.d.ts +4 -0
  57. package/dist/tools/local_dead_code/graphBuilder.d.ts +43 -0
  58. package/dist/tools/local_dead_code/importResolver.d.ts +6 -0
  59. package/dist/tools/local_dead_code/local_dead_code.d.ts +5 -0
  60. package/dist/tools/local_dead_code/reachability.d.ts +21 -0
  61. package/dist/tools/local_dead_code/retention.d.ts +22 -0
  62. package/dist/tools/local_dead_code/scheme.d.ts +51 -0
  63. package/dist/tools/local_dead_code/types.d.ts +56 -0
  64. package/dist/tools/local_fetch_content/execution.d.ts +0 -1
  65. package/dist/tools/local_fetch_content/fetchContent/extraction.d.ts +6 -0
  66. package/dist/tools/local_fetch_content/fetchContent/validation.d.ts +9 -1
  67. package/dist/tools/local_fetch_content/fetchContent.d.ts +0 -1
  68. package/dist/tools/local_fetch_content/scheme.d.ts +28 -90
  69. package/dist/tools/local_find_files/execution.d.ts +0 -1
  70. package/dist/tools/local_find_files/findFiles.d.ts +0 -3
  71. package/dist/tools/local_find_files/findFilesNext.d.ts +26 -0
  72. package/dist/tools/local_find_files/pathPatternBraces.d.ts +20 -0
  73. package/dist/tools/local_find_files/scheme.d.ts +19 -81
  74. package/dist/tools/local_ripgrep/captureBudget.d.ts +25 -0
  75. package/dist/tools/local_ripgrep/rankingProfile/rankingProfiles.d.ts +1 -0
  76. package/dist/tools/local_ripgrep/rankingProfile/rankingResults.d.ts +1 -0
  77. package/dist/tools/local_ripgrep/ripgrepResultBuilder/searchNext.d.ts +1 -1
  78. package/dist/tools/local_ripgrep/scheme.d.ts +89 -190
  79. package/dist/tools/local_view_structure/execution.d.ts +0 -1
  80. package/dist/tools/local_view_structure/local_view_structure.d.ts +0 -1
  81. package/dist/tools/local_view_structure/scheme.d.ts +34 -87
  82. package/dist/tools/local_view_structure/structureFilters.d.ts +2 -4
  83. package/dist/tools/local_view_structure/structureResponse.d.ts +1 -0
  84. package/dist/tools/local_view_structure/viewStructureNext.d.ts +25 -0
  85. package/dist/tools/lsp/semantic_content/index.d.ts +2 -1
  86. package/dist/tools/lsp/semantic_content/scheme.d.ts +167 -629
  87. package/dist/tools/lsp/semantic_content/semanticAnchored.d.ts +8 -2
  88. package/dist/tools/lsp/semantic_content/semanticEnvelopes/locationEnvelopes.d.ts +2 -1
  89. package/dist/tools/lsp/semantic_content/semanticFileOps/anchor.d.ts +17 -1
  90. package/dist/tools/lsp/semantic_content/semanticNext.d.ts +2 -0
  91. package/dist/tools/lsp/semantic_content/semanticPresentation.d.ts +1 -1
  92. package/dist/tools/lsp/shared/callHierarchyTraversal.d.ts +14 -2
  93. package/dist/tools/lsp/shared/semanticTypes.d.ts +14 -1
  94. package/dist/tools/package_search/execution.d.ts +9 -6
  95. package/dist/tools/package_search/queryHelpers.d.ts +8 -0
  96. package/dist/tools/package_search/scheme.d.ts +30 -86
  97. package/dist/tools/providerMappers/codeSearch.d.ts +0 -1
  98. package/dist/tools/providerMappers/pullRequests.d.ts +0 -13
  99. package/dist/tools/providerMappers/repoSearch.d.ts +1 -5
  100. package/dist/tools/providerMappers/repoStructure.d.ts +4 -0
  101. package/dist/tools/toolCatalogFactory.d.ts +25 -0
  102. package/dist/tools/toolConfig.d.ts +9 -24
  103. package/dist/tools/toolNames.d.ts +2 -2
  104. package/dist/tools/toolSchemaImports.d.ts +3 -1
  105. package/dist/types/execution.d.ts +1 -0
  106. package/dist/types/toolOutput.d.ts +38 -0
  107. package/dist/utils/contextUtils.d.ts +6 -0
  108. package/dist/utils/core/types.d.ts +4 -0
  109. package/dist/utils/file/toolHelpers.d.ts +12 -0
  110. package/dist/utils/jsSymbolNames.d.ts +6 -0
  111. package/package.json +41 -44
  112. package/dist/oql/adapters/compile.d.ts +0 -25
  113. package/dist/oql/adapters/github/execute.d.ts +0 -16
  114. package/dist/oql/adapters/github/provider-diagnostics.d.ts +0 -14
  115. package/dist/oql/adapters/github/shared.d.ts +0 -75
  116. package/dist/oql/adapters/github.d.ts +0 -14
  117. package/dist/oql/adapters/graphProof.d.ts +0 -6
  118. package/dist/oql/adapters/graphView/filters.d.ts +0 -25
  119. package/dist/oql/adapters/graphView/nativeEdges.d.ts +0 -5
  120. package/dist/oql/adapters/graphView.d.ts +0 -29
  121. package/dist/oql/adapters/local/code.d.ts +0 -3
  122. package/dist/oql/adapters/local/codeBoolean.d.ts +0 -3
  123. package/dist/oql/adapters/local/fileRowOps.d.ts +0 -11
  124. package/dist/oql/adapters/local/files.d.ts +0 -3
  125. package/dist/oql/adapters/local/filesBoolean.d.ts +0 -10
  126. package/dist/oql/adapters/local/filesContentLeaf.d.ts +0 -12
  127. package/dist/oql/adapters/local/filesUniverse.d.ts +0 -6
  128. package/dist/oql/adapters/local/findToolType.d.ts +0 -10
  129. package/dist/oql/adapters/local/predicates.d.ts +0 -18
  130. package/dist/oql/adapters/local/scope.d.ts +0 -14
  131. package/dist/oql/adapters/local/searchToolType.d.ts +0 -7
  132. package/dist/oql/adapters/local/structureContent.d.ts +0 -6
  133. package/dist/oql/adapters/local/types.d.ts +0 -34
  134. package/dist/oql/adapters/local.d.ts +0 -4
  135. package/dist/oql/adapters/materialize.d.ts +0 -11
  136. package/dist/oql/adapters/pagination.d.ts +0 -21
  137. package/dist/oql/adapters/researchTargets/diff.d.ts +0 -16
  138. package/dist/oql/adapters/researchTargets/graph.d.ts +0 -3
  139. package/dist/oql/adapters/researchTargets/history.d.ts +0 -20
  140. package/dist/oql/adapters/researchTargets/pagination.d.ts +0 -54
  141. package/dist/oql/adapters/researchTargets/repositories.d.ts +0 -4
  142. package/dist/oql/adapters/researchTargets/research.d.ts +0 -3
  143. package/dist/oql/adapters/researchTargets/rows.d.ts +0 -16
  144. package/dist/oql/adapters/researchTargets/semantics.d.ts +0 -3
  145. package/dist/oql/adapters/researchTargets/shared.d.ts +0 -11
  146. package/dist/oql/adapters/researchTargets.d.ts +0 -8
  147. package/dist/oql/adapters/resultMap.d.ts +0 -27
  148. package/dist/oql/adapters/ruleYaml.d.ts +0 -11
  149. package/dist/oql/adapters/runner.d.ts +0 -21
  150. package/dist/oql/capabilities.d.ts +0 -31
  151. package/dist/oql/defaults.d.ts +0 -26
  152. package/dist/oql/diagnostics.d.ts +0 -25
  153. package/dist/oql/diffLanes.d.ts +0 -29
  154. package/dist/oql/envelope.d.ts +0 -21
  155. package/dist/oql/features.d.ts +0 -7
  156. package/dist/oql/index.d.ts +0 -27
  157. package/dist/oql/index.js +0 -47
  158. package/dist/oql/normalize/batch.d.ts +0 -2
  159. package/dist/oql/normalize/materialize.d.ts +0 -2
  160. package/dist/oql/normalize/params.d.ts +0 -2
  161. package/dist/oql/normalize/query.d.ts +0 -2
  162. package/dist/oql/normalize/scope.d.ts +0 -2
  163. package/dist/oql/normalize/shared.d.ts +0 -7
  164. package/dist/oql/normalize/source.d.ts +0 -2
  165. package/dist/oql/normalize/where.d.ts +0 -2
  166. package/dist/oql/normalize.d.ts +0 -20
  167. package/dist/oql/planner/planDiagnostics.d.ts +0 -13
  168. package/dist/oql/planner/predicateRouting.d.ts +0 -35
  169. package/dist/oql/planner.d.ts +0 -7
  170. package/dist/oql/predicateUtils.d.ts +0 -3
  171. package/dist/oql/research/analyze/manifest-scan.d.ts +0 -4
  172. package/dist/oql/research/analyze/source-graph.d.ts +0 -7
  173. package/dist/oql/research/analyze/symbol-scoring.d.ts +0 -4
  174. package/dist/oql/research/analyze/types.d.ts +0 -163
  175. package/dist/oql/research/analyze/utils.d.ts +0 -16
  176. package/dist/oql/research/analyze.d.ts +0 -3
  177. package/dist/oql/research/packets/builders.d.ts +0 -4
  178. package/dist/oql/research/packets/types.d.ts +0 -91
  179. package/dist/oql/research/packets.d.ts +0 -21
  180. package/dist/oql/run/batch.d.ts +0 -3
  181. package/dist/oql/run/continuations/records.d.ts +0 -19
  182. package/dist/oql/run/continuations/registry.d.ts +0 -22
  183. package/dist/oql/run/continuations/semantics.d.ts +0 -3
  184. package/dist/oql/run/continuations/types.d.ts +0 -12
  185. package/dist/oql/run/dryRun.d.ts +0 -11
  186. package/dist/oql/run/paths.d.ts +0 -15
  187. package/dist/oql/run/proofGrades.d.ts +0 -8
  188. package/dist/oql/run/select.d.ts +0 -10
  189. package/dist/oql/run/single.d.ts +0 -22
  190. package/dist/oql/run.d.ts +0 -5
  191. package/dist/oql/schema/predicates.d.ts +0 -12
  192. package/dist/oql/schema.d.ts +0 -1049
  193. package/dist/oql/schemeText.d.ts +0 -152
  194. package/dist/oql/shorthand/predicates.d.ts +0 -15
  195. package/dist/oql/shorthand/query-controls.d.ts +0 -18
  196. package/dist/oql/shorthand/target-params.d.ts +0 -9
  197. package/dist/oql/shorthand/types.d.ts +0 -159
  198. package/dist/oql/shorthand/utils.d.ts +0 -7
  199. package/dist/oql/shorthand.d.ts +0 -8
  200. package/dist/oql/targetParams.d.ts +0 -7
  201. package/dist/oql/transformers/contract.d.ts +0 -19
  202. package/dist/oql/transformers/github/code.d.ts +0 -9
  203. package/dist/oql/transformers/github/common.d.ts +0 -14
  204. package/dist/oql/transformers/language.d.ts +0 -1
  205. package/dist/oql/transformers/registry.d.ts +0 -16
  206. package/dist/oql/transformers/types.d.ts +0 -11
  207. package/dist/oql/types/diagnostics.d.ts +0 -22
  208. package/dist/oql/types/envelope.d.ts +0 -78
  209. package/dist/oql/types/guards.d.ts +0 -9
  210. package/dist/oql/types/planner.d.ts +0 -46
  211. package/dist/oql/types/predicates.d.ts +0 -93
  212. package/dist/oql/types/query.d.ts +0 -143
  213. package/dist/oql/types/recordData.d.ts +0 -127
  214. package/dist/oql/types/recordRows.d.ts +0 -48
  215. package/dist/oql/types/results.d.ts +0 -118
  216. package/dist/oql/types/targets.d.ts +0 -22
  217. package/dist/oql/types.d.ts +0 -27
  218. package/dist/tools/oql_search/execution.d.ts +0 -7
  219. package/dist/tools/toolMetadata/descriptionOverrides.d.ts +0 -4
package/README.md CHANGED
@@ -51,7 +51,7 @@ npx octocode auth login
51
51
  npx octocode status # verify the active token source
52
52
  ```
53
53
 
54
- **3. Choose your interface.** The same engine and 12 tools run identically either way.
54
+ **3. Choose your interface.** The same engine and tools run identically either way.
55
55
 
56
56
  **🖥️ CLI** — research straight from your terminal:
57
57
 
@@ -105,7 +105,7 @@ Octocode is useful whenever the next coding step depends on finding and proving
105
105
  | **Semantic navigation** | Resolve definitions, references, callers/callees, call hierarchy, hovers, symbols, diagnostics, and type relationships through LSP. |
106
106
  | **Structural matching** | Run AST-shaped searches with patterns or YAML rules so comments and strings do not become false positives. |
107
107
  | **Large-file context** | Minify, skeletonize, or paginate code so agents spend tokens on relevant structure instead of boilerplate. |
108
- | **Agent workflows** | Same engine via MCP, CLI, OQL, and Agent Skills. |
108
+ | **Agent workflows** | Same engine via MCP, CLI, and Agent Skills. |
109
109
 
110
110
  See [Quick Start](#quick-start) to install in your terminal or AI assistant.
111
111
 
@@ -113,7 +113,7 @@ See [Quick Start](#quick-start) to install in your terminal or AI assistant.
113
113
 
114
114
  ## Tools
115
115
 
116
- **12 always-on tools** (same on [MCP](#mcp) and [CLI](#cli)). Local tools on by default (`ENABLE_LOCAL=false` to disable). `ghCloneRepo` is MCP opt-in (`ENABLE_CLONE=true`), CLI on by default. Flags: [Configuration](https://github.com/bgauryy/octocode/blob/main/docs/CONFIGURATION.md).
116
+ **13 always-on tools** (same on [MCP](#mcp) and [CLI](#cli)). Local tools on by default (`ENABLE_LOCAL=false` to disable). Three opt-ins: `ghCloneRepo` (MCP opt-in `ENABLE_CLONE=true`, CLI on by default), `ghListReleases` (`ENABLE_RELEASES=true`), and `ghSearchDiscussions` (`ENABLE_DISCUSSIONS=true`). Flags: [Configuration](https://github.com/bgauryy/octocode/blob/main/docs/CONFIGURATION.md).
117
117
 
118
118
  **Token knobs.** `concise:true` returns path/title-only lists. `minify` controls file read density: `symbols` = skeleton with line numbers, `standard` = comments/blanks stripped (default), `none` = exact bytes.
119
119
 
@@ -123,10 +123,14 @@ See [Quick Start](#quick-start) to install in your terminal or AI assistant.
123
123
  |------|--------------|------|
124
124
  | `ghSearchCode` | Code and path search across GitHub by owner, repo, path, filename, extension, and match filters. Accepts 1 to 5 parallel queries. | `concise` |
125
125
  | `ghGetFileContent` | Read a GitHub file or region: full file, line range, match slice, or paginated chars. | `minify` |
126
- | `ghViewRepoStructure` | Browse a GitHub repository's directory tree before reading files. | |
127
- | `ghSearchRepos` | Discover repositories by keywords, owner, topic, language, stars, forks, size, dates, license, visibility. | `concise` |
128
- | `ghHistoryResearch` | Search PR history, or deep-read one PR: files, patches, comments, reviews, commits. | `concise` |
129
- | `ghCloneRepo` | Clone a repo or sparse subtree into the local cache for local/LSP analysis. **Opt-in** (`ENABLE_CLONE=true`). | `sparsePath` |
126
+ | `ghViewRepoStructure` | Browse a repository's directory tree, plus opt-in repo enrichments. | `include` |
127
+ | `ghSearchRepos` | Discover repositories by keywords, owner, topic, language, stars, updated, license, visibility. | `concise` |
128
+ | `ghSearchPullRequests` | Search pull requests, or deep-read one PR: files, patches, comments, reviews, commits. | `content` |
129
+ | `ghSearchIssues` | Search issues, or read one issue's body and comments. | `content` |
130
+ | `ghSearchCommits` | Walk a repo's commit history, or compare two refs (`base`+`head`). | `includeDiff` |
131
+ | `ghListReleases` | List releases + latest, with opt-in assets. **Opt-in** (`ENABLE_RELEASES=true`). | `includeAssets` |
132
+ | `ghSearchDiscussions` | Search a repo's Discussions (Q&A, RFCs, announcements) via GraphQL. **Opt-in** (`ENABLE_DISCUSSIONS=true`). | `keywordsToSearch` |
133
+ | `ghCloneRepo` | Clone a repo or sparse subtree into the local cache for local/LSP analysis. **Opt-in** on MCP (`ENABLE_CLONE=true`; CLI on by default). | `sparsePath` |
130
134
 
131
135
  ### Local Tools
132
136
 
@@ -147,13 +151,7 @@ See [Quick Start](#quick-start) to install in your terminal or AI assistant.
147
151
 
148
152
  | Tool | What it does |
149
153
  |------|--------------|
150
- | `lspGetSemantics` | Typed semantic navigation. Raw tools support `definition`, `references`, `callers`, `callees`, `callHierarchy`, `hover`, `documentSymbols`, `typeDefinition`, `implementation`, `workspaceSymbol`, `supertypes`, `subtypes`, and `diagnostic`. The CLI uses `npx octocode search <file> --op <type>` for semantics and `npx octocode search <file> --symbols` for file or directory symbol outlines. Navigation runs through installed language servers (see the [LSP Tools Reference](https://github.com/bgauryy/octocode/blob/main/docs/OCTOCODE_TOOLS.md#lsp-tools-reference)). |
151
-
152
- ### OQL Search
153
-
154
- | Tool | What it does |
155
- |------|--------------|
156
- | `oqlSearch` | Runs typed OQL queries across code, content, structure, files, semantics, repositories, packages, pull requests, commits, diff, research, graph, and materialization targets. |
154
+ | `lspGetSemantics` | Typed semantic navigation: `definition`, `references`, `callers`, `callees`, `callHierarchy`, `hover`, `documentSymbols`, `typeDefinition`, `implementation`, `workspaceSymbol`, `supertypes`, `subtypes`, and `diagnostic`. From the CLI, invoke it directly: `npx octocode tools lspGetSemantics --queries '<json>'`. Navigation runs through installed language servers (see the [LSP Tools Reference](https://github.com/bgauryy/octocode/blob/main/docs/OCTOCODE_TOOLS.md#lsp-tools-reference)). |
157
155
 
158
156
  Full schemas, fields, and examples for every tool live in [`docs/OCTOCODE_TOOLS.md`](https://github.com/bgauryy/octocode/blob/main/docs/OCTOCODE_TOOLS.md) (linked under [Documentation](#documentation)).
159
157
 
@@ -213,24 +211,21 @@ npx octocode --help # full usage
213
211
 
214
212
  ### Commands
215
213
 
216
- #### Search
214
+ #### Tools
217
215
 
218
216
  | Command | What it does |
219
217
  |---------|--------------|
220
- | `npx octocode search <term> <path\|owner/repo>` | Text, regex, AST structural (`--pattern`), or full OQL (`--query`) |
221
- | `npx octocode search <path\|owner/repo> --tree` | Browse directory or repository structure |
222
- | `npx octocode search <file>` | Read file content; `--content-view exact\|compact\|symbols` or `--raw` |
223
- | `npx octocode search <file> --symbols` | Symbol outline for a file or source tree |
224
- | `npx octocode search --query <oql-json>` | Full OQL across all target types (code, commits, PRs, packages, …) |
218
+ | `npx octocode tools <name> --scheme` | Show one tool's schema: fields, types, bounds, defaults |
219
+ | `npx octocode tools <name> --queries '<json>'` | Run a tool (same tools as MCP), YAML output |
220
+ | `npx octocode tools <name> --queries '<json>' --json` | Run a tool, full `CallToolResult` JSON |
221
+ | `npx octocode tools` | List every available tool |
225
222
 
226
223
  #### More commands
227
224
 
228
- - **GitHub & npm** — `npx octocode search <…> --target repositories|packages|pullRequests|commits|diff`
229
- - **LSP** — `npx octocode search <file> --op definition|references|callers|callees|hover|diagnostic|callHierarchy` (`--symbol`, `--line` to narrow)
230
225
  - **Cache & clone** — `npx octocode clone`, `npx octocode cache fetch|status|clear`
231
- - **Skills** — `npx octocode skill --list | --name <skill> | --add <github-path> | --install-all`
226
+ - **Skills** — `npx octocode skill list|install|check|info|remove` for bundled Octocode skills
232
227
  - **Language servers** — `npx octocode lsp-server list|install|status|uninstall|clean`
233
- - **Setup & introspection** — `npx octocode install`, `npx octocode auth`, `npx octocode status`, `npx octocode tools`, `npx octocode context`
228
+ - **Setup & introspection** — `npx octocode install`, `npx octocode auth`, `npx octocode status`, `npx octocode context`
234
229
 
235
230
  Full syntax, flags, and exit codes: [Octocode CLI Guide](https://github.com/bgauryy/octocode/blob/main/docs/OCTOCODE_CLI.md)
236
231
 
@@ -339,10 +334,10 @@ Four code-intelligence axes; three are native to the Rust engine and need no ext
339
334
 
340
335
  | Axis | What it does | How to use it |
341
336
  |------|--------------|---------------|
342
- | **Structural AST** | Tree-sitter shape queries (`pattern` or YAML `rule`) across 60+ extensions. | `localSearchCode mode:"structural"` · CLI `search --pattern`/`--rule` |
343
- | **Signature outline** | Body-free skeleton with line numbers from real tree-sitter parsing, no heuristics. An anti-growth guard returns the real file when a skeleton wouldn't be smaller. | `minify:"symbols"` · CLI `search <file> --content-view symbols` |
337
+ | **Structural AST** | Tree-sitter shape queries (`pattern` or YAML `rule`) across 60+ extensions. | `localSearchCode mode:"structural"` · CLI `tools localSearchCode --scheme` |
338
+ | **Signature outline** | Body-free skeleton with line numbers from real tree-sitter parsing, no heuristics. An anti-growth guard returns the real file when a skeleton wouldn't be smaller. | `minify:"symbols"` · CLI `tools localGetFileContent --scheme` |
344
339
  | **Content minification** | Comment/whitespace stripping for 70+ languages and config formats; HTML/Vue/Svelte also minify embedded `<style>`/`<script>`. | `minify:"standard"` (default) |
345
- | **LSP navigation** | definition, references, callers/callees, callHierarchy, hover, typeDefinition, implementation, documentSymbols, via an installed language server; JS/TS also have a native, no-server path. | `lspGetSemantics` · CLI `search --op` / `search --symbols` |
340
+ | **LSP navigation** | definition, references, callers/callees, callHierarchy, hover, typeDefinition, implementation, documentSymbols, via an installed language server; JS/TS also have a native, no-server path. | `lspGetSemantics` · CLI `tools lspGetSemantics --scheme` |
346
341
 
347
342
  📋 **Full support matrix:** every extension with its exact AST, signature, LSP, and minify capability, machine-generated from the shipped binary, lives in the **[Full format support matrix](https://github.com/bgauryy/octocode/blob/main/docs/LSP_SERVER_LIFECYCLE.md#full-format-support-matrix)** (151 extensions: 61 AST, 47 signature, 32 LSP, 90 minify-only). Regenerate or verify with `yarn workspace @octocodeai/octocode-benchmark matrix:check`.
348
343
 
@@ -353,17 +348,32 @@ Four code-intelligence axes; three are native to the Rust engine and need no ext
353
348
  > [Agent Skills](https://agentskills.io/what-are-skills) are a lightweight, open format for extending AI agent capabilities.
354
349
  > Browse and install on [**skills.sh/bgauryy/octocode-mcp**](https://www.skills.sh/bgauryy/octocode-mcp)
355
350
 
356
- **1 skill** under [`skills/`](https://github.com/bgauryy/octocode/tree/main/skills), bundled in the `octocode` package. Start with ⭐ [Research](https://www.skills.sh/bgauryy/octocode-mcp/octocode-research) for evidence-first code work.
351
+ **13 skills** under [`skills/`](https://github.com/bgauryy/octocode/tree/main/skills), bundled in the `octocode` package. Every skill shares one architecture — a lean `SKILL.md` lobby with hard gates, references loaded only when a step needs them, and cross-skill routes — so they compose. Start with ⭐ [Research](https://www.skills.sh/bgauryy/octocode-mcp/octocode-research) for evidence-first code work.
357
352
 
358
353
  ```bash
359
- npx octocode skill --list
360
- npx octocode skill --name octocode-research
361
- npx octocode skill --help
354
+ npx octocode skill list
355
+ npx octocode skill install octocode-research --platform pi
356
+ npx octocode skill check --json
357
+ npx octocode skill help
362
358
  ```
363
359
 
364
- | Skill | Install | Use when |
365
- |-------|---------|----------|
366
- | ⭐ [**Research**](https://www.skills.sh/bgauryy/octocode-mcp/octocode-research) | `npx octocode skill --name octocode-research` | Evidence-first research, review, refactor, architecture. |
360
+ | Skill | Use when |
361
+ |-------|----------|
362
+ | ⭐ [**octocode-research**](https://github.com/bgauryy/octocode/tree/main/skills/octocode-research) | Evidence-first research, review, debugging, refactors, prior-art validation. |
363
+ | [**octocode-graph-eval**](https://github.com/bgauryy/octocode/tree/main/skills/octocode-graph-eval) | Measuring whether a change helped: goal→KPI contracts, baselines, accept/revert loops, eval suites. |
364
+ | [**octocode-brainstorming**](https://github.com/bgauryy/octocode/tree/main/skills/octocode-brainstorming) | Disciplined idea exploration before building: options, worth-building tests, prior-art maps. |
365
+ | [**octocode-rfc-generator**](https://github.com/bgauryy/octocode/tree/main/skills/octocode-rfc-generator) | Evidence-backed RFCs, design docs, migration plans, option comparisons. |
366
+ | [**octocode-roast**](https://github.com/bgauryy/octocode/tree/main/skills/octocode-roast) | Blunt, evidence-backed code critique with severity ranking and repair paths. |
367
+ | [**octocode-documentation**](https://github.com/bgauryy/octocode/tree/main/skills/octocode-documentation) | Writing or updating README, API docs, runbooks, AGENTS.md, ADRs. |
368
+ | [**octocode-skills**](https://github.com/bgauryy/octocode/tree/main/skills/octocode-skills) | Agent-skill lifecycle: discover, review, create, improve, install, sync. |
369
+ | [**octocode-subagent**](https://github.com/bgauryy/octocode/tree/main/skills/octocode-subagent) | Delegation: spawn gates, decomposition, sealed packets, coordination, synthesis. |
370
+ | [**octocode-awareness**](https://github.com/bgauryy/octocode/tree/main/skills/octocode-awareness) | Shared-repo coordination: collision avoidance, handoffs, verification debt, durable memory. |
371
+ | [**octocode-prompt-optimizer**](https://github.com/bgauryy/octocode/tree/main/skills/octocode-prompt-optimizer) | Making prompts, tool schemas, and agent contracts clearer, safer, cheaper, measurable. |
372
+ | [**octocode-chrome-devtools**](https://github.com/bgauryy/octocode/tree/main/skills/octocode-chrome-devtools) | Browser/CDP evidence: network, console, performance, cookies/storage, screenshots, auth-gated pages, and live validation of scrape-graph actions. |
373
+ | [**octocode-scraping**](https://github.com/bgauryy/octocode/tree/main/skills/octocode-scraping) | Public page extraction and crawl triage: static corpus + graph v2 (pages/data/actions/risks/evidence), then CDP handoff for dynamic actions and blocked pages. |
374
+ | [**octocode-orchestrator-local-worker**](https://github.com/bgauryy/octocode/tree/main/skills/octocode-orchestrator-local-worker) | Offloading token-heavy text work to a local Ollama worker under a verify gate. |
375
+
376
+ **Web automation workflow:** `octocode-scraping` performs the safe static pass first (fetch/crawl/extract → local corpus → graph v2). When the graph exposes dynamic actions or static output is blocked/thin, `octocode-chrome-devtools` validates live actionability, cookies/storage, network/HAR bodies, screenshots, or auth-gated state; discovered URLs/data/artifacts can be fed back into the scraping corpus for continued proof.
367
377
 
368
378
  ---
369
379
 
@@ -420,11 +430,11 @@ Website: **[octocode.ai](https://octocode.ai)** · Product docs: **[github.com/b
420
430
  | Area | Docs |
421
431
  |---|---|
422
432
  | MCP server | [Octocode MCP Server](https://github.com/bgauryy/octocode/blob/main/docs/OCTOCODE_MCP.md) · [Configuration](https://github.com/bgauryy/octocode/blob/main/docs/CONFIGURATION.md) · [Authentication](https://github.com/bgauryy/octocode/blob/main/docs/CONFIGURATION.md) |
423
- | Tools and workflows | [Octocode Tools Reference](https://github.com/bgauryy/octocode/blob/main/docs/OCTOCODE_TOOLS.md) · [Octocode Research Skill](https://github.com/bgauryy/octocode/tree/main/skills/octocode-research) · [Search Guide](https://github.com/bgauryy/octocode/blob/main/docs/context/SEARCH_GUIDE.md) |
424
- | CLI and query language | [Octocode CLI Guide](https://github.com/bgauryy/octocode/blob/main/docs/OCTOCODE_CLI.md) · [Octocode Query Language](https://github.com/bgauryy/octocode/blob/main/docs/OCTOCODE_QUERY_LANGUAGE.md) · [OQL Research Graph Flow](https://github.com/bgauryy/octocode/blob/main/docs/context/OQL_RESEARCH_GRAPH_FLOW.md) |
433
+ | Tools and workflows | [Octocode Tools Reference](https://github.com/bgauryy/octocode/blob/main/docs/OCTOCODE_TOOLS.md) · [RDD Manifest & Workflows](https://github.com/bgauryy/octocode/blob/main/MANIFEST.md) · [Octocode Research Skill](https://github.com/bgauryy/octocode/tree/main/skills/octocode-research) · [Search Guide](https://github.com/bgauryy/octocode/blob/main/docs/context/SEARCH_GUIDE.md) |
434
+ | CLI | [Octocode CLI Guide](https://github.com/bgauryy/octocode/blob/main/docs/OCTOCODE_CLI.md) |
425
435
  | Skills | [Skills](https://github.com/bgauryy/octocode/tree/main/skills) |
426
436
  | Development and security | [Security Model](https://github.com/bgauryy/octocode/blob/main/docs/SECURITY.md) · [LSP Server Lifecycle](https://github.com/bgauryy/octocode/blob/main/docs/LSP_SERVER_LIFECYCLE.md) |
427
- | Benchmarks and evals | [Benchmark Summary](https://github.com/bgauryy/octocode/blob/main/packages/octocode-benchmark/BENCHMARK.md) · [Unified CLI/Tool/OQL Eval](https://github.com/bgauryy/octocode/blob/main/packages/octocode-benchmark/benchmark/octocode/README.md) · [Benchmark Runbook](https://github.com/bgauryy/octocode/blob/main/packages/octocode-benchmark/recipes/agent-benchmark-runbook.md) · [Support Matrix](https://github.com/bgauryy/octocode/blob/main/docs/LSP_SERVER_LIFECYCLE.md#full-format-support-matrix) |
437
+ | Benchmarks and evals | [Benchmark Summary](https://github.com/bgauryy/octocode/blob/main/packages/octocode-benchmark/BENCHMARK.md) · [Unified CLI/Tool Eval](https://github.com/bgauryy/octocode/blob/main/packages/octocode-benchmark/benchmark/octocode/README.md) · [Benchmark Runbook](https://github.com/bgauryy/octocode/blob/main/packages/octocode-benchmark/recipes/agent-benchmark-runbook.md) · [Support Matrix](https://github.com/bgauryy/octocode/blob/main/docs/LSP_SERVER_LIFECYCLE.md#full-format-support-matrix) |
428
438
  | Shared internals | [Credentials Architecture](https://github.com/bgauryy/octocode/blob/main/docs/CONFIGURATION.md#github-token) · [Session Persistence](https://github.com/bgauryy/octocode/blob/main/docs/OCTOCODE_MCP.md#session-persistence) |
429
439
 
430
440
  ---
@@ -450,7 +460,7 @@ Read the output and fix accordingly.
450
460
  - **Skill route — recommended, leanest.** Drop the [`octocode-research`](https://www.skills.sh/bgauryy/octocode-mcp/octocode-research) skill into Pi's global skills dir. It drives the Octocode **CLI** directly — no MCP transport, minimal token overhead — and Pi auto-discovers it:
451
461
 
452
462
  ```bash
453
- npx octocode skill --name octocode-research --platform pi
463
+ npx octocode skill install octocode-research --platform pi
454
464
  ```
455
465
 
456
466
  - **Adapter route — full tool surface.** Install [`pi-mcp-adapter`](https://github.com/nicobailon/pi-mcp-adapter) to expose Octocode MCP tools behind a single ~200-token proxy tool, so servers stay disconnected until a tool is actually called. Enable clone tools with `ENABLE_CLONE=true`.