ccc by cocoindex-io/cocoindex-code
npx skills add https://github.com/cocoindex-io/cocoindex-code --skill cccccc 是 CocoIndex Code 的命令行工具,提供对当前代码库的语义化搜索和索引管理功能。
代理负责管理当前项目中 ccc 的整个生命周期——包括初始化、索引和搜索。请不要要求用户执行这些步骤;应自动处理它们。
ccc search 或 ccc index 因初始化错误而失败(例如,“Not in an initialized project directory”),请从项目根目录运行 ccc init,然后运行 ccc index 以构建索引,最后重试原始命令。ccc index(或 ccc search --refresh)来保持索引的最新状态。如果在连续搜索之间没有更改代码,则无需重新索引。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
ccc 本身(命令未找到),请参阅 management.md 获取安装说明并告知用户。执行语义化搜索:
ccc search <查询词>
查询应描述要查找的概念、功能或行为,而不是精确的代码语法。例如:
ccc search database connection pooling
ccc search user authentication flow
ccc search error handling retry logic
按语言过滤 (--lang, 可重复):将结果限制在特定语言。
ccc search --lang python --lang markdown database schema
按路径过滤 (--path):将结果限制在与项目根目录相关的 glob 模式。如果省略,则默认为当前工作目录(仅返回该子目录下的结果)。
ccc search --path 'src/api/*' request validation
结果默认显示第一页。要检索更多结果:
ccc search --offset 5 --limit 5 database schema
如果返回的所有结果看起来都相关,请使用 --offset 获取下一页——很可能在第一页之后还有更多有用的匹配项。
搜索结果包括文件路径和行号范围。要更详细地探索某个结果:
Read 工具)加载匹配的文件,并读取返回范围周围的行以获取完整上下文。sed -n '<start>,<end>p' <file> 来提取特定的行范围。要查看或编辑嵌入模型配置、包含/排除模式或语言覆盖,请参阅 settings.md。
有关安装、初始化、守护进程管理、故障排除和清理命令,请参阅 management.md。
每周安装量
595
代码仓库
GitHub 星标数
1.1K
首次出现
8 天前
安全审计
安装于
codex590
opencode586
github-copilot583
gemini-cli581
amp581
cline581
ccc is the CLI for CocoIndex Code, providing semantic search over the current codebase and index management.
The agent owns the ccc lifecycle for the current project — initialization, indexing, and searching. Do not ask the user to perform these steps; handle them automatically.
ccc search or ccc index fails with an initialization error (e.g., "Not in an initialized project directory"), run ccc init from the project root directory, then ccc index to build the index, then retry the original command.ccc index (or ccc search --refresh) when the index may be stale — e.g., at the start of a session, or after making significant code changes (new files, refactors, renamed modules). There is no need to re-index between consecutive searches if no code was changed in between.ccc itself is not found (command not found), refer to management.md for installation instructions and inform the user.To perform a semantic search:
ccc search <query terms>
The query should describe the concept, functionality, or behavior to find, not exact code syntax. For example:
ccc search database connection pooling
ccc search user authentication flow
ccc search error handling retry logic
By language (--lang, repeatable): restrict results to specific languages.
ccc search --lang python --lang markdown database schema
By path (--path): restrict results to a glob pattern relative to project root. If omitted, defaults to the current working directory (only results under that subdirectory are returned).
ccc search --path 'src/api/*' request validation
Results default to the first page. To retrieve additional results:
ccc search --offset 5 --limit 5 database schema
If all returned results look relevant, use --offset to fetch the next page — there are likely more useful matches beyond the first page.
Search results include file paths and line ranges. To explore a result in more detail:
Read tool) to load the matched file and read lines around the returned range for full context.sed -n '<start>,<end>p' <file> to extract a specific line range.To view or edit embedding model configuration, include/exclude patterns, or language overrides, see settings.md.
For installation, initialization, daemon management, troubleshooting, and cleanup commands, see management.md.
Weekly Installs
595
Repository
GitHub Stars
1.1K
First Seen
8 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex590
opencode586
github-copilot583
gemini-cli581
amp581
cline581
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
136,300 周安装
Swift协议依赖注入测试:基于协议的DI模式实现可测试代码
1,100 周安装
GSAP Utils 工具函数详解:数学运算、数组处理与动画值映射 | GSAP 开发指南
1,300 周安装
App Store Connect 订阅批量本地化工具 - 自动化设置多语言显示名称
1,100 周安装
maishou 买手技能:淘宝京东拼多多抖音快手全网比价,获取商品价格优惠券
1,100 周安装
Vercel AI SDK 使用指南 - 最新API、智能体构建与类型安全开发
502 周安装
全栈安全开发指南 - Fullstack Guardian 安全编码与三视角设计实践
1,100 周安装