snipara-companion
snipara-companionis Snipara's optional local helper CLI for hook-oriented automation workflows. It complements snipara-mcp; it does not replace it.
Important
Most users do not need snipara-companion.
For Codex, the primary integration is still mcp.json plus AGENTS.md. Install companion only when you explicitly want local helper CLI behavior or hook-style automation around supported clients.
When to use it
- You want a local helper CLI around hook-oriented workflows.
- You are targeting clients like Claude Code, Cursor, or Windsurf.
- You want the installed
rlm-hookcommand for local automation steps. - You want automatic routing from natural-language structural queries into
rlm_code_*tools.
When not to use it
- Do not install it just to get Snipara MCP. Use
snipara-mcpfor that. - Do not install it by default for Codex. Codex works with
mcp.jsonandAGENTS.md. - Do not treat it as the same thing as
snipara-orchestratororsnipara-openclaw-hooks.
Install
npm install -g snipara-companionThe installed executable is rlm-hook.
What it adds now
- Auto-follow structural recommendations:
rlm-hook query --follow-recommendationwill execute the recommendedrlm_code_*tool when Snipara detects a structural code question. - Workflow presets:
rlm-hook workflow run --mode autoand--mode fullcombine retrieval, planning, and graph follow-up. - Runtime hints: workflow runs suggest RLM Runtime for FULL, orchestrated, or execution-heavy work without executing Runtime jobs themselves.
- Local readiness check:
rlm-hook doctorreports Snipara auth, RLM Runtime CLI, Runtime MCP config, provider keys, and Docker. - Direct code graph access:
rlm-hook code callers,imports,neighbors, andshortest-path. - Project-linked standards on demand:
rlm-hook shared-contextloads the shared collections linked to the current project instead of preloading every team rule on every session.
Quick start
rlm-hook init --with-hooks --client claude-coderlm-hook query --query "who calls src.rlm_engine.RLMEngine._handle_context_query" --follow-recommendationrlm-hook workflow run --mode full --query "plan the auth refactor"rlm-hook workflow run --mode full --no-runtime-hint --query "plan the auth refactor"rlm-hook doctorrlm-hook code imports --file-path src/rlm_engine.pyrlm-hook shared-context --categories BEST_PRACTICES GUIDELINESContext hierarchy
- Project context first: companion stays scoped to the current workspace and project when it runs retrieval.
- Shared context through the project: team standards are pulled from the shared collections linked to that project, not from every collection in the team.
- No global team preload: reviewed memory and workspace defaults preload at session start; shared/team context is fetched when the task actually asks for standards, conventions, or compliance guidance.
Supported presets today
claude-codecursorwindsurf
Companion vs other packages
| Package | Use it for | Default? |
|---|---|---|
snipara-mcp | MCP access, OAuth login, context queries, memory | Yes |
create-snipara | One-command onboarding for Snipara MCP plus runtime | Yes, when setup automation is wanted |
snipara-companion | Optional local helper CLI and hook-oriented automation | No |
snipara-orchestrator | Production validation, proofs, drift detection, orchestration | No |
snipara-openclaw-hooks | OpenClaw-specific automation | Only for OpenClaw |
Should companion and orchestrator merge?
No. snipara-companion is a local npm CLI centered on hook workflows and local automation ergonomics. snipara-orchestrator is a Python package for advanced production validation and orchestration. Merging them would make install guidance and product positioning less clear, not more.
Recommended split
- Use
snipara-companionfor day-to-day development flow, hook automation, code graph routing, and lightweight workflow presets. - Add RLM Runtime when the workflow needs local execution, tests, lint, or sandboxed validation. Companion can suggest Runtime and diagnose local readiness, but Runtime remains a separate execution layer.
- Reach for
snipara-orchestratoronly when you need proof-based validation, drift detection, or production gates.