@octocodeai/octocode-tools-core 16.6.2 → 17.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 (277) hide show
  1. package/README.md +29 -55
  2. package/dist/direct.js +34 -36
  3. package/dist/github/botFilter.d.ts +1 -0
  4. package/dist/github/client.d.ts +6 -0
  5. package/dist/github/directoryFetch/fetchDirectoryContents.d.ts +3 -0
  6. package/dist/github/directoryFetch/fetchFileContentToDisk.d.ts +3 -0
  7. package/dist/github/directoryFetch/helpers.d.ts +35 -0
  8. package/dist/github/directoryFetch.d.ts +3 -6
  9. package/dist/github/fileContentPagination.d.ts +9 -0
  10. package/dist/github/fileContentProcess.d.ts +1 -8
  11. package/dist/github/fileContentRaw/fetch.d.ts +20 -0
  12. package/dist/github/fileContentRaw/pathSuggestions.d.ts +3 -0
  13. package/dist/github/fileContentRaw.d.ts +2 -12
  14. package/dist/github/githubAPI.d.ts +4 -1
  15. package/dist/github/history.d.ts +6 -2
  16. package/dist/github/issues/fetchers.d.ts +7 -0
  17. package/dist/github/issues/helpers.d.ts +32 -0
  18. package/dist/github/issues/orchestrator.d.ts +4 -0
  19. package/dist/github/issues/types.d.ts +72 -0
  20. package/dist/github/issues.d.ts +3 -0
  21. package/dist/github/prContentFetcher/comments.d.ts +11 -0
  22. package/dist/github/prContentFetcher/commits.d.ts +27 -0
  23. package/dist/github/prContentFetcher/flags.d.ts +21 -0
  24. package/dist/github/prContentFetcher/transform.d.ts +5 -0
  25. package/dist/github/prContentFetcher.d.ts +2 -5
  26. package/dist/github/pullRequestSearch/restSearch.d.ts +6 -0
  27. package/dist/github/pullRequestSearch.d.ts +1 -0
  28. package/dist/github/queryBuilders/base.d.ts +25 -0
  29. package/dist/github/queryBuilders/codeAndRepo.d.ts +20 -0
  30. package/dist/github/queryBuilders/issues.d.ts +42 -0
  31. package/dist/github/queryBuilders/pullRequests.d.ts +13 -0
  32. package/dist/github/queryBuilders.d.ts +4 -12
  33. package/dist/github/releases.d.ts +37 -0
  34. package/dist/github/repoStructure/contentResolution.d.ts +12 -0
  35. package/dist/github/repoStructure/fetchOrchestration.d.ts +7 -0
  36. package/dist/github/repoStructure/resultBuilder.d.ts +22 -0
  37. package/dist/github/repoStructure.d.ts +1 -7
  38. package/dist/github/repoStructureTree.d.ts +38 -0
  39. package/dist/github/responseHeaders.d.ts +2 -0
  40. package/dist/github/searchKeyword.d.ts +2 -0
  41. package/dist/index.d.ts +6 -7
  42. package/dist/index.js +36 -45
  43. package/dist/oql/adapters/github/execute.d.ts +16 -0
  44. package/dist/oql/adapters/github/provider-diagnostics.d.ts +14 -0
  45. package/dist/oql/adapters/github/shared.d.ts +75 -0
  46. package/dist/oql/adapters/github.d.ts +11 -0
  47. package/dist/oql/adapters/graphProof.d.ts +6 -0
  48. package/dist/oql/adapters/graphView/filters.d.ts +25 -0
  49. package/dist/oql/adapters/graphView/nativeEdges.d.ts +5 -0
  50. package/dist/oql/adapters/graphView.d.ts +29 -0
  51. package/dist/oql/adapters/local/code.d.ts +3 -0
  52. package/dist/oql/adapters/local/codeBoolean.d.ts +3 -0
  53. package/dist/oql/adapters/local/fileRowOps.d.ts +11 -0
  54. package/dist/oql/adapters/local/files.d.ts +3 -0
  55. package/dist/oql/adapters/local/filesBoolean.d.ts +10 -0
  56. package/dist/oql/adapters/local/filesContentLeaf.d.ts +12 -0
  57. package/dist/oql/adapters/local/filesUniverse.d.ts +6 -0
  58. package/dist/oql/adapters/local/findToolType.d.ts +10 -0
  59. package/dist/oql/adapters/local/predicates.d.ts +18 -0
  60. package/dist/oql/adapters/local/scope.d.ts +14 -0
  61. package/dist/oql/adapters/local/searchToolType.d.ts +7 -0
  62. package/dist/oql/adapters/local/structureContent.d.ts +6 -0
  63. package/dist/oql/adapters/local/types.d.ts +34 -0
  64. package/dist/oql/adapters/local.d.ts +3 -7
  65. package/dist/oql/adapters/researchTargets/diff.d.ts +16 -0
  66. package/dist/oql/adapters/researchTargets/graph.d.ts +3 -0
  67. package/dist/oql/adapters/researchTargets/history.d.ts +20 -0
  68. package/dist/oql/adapters/researchTargets/pagination.d.ts +54 -0
  69. package/dist/oql/adapters/researchTargets/repositories.d.ts +4 -0
  70. package/dist/oql/adapters/researchTargets/research.d.ts +3 -0
  71. package/dist/oql/adapters/researchTargets/rows.d.ts +16 -0
  72. package/dist/oql/adapters/researchTargets/semantics.d.ts +3 -0
  73. package/dist/oql/adapters/researchTargets/shared.d.ts +11 -0
  74. package/dist/oql/adapters/researchTargets.d.ts +4 -46
  75. package/dist/oql/adapters/resultMap.d.ts +7 -0
  76. package/dist/oql/adapters/runner.d.ts +7 -0
  77. package/dist/oql/defaults.d.ts +1 -1
  78. package/dist/oql/index.js +35 -37
  79. package/dist/oql/normalize/batch.d.ts +2 -0
  80. package/dist/oql/normalize/materialize.d.ts +2 -0
  81. package/dist/oql/normalize/params.d.ts +2 -0
  82. package/dist/oql/normalize/query.d.ts +2 -0
  83. package/dist/oql/normalize/scope.d.ts +2 -0
  84. package/dist/oql/normalize/shared.d.ts +7 -0
  85. package/dist/oql/normalize/source.d.ts +2 -0
  86. package/dist/oql/normalize/where.d.ts +2 -0
  87. package/dist/oql/normalize.d.ts +19 -4
  88. package/dist/oql/planner/planDiagnostics.d.ts +13 -0
  89. package/dist/oql/planner/predicateRouting.d.ts +35 -0
  90. package/dist/oql/predicateUtils.d.ts +3 -0
  91. package/dist/oql/research/analyze/manifest-scan.d.ts +4 -0
  92. package/dist/oql/research/analyze/source-graph.d.ts +7 -0
  93. package/dist/oql/research/analyze/symbol-scoring.d.ts +4 -0
  94. package/dist/oql/research/analyze/types.d.ts +163 -0
  95. package/dist/oql/research/analyze/utils.d.ts +16 -0
  96. package/dist/oql/research/analyze.d.ts +2 -133
  97. package/dist/oql/research/packets/builders.d.ts +4 -0
  98. package/dist/oql/research/packets/types.d.ts +91 -0
  99. package/dist/oql/research/packets.d.ts +21 -80
  100. package/dist/oql/run/batch.d.ts +3 -0
  101. package/dist/oql/run/continuations/records.d.ts +19 -0
  102. package/dist/oql/run/continuations/registry.d.ts +22 -0
  103. package/dist/oql/run/continuations/semantics.d.ts +3 -0
  104. package/dist/oql/run/continuations/types.d.ts +12 -0
  105. package/dist/oql/run/dryRun.d.ts +11 -0
  106. package/dist/oql/run/paths.d.ts +15 -0
  107. package/dist/oql/run/proofGrades.d.ts +8 -0
  108. package/dist/oql/run/select.d.ts +10 -0
  109. package/dist/oql/run/single.d.ts +22 -0
  110. package/dist/oql/run.d.ts +4 -31
  111. package/dist/oql/schema/predicates.d.ts +12 -0
  112. package/dist/oql/schema.d.ts +74 -43
  113. package/dist/oql/schemeText.d.ts +21 -23
  114. package/dist/oql/shorthand/predicates.d.ts +15 -0
  115. package/dist/oql/shorthand/query-controls.d.ts +18 -0
  116. package/dist/oql/shorthand/target-params.d.ts +9 -0
  117. package/dist/oql/shorthand/types.d.ts +159 -0
  118. package/dist/oql/shorthand/utils.d.ts +7 -0
  119. package/dist/oql/shorthand.d.ts +2 -171
  120. package/dist/oql/targetParams.d.ts +0 -13
  121. package/dist/oql/transformers/github/code.d.ts +1 -9
  122. package/dist/oql/transformers/github/common.d.ts +7 -1
  123. package/dist/oql/types/diagnostics.d.ts +22 -0
  124. package/dist/oql/types/envelope.d.ts +78 -0
  125. package/dist/oql/types/guards.d.ts +9 -0
  126. package/dist/oql/types/planner.d.ts +46 -0
  127. package/dist/oql/types/predicates.d.ts +93 -0
  128. package/dist/oql/types/query.d.ts +143 -0
  129. package/dist/oql/types/recordData.d.ts +127 -0
  130. package/dist/oql/types/recordRows.d.ts +48 -0
  131. package/dist/oql/types/results.d.ts +118 -0
  132. package/dist/oql/types/targets.d.ts +22 -0
  133. package/dist/oql/types.d.ts +17 -630
  134. package/dist/providers/github/paginationMetadata.d.ts +12 -0
  135. package/dist/providers/providerResults.d.ts +0 -1
  136. package/dist/responses.d.ts +4 -35
  137. package/dist/schema.js +2 -2
  138. package/dist/scheme/pagination.d.ts +116 -0
  139. package/dist/scheme/responseEnvelope.d.ts +67 -1
  140. package/dist/shared/config/index.d.ts +1 -8
  141. package/dist/shared/config/index.js +1 -2
  142. package/dist/shared/credentials/index.d.ts +1 -1
  143. package/dist/shared/credentials/index.js +2 -1
  144. package/dist/shared/credentials/storage.d.ts +0 -2
  145. package/dist/shared/credentials/testing.js +1 -1
  146. package/dist/shared/languageSelectors/classify.d.ts +15 -0
  147. package/dist/shared/languageSelectors/data.d.ts +12 -0
  148. package/dist/shared/languageSelectors.d.ts +3 -23
  149. package/dist/shared/paths.d.ts +4 -4
  150. package/dist/shared/paths.js +1 -1
  151. package/dist/shared/session/index.js +1 -1
  152. package/dist/shared/session/statsDefaults.d.ts +1 -2
  153. package/dist/tools/directToolCatalog/toolCatalogDefinitions.d.ts +68 -0
  154. package/dist/tools/directToolCatalog/toolCommandPatternQueries.d.ts +4 -0
  155. package/dist/tools/directToolCatalog/toolCommandPatterns.d.ts +4 -0
  156. package/dist/tools/directToolCatalog/toolInputPreparation.d.ts +12 -0
  157. package/dist/tools/directToolCatalog/toolSchemaIntrospection.d.ts +19 -0
  158. package/dist/tools/directToolCatalog.exec.d.ts +5 -0
  159. package/dist/tools/directToolCatalog.meta.d.ts +10 -67
  160. package/dist/tools/github_clone_repo/cache.d.ts +1 -5
  161. package/dist/tools/github_clone_repo/cachePaths.d.ts +5 -0
  162. package/dist/tools/github_clone_repo/scheme.d.ts +0 -1
  163. package/dist/tools/github_fetch_content/finalizer/entryParsers.d.ts +9 -0
  164. package/dist/tools/github_fetch_content/finalizer/types.d.ts +101 -0
  165. package/dist/tools/github_fetch_content/finalizer.d.ts +1 -7
  166. package/dist/tools/github_fetch_content/scheme.d.ts +43 -9
  167. package/dist/tools/github_fetch_content/types.d.ts +1 -2
  168. package/dist/tools/github_search_code/execution.d.ts +9 -0
  169. package/dist/tools/github_search_code/finalizer/build.d.ts +4 -0
  170. package/dist/tools/github_search_code/finalizer/groups.d.ts +23 -0
  171. package/dist/tools/github_search_code/finalizer/ranking.d.ts +12 -0
  172. package/dist/tools/github_search_code/finalizer.d.ts +2 -6
  173. package/dist/tools/github_search_code/scheme.d.ts +31 -6
  174. package/dist/tools/github_search_pull_requests/contentResponse/commentsShaping.d.ts +68 -0
  175. package/dist/tools/github_search_pull_requests/contentResponse/fileSurfaces.d.ts +52 -0
  176. package/dist/tools/github_search_pull_requests/contentResponse/nextCalls.d.ts +17 -0
  177. package/dist/tools/github_search_pull_requests/contentResponse/pagination.d.ts +63 -0
  178. package/dist/tools/github_search_pull_requests/contentResponse.d.ts +1 -15
  179. package/dist/tools/github_search_pull_requests/execution/commitsMode.d.ts +4 -0
  180. package/dist/tools/github_search_pull_requests/execution/issuesMode.d.ts +4 -0
  181. package/dist/tools/github_search_pull_requests/execution/pullRequestsMode.d.ts +4 -0
  182. package/dist/tools/github_search_pull_requests/execution/releasesMode.d.ts +4 -0
  183. package/dist/tools/github_search_pull_requests/execution/types.d.ts +6 -0
  184. package/dist/tools/github_search_pull_requests/execution.d.ts +1 -4
  185. package/dist/tools/github_search_pull_requests/scheme.d.ts +11 -2
  186. package/dist/tools/github_search_repos/execution/pagination.d.ts +39 -0
  187. package/dist/tools/github_search_repos/execution/queryVariants.d.ts +38 -0
  188. package/dist/tools/github_search_repos/execution/ranking.d.ts +4 -0
  189. package/dist/tools/github_search_repos/execution.d.ts +3 -13
  190. package/dist/tools/github_search_repos/scheme.d.ts +7 -2
  191. package/dist/tools/github_view_repo_structure/scheme.d.ts +0 -1
  192. package/dist/tools/github_view_repo_structure/types.d.ts +2 -0
  193. package/dist/tools/local_fetch_content/fetchContent/extraction.d.ts +15 -0
  194. package/dist/tools/local_fetch_content/fetchContent/pagination.d.ts +38 -0
  195. package/dist/tools/local_fetch_content/fetchContent/validation.d.ts +26 -0
  196. package/dist/tools/local_fetch_content/fetchContent.d.ts +2 -0
  197. package/dist/tools/local_fetch_content/scheme.d.ts +90 -0
  198. package/dist/tools/local_find_files/scheme.d.ts +81 -0
  199. package/dist/tools/local_ripgrep/rankingProfile/rankingProfiles.d.ts +70 -0
  200. package/dist/tools/local_ripgrep/rankingProfile/rankingResults.d.ts +47 -0
  201. package/dist/tools/local_ripgrep/rankingProfile/rankingScoring.d.ts +41 -0
  202. package/dist/tools/local_ripgrep/rankingProfile.d.ts +16 -95
  203. package/dist/tools/local_ripgrep/ripgrepResultBuilder/buildResult.d.ts +10 -0
  204. package/dist/tools/local_ripgrep/ripgrepResultBuilder/searchNext.d.ts +46 -0
  205. package/dist/tools/local_ripgrep/ripgrepResultBuilder.d.ts +2 -18
  206. package/dist/tools/local_ripgrep/scheme.d.ts +170 -0
  207. package/dist/tools/local_view_structure/scheme.d.ts +83 -0
  208. package/dist/tools/lsp/semantic_content/scheme.d.ts +56 -8
  209. package/dist/tools/lsp/semantic_content/semanticAnchored.d.ts +7 -0
  210. package/dist/tools/lsp/semantic_content/semanticEnvelopes/callEnvelopes.d.ts +5 -0
  211. package/dist/tools/lsp/semantic_content/semanticEnvelopes/envelopeHelpers.d.ts +20 -0
  212. package/dist/tools/lsp/semantic_content/semanticEnvelopes/locationEnvelopes.d.ts +13 -0
  213. package/dist/tools/lsp/semantic_content/semanticEnvelopes.d.ts +3 -0
  214. package/dist/tools/lsp/semantic_content/semanticFileOps/anchor.d.ts +24 -0
  215. package/dist/tools/lsp/semantic_content/semanticFileOps/documentSymbols.d.ts +27 -0
  216. package/dist/tools/lsp/semantic_content/semanticFileOps/workspaceSymbolsAndDiagnostics.d.ts +20 -0
  217. package/dist/tools/lsp/semantic_content/semanticFileOps.d.ts +8 -0
  218. package/dist/tools/lsp/semantic_content/semanticPresentation.d.ts +53 -0
  219. package/dist/tools/lsp/shared/readiness.d.ts +17 -0
  220. package/dist/tools/lsp/shared/semanticTypes.d.ts +6 -0
  221. package/dist/tools/package_search/execution.d.ts +8 -0
  222. package/dist/tools/package_search/scheme.d.ts +45 -6
  223. package/dist/tools/providerMappers/codeSearch.d.ts +66 -0
  224. package/dist/tools/providerMappers/fileContent.d.ts +28 -0
  225. package/dist/tools/providerMappers/pullRequests.d.ts +158 -0
  226. package/dist/tools/providerMappers/repoSearch.d.ts +30 -0
  227. package/dist/tools/providerMappers/repoStructure.d.ts +20 -0
  228. package/dist/tools/providerMappers/shared.d.ts +23 -0
  229. package/dist/tools/providerMappers.d.ts +9 -294
  230. package/dist/tools/toolConfig.d.ts +0 -2
  231. package/dist/tools/toolMetadata/descriptionOverrides.d.ts +4 -0
  232. package/dist/tools/toolNames.d.ts +1 -0
  233. package/dist/tools/toolSchemaImports.d.ts +13 -0
  234. package/dist/utils/contextUtils.d.ts +5 -16
  235. package/dist/utils/core/types.d.ts +2 -24
  236. package/dist/utils/exec/spawn/env.d.ts +5 -0
  237. package/dist/utils/exec/spawn/wrappers.d.ts +29 -0
  238. package/dist/utils/exec/spawn.d.ts +2 -34
  239. package/dist/utils/http/cache/conditional.d.ts +21 -0
  240. package/dist/utils/http/cache/dataCache.d.ts +6 -0
  241. package/dist/utils/http/cache/key.d.ts +1 -0
  242. package/dist/utils/http/cache/management.d.ts +9 -0
  243. package/dist/utils/http/cache/store.d.ts +28 -0
  244. package/dist/utils/http/cache.d.ts +4 -16
  245. package/dist/utils/markdownOutline.d.ts +0 -2
  246. package/dist/utils/package/npm/npmDeprecation.d.ts +5 -0
  247. package/dist/utils/package/npm/npmDetailsFetchers.d.ts +15 -0
  248. package/dist/utils/package/npm/npmMappers.d.ts +12 -0
  249. package/dist/utils/package/npm/npmRegistry.d.ts +79 -0
  250. package/dist/utils/package/npm/npmSearchStrategies.d.ts +6 -0
  251. package/dist/utils/package/npm.d.ts +2 -8
  252. package/dist/utils/pagination/boundary.d.ts +5 -5
  253. package/dist/utils/response/bulk/pagination.d.ts +6 -0
  254. package/dist/utils/response/bulk/queries.d.ts +19 -0
  255. package/dist/utils/response/bulk/response.d.ts +4 -0
  256. package/dist/utils/response/bulk.d.ts +2 -5
  257. package/dist/utils/response/groupedFinalizer.d.ts +7 -2
  258. package/package.json +10 -3
  259. package/dist/oql/adapters/v2.d.ts +0 -32
  260. package/dist/oql/v2params.d.ts +0 -22
  261. package/dist/shared/config/defaults.d.ts +0 -14
  262. package/dist/shared/config/loader.d.ts +0 -7
  263. package/dist/shared/config/resolver.d.ts +0 -2
  264. package/dist/shared/config/resolverCache.d.ts +0 -12
  265. package/dist/shared/config/resolverSections.d.ts +0 -10
  266. package/dist/shared/config/runtimeSurface.d.ts +0 -22
  267. package/dist/shared/config/types.d.ts +0 -92
  268. package/dist/shared/config/validator.d.ts +0 -2
  269. package/dist/shared/credentials/envTokens.d.ts +0 -9
  270. package/dist/tools/local_binary_inspect/archiveOps.d.ts +0 -24
  271. package/dist/tools/local_binary_inspect/binaryInspector.d.ts +0 -86
  272. package/dist/tools/local_binary_inspect/binaryOps.d.ts +0 -27
  273. package/dist/tools/local_binary_inspect/decompressOps.d.ts +0 -16
  274. package/dist/tools/local_binary_inspect/execution.d.ts +0 -4
  275. package/dist/tools/local_binary_inspect/scheme.d.ts +0 -47
  276. package/dist/tools/local_ripgrep/lspBoost.d.ts +0 -54
  277. package/dist/utils/parsers/ripgrep.d.ts +0 -11
