You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(plugin): Grok skill, SessionStart hook, and MCP with dual-agent docs (#202)
* feat: ship as a Claude Code plugin marketplace
Adds `.claude-plugin/marketplace.json` and `.claude-plugin/plugin.json`
so this repo can be installed directly from inside Claude Code:
/plugin marketplace add cocoindex-io/cocoindex-code
/plugin install cocoindex-code@cocoindex-code
The existing `skills/ccc/SKILL.md` is auto-discovered as the plugin's
skill — no file moves, the `npx skills add` workflow keeps working
unchanged. README gets a short subsection under "Skill (Recommended)"
linking the new install path.
Refs: https://code.claude.com/docs/en/plugin-marketplaces
* chore: point plugin manifests to Roxabi fork
Update owner, homepage, repository, and README install command
from cocoindex-io to Roxabi/cocoindex-code.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* docs(plugin): add Grok skill-only install matching Claude Code
Document Grok plugin setup (marketplace install + enable) with the same
skill-only pattern as the Claude Code plugin: no bundled hooks or MCP.
Clarify index freshness is agent-driven via the ccc skill, and note
Grok compat MCP disable for users who want CLI/skill search only.
All marketplace and manifest URLs point at cocoindex-io/cocoindex-code.
* feat(plugin): bundle Grok SessionStart hook and MCP with opt-out docs
Add hooks/hooks.json (SessionStart incremental ccc index) and .mcp.json
(ccc mcp stdio). Document full Grok install with --trust and how to
disable hook and MCP for a skill-only setup matching Claude Code.
* docs(readme): clarify single marketplace for Claude and Grok
Add an explicit note that one .claude-plugin/marketplace.json serves both
agents with the same plugin id and skill; Grok activates hooks/MCP via --trust.
* fix(plugin): EOF newlines for pre-commit and clarify Grok install
Add trailing newlines to plugin JSON manifests (CI end-of-file-fixer).
Document installing via cocoindex-io/cocoindex-code shorthand when the
bare plugin name does not resolve from marketplace.
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
"description": "AST-based semantic code search via the ccc CLI. Bundles the ccc skill so coding agents handle init, indexing, and search automatically.",
4
+
"description": "AST-based semantic code search via the ccc CLI. Bundles the ccc skill; Grok installs also activate a SessionStart index hook and MCP server (disable either for skill-only).",
Copy file name to clipboardExpand all lines: README.md
+52-2Lines changed: 52 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,8 @@ Next, set up your [coding agent integration](#coding-agent-integration) — or j
63
63
64
64
## Coding Agent Integration
65
65
66
+
This repository is a **single plugin marketplace** (`.claude-plugin/marketplace.json`) consumed by both **Claude Code** and **Grok** — same plugin id `cocoindex-code`, same `ccc` skill. Grok optionally activates the bundled hooks and MCP server with `--trust`; Claude Code users can install the same marketplace and rely on the skill alone or load hooks/MCP from the plugin as needed.
67
+
66
68
### Skill (Recommended)
67
69
68
70
Install the `ccc` skill so your coding agent automatically uses semantic search when needed:
@@ -82,11 +84,59 @@ Works with [Claude Code](https://docs.anthropic.com/en/docs/claude-code) and oth
82
84
For Claude Code users, this repository is also a [plugin marketplace](https://code.claude.com/docs/en/plugin-marketplaces). Install the skill from inside Claude Code with:
This bundles the same `ccc` skill, with version pinning and `/plugin marketplace update` for updates.
91
+
This bundles the same `ccc` skill, with version pinning and `/plugin marketplace update` for updates. The repository also ships `hooks/hooks.json` and `.mcp.json` for Grok (and Claude Code plugin installs that load those files); Claude users who want skill-only search can rely on the skill alone and add MCP manually in the [MCP Server](#mcp-server) section below instead of using the bundled `.mcp.json`.
92
+
93
+
#### Grok plugin
94
+
95
+
For [Grok](https://github.com/xai-org/grok) users, install via Grok's plugin system. The plugin bundles three components:
96
+
97
+
| Component | Purpose |
98
+
|-----------|---------|
99
+
|**Skill** (`skills/ccc/`) | Agent runs `ccc search` / `ccc index` via the CLI (same as Claude Code above) |
Prefer the GitHub shorthand (`cocoindex-io/cocoindex-code`) for install — `grok plugin install cocoindex-code` can fail when no marketplace plugin matches that bare name.
114
+
115
+
`--trust` is required so Grok activates the plugin's hooks and MCP server (skills load when the plugin is enabled).
116
+
117
+
**Skill-only** (match Claude Code — no auto-index hook, no MCP tool):
118
+
119
+
Install and enable as above, then disable the optional components:
120
+
121
+
1.**Hooks** — open `/hooks`, select the `SessionStart` hook from `cocoindex-code`, press `Space` to disable.
122
+
2.**MCP** — open `/mcps`, select `cocoindex-code`, press `Space` to disable; or persist in `~/.grok/config.toml`:
123
+
124
+
```toml
125
+
[mcp_servers.cocoindex-code]
126
+
enabled = false
127
+
```
128
+
129
+
The agent still owns indexing via the `ccc` skill (`ccc index` / `ccc search --refresh` when stale), same as Claude Code.
130
+
131
+
To avoid importing MCP servers from your Claude/Cursor user config (unrelated to this plugin):
0 commit comments