r/opencodeCLI • u/Whole-Assignment6240 • Mar 17 '26
cocoindex-code CLI for opencode - super lightweight AST based code search CLI to boost code completion and save tokes
Hi opencode - we just had major launch for cocoindex-code to provide CLI for opencode. It can now integrate with open code using Skills.
cocoindex-code CLI is a lightweight, effective (AST-based) semantic code search tool for your codebase. Instantly boost code completion and saves 70% token.
To get started: `npx skills add cocoindex-io/cocoindex-code`
The project is open sourced - https://github.com/cocoindex-io/cocoindex-code with Apache 2.0. no API required to use.
Looking forward to your suggestions and appreciate a star if it is helpful!
4
u/Icy_Butterscotch6661 Mar 17 '26
What does that mean? You convert AST subtrees to embeddings and do vector search on it for file lookup? Is that the idea?
2
u/debackerl Mar 17 '26
Great thx! Would be even better with Svelte and Vue support please :-)
2
u/eacnmg Mar 18 '26
Can it be used in OpenCode? And if so, what needs to be done? Is it installed as a container, and how is it integrated into the development workflow?
2
u/Kitchen_Fix1464 Mar 17 '26
This is great! I will add support for it to akm-cli so that code searching can surface with memories, skills, knowledge.
-2
u/Latter-Parsnip-5007 Mar 17 '26
Opencode has build in LSP support. LSP is AST based. You did not understand the tech you are using
1
u/[deleted] Mar 19 '26
[removed] — view removed comment
1
u/[deleted] Mar 19 '26
[removed] — view removed comment