package/README.md CHANGED
@@ -13,9 +13,7 @@
13
13
 
14
14
  **Evidence-first code research for AI agents and developers.**
15
15
 
16
- Octocode gives an agent the full context it needs to change, review, or explain code: real evidence from your **local workspace** and from **external** sources (GitHub repositories, pull requests, and npm packages). One toolset covers all of it: ripgrep and AST structural search, repository tree browsing, precise content fetching, LSP semantic navigation, and binary inspection.
17
-
18
- Run it as a **CLI** or an **MCP server**. A **Rust engine** keeps every call fast and token-efficient, minifying and skeletonizing code so an agent reads the shape of a file instead of every byte, from a single file to a mega-repo. It is also the best tool for **cross-repository research and exploration across millions of repositories**.
16
+ Evidence from your **local workspace** and **external** sources (GitHub repos, PRs, npm). One toolset: ripgrep + AST search, trees, precise reads, and LSP as a **CLI** or **MCP server**, backed by a **Rust engine** for fast, token-efficient results across single files or mega-repos.
19
17
 
20
18
  ---
21
19
 
@@ -53,7 +51,7 @@ npx octocode auth login
53
51
  npx octocode status # verify the active token source
54
52
  ```
55
53
 
56
- **3. Choose your interface.** The same engine and 14 tools run identically either way.
54
+ **3. Choose your interface.** The same engine and 12 tools run identically either way.
57
55
 
58
56
  **🖥️ CLI** — research straight from your terminal:
59
57
 
@@ -107,8 +105,7 @@ Octocode is useful whenever the next coding step depends on finding and proving
107
105
  | **Semantic navigation** | Resolve definitions, references, callers/callees, call hierarchy, hovers, symbols, diagnostics, and type relationships through LSP. |
108
106
  | **Structural matching** | Run AST-shaped searches with patterns or YAML rules so comments and strings do not become false positives. |
109
107
  | **Large-file context** | Minify, skeletonize, or paginate code so agents spend tokens on relevant structure instead of boilerplate. |
110
- | **Binary or archive inspection** | Inspect archives, compressed streams, native binaries, and strings without leaving the research flow. |
111
- | **Agent workflows** | Expose the same engine through MCP, CLI, OQL, and Agent Skills so assistants and humans use one evidence model. |
108
+ | **Agent workflows** | Same engine via MCP, CLI, OQL, and Agent Skills. |
112
109
 
113
110
  See [Quick Start](#quick-start) to install in your terminal or AI assistant.
114
111
 
@@ -116,7 +113,7 @@ See [Quick Start](#quick-start) to install in your terminal or AI assistant.
116
113
 
117
114
  ## Tools
118
115
 
119
- Octocode ships **14 research tools**; the same implementations run identically over [MCP](#mcp) and the [CLI](#cli). Local tools are enabled by default; `ENABLE_LOCAL=false` disables them. `ghCloneRepo` is opt-in for MCP (`ENABLE_CLONE=true`) and enabled by default for CLI. All flags: [Configuration Reference](https://github.com/bgauryy/octocode/blob/main/docs/CONFIGURATION.md).
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).
120
117
 
121
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.
122
119
 
@@ -139,7 +136,6 @@ Octocode ships **14 research tools**; the same implementations run identically o
139
136
  | `localViewStructure` | Browse a local directory tree: depth, filters, pagination, metadata. | `concise` |
140
137
  | `localFindFiles` | Find local files and directories by name, path, regex, extension, size, time, permissions, type. | |
141
138
  | `localGetFileContent` | Read a local file or region: exact slice, match string, line range, or paginated chars. | `minify` |
142
- | `localBinaryInspect` | Inspect archives, compressed streams, and native binaries: inspect (format/symbols/imports/deps), list, extract, decompress, strings. | |
143
139
 
144
140
  ### Package Search
145
141
 
@@ -157,7 +153,7 @@ Octocode ships **14 research tools**; the same implementations run identically o
157
153
 
158
154
  | Tool | What it does |
159
155
  |------|--------------|
160
- | `oqlSearch` | Runs typed OQL queries across code, content, structure, files, semantics, repositories, packages, pull requests, commits, artifacts, diff, research, graph, and materialization targets. |
156
+ | `oqlSearch` | Runs typed OQL queries across code, content, structure, files, semantics, repositories, packages, pull requests, commits, diff, research, graph, and materialization targets. |
161
157
 
162
158
  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)).
163
159
 
@@ -225,13 +221,13 @@ npx octocode --help # full usage
225
221
  | `npx octocode search <path\|owner/repo> --tree` | Browse directory or repository structure |
226
222
  | `npx octocode search <file>` | Read file content; `--content-view exact\|compact\|symbols` or `--raw` |
227
223
  | `npx octocode search <file> --symbols` | Symbol outline for a file or source tree |
228
- | `npx octocode search --query <oql-json>` | Full OQL across all target types (code, commits, PRs, packages, artifacts …) |
224
+ | `npx octocode search --query <oql-json>` | Full OQL across all target types (code, commits, PRs, packages, …) |
229
225
 
230
226
  #### More commands
231
227
 
232
- - **GitHub & npm** — `npx octocode search <…> --target repositories|packages|pullRequests|commits|artifacts|diff`
228
+ - **GitHub & npm** — `npx octocode search <…> --target repositories|packages|pullRequests|commits|diff`
233
229
  - **LSP** — `npx octocode search <file> --op definition|references|callers|callees|hover|diagnostic|callHierarchy` (`--symbol`, `--line` to narrow)
234
- - **Cache & clone** — `npx octocode clone`, `npx octocode unzip`, `npx octocode cache fetch|status|clear`
230
+ - **Cache & clone** — `npx octocode clone`, `npx octocode cache fetch|status|clear`
235
231
  - **Skills** — `npx octocode skill --list | --name <skill> | --add <github-path> | --install-all`
236
232
  - **Language servers** — `npx octocode lsp-server list|install|status|uninstall|clean`
237
233
  - **Setup & introspection** — `npx octocode install`, `npx octocode auth`, `npx octocode status`, `npx octocode tools`, `npx octocode context`
@@ -288,7 +284,7 @@ Per-project overrides and custom LSP servers live in a workspace `.octocode/` fo
288
284
 
289
285
  ## Authentication Methods
290
286
 
291
- GitHub-backed tools require authentication. Any one method is enough. Full details: [Authentication Setup](https://github.com/bgauryy/octocode/blob/main/docs/AUTHENTICATION.md).
287
+ GitHub-backed tools require authentication. Any one method is enough. Full details: [Authentication Setup](https://github.com/bgauryy/octocode/blob/main/docs/CONFIGURATION.md).
292
288
 
293
289
  ### Option 1: Octocode CLI (Recommended)
294
290
 
@@ -333,7 +329,7 @@ Create a token at [github.com/settings/tokens](https://github.com/settings/token
333
329
  - **Schema validation** runs before any tool executes; untrusted input size and shape are bounded.
334
330
  - **Credentials.** GitHub auth via env tokens, AES-256-GCM-encrypted on-disk OAuth, or the `gh` CLI; tokens are never logged.
335
331
 
336
- **Full security model, pipeline, and threat coverage: [SECURITY.md](https://github.com/bgauryy/octocode/blob/main/docs/SECURITY.md).** Related: [Authentication](https://github.com/bgauryy/octocode/blob/main/docs/AUTHENTICATION.md) · [Configuration](https://github.com/bgauryy/octocode/blob/main/docs/CONFIGURATION.md) · [Credentials](https://github.com/bgauryy/octocode/blob/main/docs/AUTHENTICATION.md#credential-architecture-api)
332
+ **Full security model, pipeline, and threat coverage: [SECURITY.md](https://github.com/bgauryy/octocode/blob/main/docs/SECURITY.md).** Related: [Authentication](https://github.com/bgauryy/octocode/blob/main/docs/CONFIGURATION.md) · [Configuration](https://github.com/bgauryy/octocode/blob/main/docs/CONFIGURATION.md) · [Credentials](https://github.com/bgauryy/octocode/blob/main/docs/CONFIGURATION.md#github-token)
337
333
 
338
334
  ---
339
335
 
@@ -355,37 +351,19 @@ Four code-intelligence axes; three are native to the Rust engine and need no ext
355
351
  ## Skills
356
352
 
357
353
  > [Agent Skills](https://agentskills.io/what-are-skills) are a lightweight, open format for extending AI agent capabilities.
358
- > Browse and install on [**skills.sh/bgauryy/octocode-mcp**](https://www.skills.sh/bgauryy/octocode-mcp) · Skills index: [skills/README.md](https://github.com/bgauryy/octocode/blob/main/skills/README.md)
359
-
360
- These are the skills the Octocode team itself uses to build Octocode. **8 skills** live under [`skills/`](https://github.com/bgauryy/octocode/tree/main/skills); the table mirrors the [Skills Index](https://github.com/bgauryy/octocode/blob/main/skills/README.md). ⭐ **[Research](https://www.skills.sh/bgauryy/octocode-mcp/octocode-research)** is the recommended starting skill for technical research, code work, reviews, refactors, and repeated evidence loops.
354
+ > Browse and install on [**skills.sh/bgauryy/octocode-mcp**](https://www.skills.sh/bgauryy/octocode-mcp)
361
355
 
362
- Each skill folder includes a human README with purpose, features, workflow, developer notes, and `npx octocode skill` installation. `SKILL.md` stays the compact agent-facing router.
363
-
364
- Install them with the Octocode CLI through `npx octocode`; no global install is required. Octocode refreshes the canonical source in `~/.octocode/skills/<skill>` and links it into the platform location by default. Pick the platform your agent reads from, or use `common` for the shared `~/.agents/skills` folder.
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.
365
357
 
366
358
  ```bash
367
- npx octocode skill --list # browse available Octocode skills
368
- npx octocode skill --name octocode-research # install to ~/.agents/skills (common)
369
- npx octocode skill --name octocode-research --platform pi # install for Pi
370
- npx octocode skill --name octocode-research --platform all --dry-run # preview before installing everywhere
371
- npx octocode skill --add owner/repo/skills/my-skill # install any GitHub skill folder
372
- npx octocode skill --add owner/repo/skills # install every skill in a GitHub skills library
373
- npx octocode skill --install-all # install every official Octocode skill to ~/.agents/skills
374
- npx octocode skill --help # read live flags
359
+ npx octocode skill --list
360
+ npx octocode skill --name octocode-research
361
+ npx octocode skill --help
375
362
  ```
376
363
 
377
- Platforms: `common` (default, `~/.agents/skills`), `cursor` (`~/.cursor/skills`), `claude` (`~/.claude/skills` and `~/.claude-desktop/skills`), `codex` (`~/.agents/skills`), `opencode` (`~/.config/opencode/skills`), `pi` (`~/.pi/agent/skills`), `copilot` (`~/.copilot/skills`), `gemini` (`~/.gemini/skills`), `all` · Modes: `symlink` (default), `copy`, `hybrid` · full platform table and bulk installs: [Skills Guide](https://github.com/bgauryy/octocode/blob/main/docs/SKILLS_GUIDE.md)
378
-
379
- | Skill | Directory | Install with `npx octocode` | Use it when |
380
- |-------|-----------|-----------------------------|-------------|
381
- | [**Octocode**](https://www.skills.sh/bgauryy/octocode-mcp/octocode) | `octocode/` | `npx octocode skill --name octocode` | You want a quick code-research answer through MCP or the `npx octocode` CLI. |
382
- | [**Brainstorming**](https://www.skills.sh/bgauryy/octocode-mcp/octocode-brainstorming) | `octocode-brainstorming/` | `npx octocode skill --name octocode-brainstorming` | The idea is fuzzy and needs prior-art or opportunity validation. |
383
- | ⭐ [**Research**](https://www.skills.sh/bgauryy/octocode-mcp/octocode-research) | `octocode-research/` | `npx octocode skill --name octocode-research` | You need evidence-first technical research, code work, review, refactor, architecture analysis, or repeated proof loops. |
384
- | [**RFC Generator**](https://www.skills.sh/bgauryy/octocode-mcp/octocode-rfc-generator) | `octocode-rfc-generator/` | `npx octocode skill --name octocode-rfc-generator` | You need a design doc, RFC, architecture proposal, migration plan, or rollout plan before coding. |
385
- | [**Roast**](https://www.skills.sh/bgauryy/octocode-mcp/octocode-roast) | `octocode-roast/` | `npx octocode skill --name octocode-roast` | You want blunt but actionable code critique. |
386
- | [**Skills**](https://www.skills.sh/bgauryy/octocode-mcp/octocode-skills) | `octocode-skills/` | `npx octocode skill --name octocode-skills` | You are working on Agent Skills themselves. |
387
- | [**Awareness**](https://www.skills.sh/bgauryy/octocode-mcp/octocode-awareness) | `octocode-awareness/` | `npx octocode skill --name octocode-awareness` | You need memory, file locks, handoffs, or verify-before-conclude in a shared repo. |
388
- | [**Stats**](https://www.skills.sh/bgauryy/octocode-mcp/octocode-stats) | `octocode-stats/` | `npx octocode skill --name octocode-stats` | You want to visualize Octocode usage, savings, cache hits, errors, or rate limits. |
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. |
389
367
 
390
368
  ---
391
369
 
@@ -428,8 +406,11 @@ client → sanitize inputs (Rust) → run tool (GitHub / FS / LSP) → sanitize
428
406
  | [`packages/octocode-mcp`](https://github.com/bgauryy/octocode/tree/main/packages/octocode-mcp) | `@octocodeai/mcp` | MCP server (stdio) that registers the tool catalog for AI assistants. |
429
407
  | [`packages/octocode-tools-core`](https://github.com/bgauryy/octocode/tree/main/packages/octocode-tools-core) | `@octocodeai/octocode-tools-core` | Shared tool core: implementations, GitHub client, credentials and token resolution, session, pagination, security bridge. |
430
408
  | [`packages/octocode-engine`](https://github.com/bgauryy/octocode/tree/main/packages/octocode-engine) | `@octocodeai/octocode-engine` | Rust/napi native engine: security scanning, minification, signatures, structural AST, ripgrep/diff/YAML, LSP. |
409
+ | [`packages/octocode-config`](https://github.com/bgauryy/octocode/tree/main/packages/octocode-config) | `@octocodeai/config` | Zero-dep env + config loader: `getOctocodeHome`, `.env` parsing, `.octocoderc` reading. Single source used by every package and skill. |
431
410
  | [`packages/octocode-vscode`](https://github.com/bgauryy/octocode/tree/main/packages/octocode-vscode) | `octocode-mcp-vscode` | VS Code extension: GitHub OAuth + multi-editor MCP install. |
432
411
 
412
+ `packages/octocode-benchmark` (private, not published) holds benchmark methodology, evals, and run artifacts — see [Documentation](#documentation).
413
+
433
414
  ---
434
415
 
435
416
  ## Documentation
@@ -438,14 +419,13 @@ Website: **[octocode.ai](https://octocode.ai)** · Product docs: **[github.com/b
438
419
 
439
420
  | Area | Docs |
440
421
  |---|---|
441
- | 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/AUTHENTICATION.md) |
422
+ | 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) |
442
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) |
443
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) |
444
- | Agent harness and skills | [Octocode Pi package](https://github.com/bgauryy/octocode/blob/main/packages/octocode-pi-extension/README.md) · [Skills Guide](https://github.com/bgauryy/octocode/blob/main/docs/SKILLS_GUIDE.md) · [Skills Index](https://github.com/bgauryy/octocode/blob/main/skills/README.md) |
445
- | Pi | [Pi package README](https://github.com/bgauryy/octocode/blob/main/packages/octocode-pi-extension/README.md) · [Pi APPEND_SYSTEM starter](https://github.com/bgauryy/octocode/blob/main/packages/octocode-pi-extension/docs/PI/APPEND_SYSTEM.md) |
446
- | Development and security | [Development Guide](https://github.com/bgauryy/octocode/blob/main/docs/DEVELOPMENT_GUIDE.md) · [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) |
425
+ | Skills | [Skills](https://github.com/bgauryy/octocode/tree/main/skills) |
426
+ | 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) |
447
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) |
448
- | Shared internals | [Credentials Architecture](https://github.com/bgauryy/octocode/blob/main/docs/AUTHENTICATION.md#credential-architecture-api) · [Session Persistence](https://github.com/bgauryy/octocode/blob/main/docs/OCTOCODE_MCP.md#session-persistence) |
428
+ | 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) |
449
429
 
450
430
  ---
451
431
 
@@ -473,19 +453,13 @@ Read the output and fix accordingly.
473
453
  npx octocode skill --name octocode-research --platform pi
474
454
  ```
475
455
 
476
- - **Adapter route — full tool surface.** Install [`pi-mcp-adapter`](https://github.com/nicobailon/pi-mcp-adapter) to expose all 14 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`.
477
-
478
- Tune Pi's behavior with an `APPEND_SYSTEM.md` packaged in [`@octocodeai/pi-extension`](https://github.com/bgauryy/octocode/blob/main/packages/octocode-pi-extension/README.md). The full walkthrough — package install, setup commands, skills, optional MCP setup, and custom models — is in the [**Pi package README**](https://github.com/bgauryy/octocode/blob/main/packages/octocode-pi-extension/README.md).
479
-
480
- ### Octocode Harness
481
-
482
- The Octocode harness is the recommended agent environment for research-driven development: Pi supplies the local coding loop, `npx octocode` supplies structured code research, and Octocode Skills encode the workflows agents should follow before they edit.
456
+ - **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`.
483
457
 
484
- Docs: [Pi package README](https://github.com/bgauryy/octocode/blob/main/packages/octocode-pi-extension/README.md) · [APPEND_SYSTEM starter](https://github.com/bgauryy/octocode/blob/main/packages/octocode-pi-extension/docs/PI/APPEND_SYSTEM.md)
458
+ ### Research-driven loop
485
459
 
486
- It is deliberately research-oriented because most agent failures start before implementation: the agent guesses the owner of a behavior, trusts a snippet without reading the exact source, or edits before proving blast radius. The harness pushes the agent through a cheaper loop first: orient with trees and discovery output, search with Octocode, read exact evidence, use AST/LSP when identity matters, then patch and verify.
460
+ Most agent failures start before implementation: the agent guesses the owner of a behavior, trusts a snippet without reading the exact source, or edits before proving blast radius. Prefer a cheaper loop first: orient with trees and discovery output, search with Octocode, read exact evidence, use AST/LSP when identity matters, then patch and verify.
487
461
 
488
- That shape keeps the editing surface small while preserving context for what matters: file anchors, symbols, call paths, PR/history evidence, package sources, and the verification command that proves the change. In short, Pi is the hands, Octocode is the map, and the skills/system prompt make the habit repeatable.
462
+ That shape keeps the editing surface small while preserving context for what matters: file anchors, symbols, call paths, PR/history evidence, package sources, and the verification command that proves the change. In short, the host edits, Octocode is the map, and skills encode the habit.
489
463
 
490
464
  ### The Manifest
491
465