Menu

Use Snipara with AI agents

One command. Any AI agent. One shared Project Intelligence.

One setup path
Connect any coding agent in under a minute. Snipara configures the rest.
Run npx create-snipara, choose the client, and ship the same project brain to Codex, Claude Code, Cursor, ChatGPT, VS Code, Gemini, Mistral, or any MCP-capable agent.
01
Connect
02
Retrieve Project Intelligence
03
Plan
04
Execute
05
Verify
06
Persist outcomes
Primary path
For LLM agents: use Hosted MCP
Use Hosted MCP first. create-snipara is the setup router; local stdio packages and companion workflows are compatibility or workstation helpers, not separate onboarding products.
01
create-snipara

Detects the agent client and writes the right Hosted MCP, instruction, skill, and automation templates.

02
Hosted MCP

Keeps the canonical project context, reviewed memory, code graph, source truth, and tool contract in one place.

03
Project Intelligence

Turns context into briefs, plans, impact checks, handoffs, verification paths, and durable outcomes.

04
Companion + Sandbox

Adds local workflow continuity and explicit execution only when the task needs workstation state or repeatable validation.

Without SniparaWith Snipara
Configure MCP manuallyRun create-snipara
Prompt around missing contextLoad Project Intelligence
Tune every agent separatelyUse one onboarding path
Rebuild state every sessionReuse durable project state
Wire hooks by handGenerate automation bundles
Bootstrap

npx create-snipara records the agent, generates the hosted MCP reference, and keeps merge-ready instruction templates without overwriting existing AGENTS.md or CLAUDE.md.

Automate

Choose compatible hooks in Snipara project settings, then apply the selected bundle locally with npx -y snipara-companion@latest automations install.

Verify

Use npx create-snipara doctor --client <client> for local wiring. The AI client still owns whether MCP tools are visible inside the chat.

Public answer

Snipara is hosted MCP project intelligence for AI coding agents. It gives agents the right code, docs, project context, diagrams, reviewed memory, and durable decisions across sessions without locking customers to one LLM provider. The intended workflow is lead-engineer-like: the user states an outcome, while the agent handles context, verification, Git, deploy, and smoke checks with evidence.

Endpoint

Connect agents to https://api.snipara.com/mcp/YOUR_PROJECT_SLUG and authenticate with a Snipara project API key. Prefer environment variables over inline secrets.

Agent compatibility

Snipara does not assume every assistant exposes the same lifecycle hooks. The configured agent determines which files are generated and which automation options stay enabled. Unsupported hook bundles remain disabled by default with an explicit reason.

Agent Compatibility

This matrix is derived from the shared Snipara compatibility contract. It keeps docs, dashboard states, and generated automation bundles aligned around the configured agent.

AgentGenerated by create-sniparaHook install statusCaveat
Claude Code
Hosted MCP, project instructions, and verified lifecycle hooks.
AGENTS.md, CLAUDE.md, .mcp.json, .claude/settings.json, .claude/hooks/*.shSupported nowClaude Code is the verified full-hook baseline for Snipara automation.
OpenAI Codex
Hosted MCP, AGENTS.md, Codex config, and native hook automation.
AGENTS.md, .codex/config.toml, .codex/hooks.json, .codex/hooks/*.shSupported nowCodex documents native hooks and Snipara ships a bundle for supported lifecycle events; compaction-specific hooks remain unavailable.
Cursor
Hosted MCP, project rules, and native hook automation.
AGENTS.md, .cursor/mcp.json, .cursor/rules/snipara.mdc, .cursor/hooks.json, .cursor/hooks/*.shSupported nowCursor documents project hooks and Snipara ships a bundle for supported lifecycle events; blocking/enforce decisions remain adapter-limited.
VS Code / Copilot
Hosted MCP and Copilot instructions; hook support is preview-gated.
.vscode/mcp.json, .github/copilot-instructions.mdPreview gatedVS Code agent hooks are preview and can be organization-disabled; Snipara does not install them by default.
Gemini CLI
Hosted MCP, GEMINI.md, and native hook automation.
GEMINI.md, .gemini/settings.json, .gemini/hooks/*.shSupported nowGemini CLI documents native hooks and Snipara ships a supported bundle; review scripts and enable only in trusted repositories.
Mistral Le Chat / Vibe
Hosted MCP for Le Chat and Vibe plus ChatMistralAI tool calling templates.
AGENTS.md, MISTRAL.md, .vibe/config.toml, mistral-le-chat-mcp.json, mistral-langchain-tools.tsMCP onlyMistral request hooks wrap model HTTP requests; they are not local agent lifecycle hooks, so Snipara installs MCP and instruction files only.
MCP-only / Custom
Hosted MCP tools and explicit commands only.
mcp-config.jsonMCP onlyMCP standardizes tools, resources, and prompts, not universal host lifecycle hooks.
Kimi Code CLI
Hosted MCP, project instructions, and a reviewable Kimi plugin hook bundle.
AGENTS.md, .kimi-code/mcp.json, .kimi-code/snipara-plugin/kimi.plugin.json, .kimi-code/snipara-plugin/hooks/*.mjs, .kimi-code/snipara-plugin/skills/snipara-workflow/SKILL.mdSupported nowKimi Code CLI documents project MCP configuration and lifecycle hooks; Snipara generates a plugin bundle so user-level hook config is never overwritten silently. SessionStart is observation-only, so resume context is loaded through the session-start skill and an explicit Companion command.

Snipara workflow

Treat Snipara as the agent task lifecycle, not only as a search box. Agents should retrieve project truth, execute against the current working tree, verify locally, then persist only durable outcomes.

Start

Consume the pushed Snipara brief when present, then let the router decide whether recall, context query, or code graph is needed.

Ground

Use snipara_get_chunk for cited sections, snipara_code_* for canonical structure, symbol cards for important symbols, and companion code impact before risky code changes when a shell checkout is available.

Plan

Use snipara_plan for complex or multi-surface work; for FULL-mode audits, comparisons, roadmap work, release readiness, or package-surface reviews, preserve axes with snipara_decompose and execute independent follow-ups with snipara_multi_query when exposed.

Execute

Use local files, rg, git, tests, lint, and type-checks for exact working-tree truth.

Runtime

Use Snipara Sandbox only when sandboxed execution, repeatable validation, or isolated transformations materially help.

Persist

Persist every managed phase with workflow phase-commit, resume after compaction with workflow resume, re-enter the active phase with workflow phase-start, and close with final-commit.

For end-of-task persistence, prefer snipara_end_of_task_commit for a substantial task summary. Use snipara_remember_if_novel for one reusable memory when duplicate avoidance matters, and snipara_remember only for explicit direct memory writes.

Managed companion workflow

When the agent has already produced a visible plan, snipara-companion can make that plan operational. snipara-companion workflow start writes the phase state to .snipara/workflow/current.json. Prefer a JSON machine plan when phase ids need to stay stable. Each phase then starts with hosted context, uses companion code impact or symbol cards when needed, and ends with a hosted phase commit. After resume, rerun workflow phase-start; Companion resumes workflow/memory continuity, not Snipara Sandbox or REPL runtime state.

snipara-companion plan --query "ship auth hardening" --write-plan-file ./plan.json
snipara-companion workflow start --goal "ship auth hardening" --plan-file ./plan.json
snipara-companion workflow phase-start context
snipara-companion workflow run --mode full --include-session-context --query "load context for auth hardening"
snipara-companion code impact --changed-files src/auth.ts tests/auth.test.ts --diff-summary "auth hardening"
snipara-companion workflow phase-commit context --summary "Loaded context and mapped impacted files" --files src/auth.ts
snipara-companion workflow resume --include-session-context
snipara-companion workflow phase-start implementation
snipara-companion workflow run --mode full --include-session-context --query "implement auth hardening and rerun targeted checks"
snipara-companion final-commit --summary "Shipped auth hardening and tests" --files src/auth.ts tests/auth.test.ts

Agent code context

Structural code graph tools answer topology questions such as callers, imports, neighbors, and shortest paths. All hosted plans include agent-ready code context within capacity: compact symbol cards before editing and change impact plans before risky multi-file changes or PR reviews.

When an agent has shell access, the primary impact command is snipara-companion code impact. It selects the local overlay for dirty or ahead worktrees, hosted MCP for clean indexed code, and reports that choice in sourceSelection. The hosted snipara_code_impact tool below is the fallback when companion is unavailable and the canonical hosted graph check after push and reindex.

Every code-context response states the indexed commit, indexing time, included file sample, coverage, and freshness warnings. When current local edits matter, use snipara-companion code callers/imports/neighbors/shortest-path/impact; it auto-selects hosted MCP or the local overlay and reports sourceSelection. Agents should still use local reads, rg, git status --short, and tests for exact working-tree truth.

ToolWhen an agent should use itPlan
snipara_code_callers / imports / neighbors / shortest_pathExplore canonical structural relationships before deciding which files or symbols matter.Free and paid
snipara_code_symbol_cardLoad a compact briefing for one symbol: layer, role, risk hints, tests, docs, routes, config, and MCP-related context.Free and paid
snipara_code_impactHosted impact tool. Pass changed_files and a diff_summary to get risk scoring, recommended actions, evidence counts, and coverage gaps for committed or canonical graph context.Free and paid

Free projects can use the complete code-context loop within Free capacity. Paid plans raise the monthly deep-query budget, project scale, memory and swarm capacity, throughput, and team governance surfaces.

Production validation

On the Snipara repository after the May 2026 infrastructure upgrade, hostedsnipara_code_impact completed a 3-concurrent batch at roughly 3.30s p95. An 8-concurrent overload returned retryable busy guards instead of database capacity errors. Treat this as a hosted-tool capacity signal, not a direct claim about developer productivity.

Copy-ready templates

These snippets keep agent behavior consistent across the main AI development clients. Public copies are also available under /templates/ai-agents/ for direct linking.

Snipara skill pack

Clients with native skill support can install the generated folders under .snipara/templates/skills. The same public templates are available here for direct download or copy.

Onboarding

Connect a project or client to Hosted MCP without leaking secrets.

Context workflow

Use recall, context queries, answer packs, code graph, and closeout memory.

Safe parallel work

Coordinate Team Sync, claims, collaboration guards, and handoffs.

Agent security

Protect API keys, logs, memory writes, callbacks, and generated configs.

Proof gates

Require tests, impact checks, package verification, and smoke evidence.

Codex: AGENTS.md

Codex reads AGENTS.md before work starts. Put this at the repository root or merge it into an existing project instruction file.

# AGENTS.md

## Snipara Context Workflow

This project uses Snipara Hosted MCP for project context and reviewed memory.

- Endpoint: https://api.snipara.com/mcp/YOUR_PROJECT_SLUG
- Auth: use `SNIPARA_API_KEY` from the environment. Never commit keys.
- For Codex, expose the endpoint as a streamable HTTP MCP server and load the
  key from `SNIPARA_API_KEY`.
- At the start of every new thread, validate hosted MCP with a tool-oriented
  call such as `snipara_settings`, `snipara_help(query=...)`, or a lightweight
  `snipara_context_query`. Do not treat empty MCP resources/templates as an
  outage because Snipara may be tool-only.
- If a session exposes only the lean default Snipara tool surface, treat that as
  normal. Use `snipara_help(query=...)` for routed guidance and
  `snipara_help(list_all=true)` to inspect specialist opt-in surfaces before
  requesting an expanded MCP surface.
- If the client supports native skills, install the generated Snipara skill pack
  from `.snipara/templates/skills`. Keep this `AGENTS.md` file as the shared
  fallback for clients without native skill support.

## Experience Goal

The target experience is outcome-first agent work across supported clients:
Codex, Claude Code, Cursor, Orca, LM Studio-backed local stacks, or another
MCP-capable environment. The user should be able to state an outcome, ask for
engineering judgment, or request a release while the agent handles Snipara
context retrieval, workflow state, verification, package checks, Git operations,
deployment, and production smoke checks behind the scenes. Surface important
decisions, blockers, and evidence, but do not make the user manually orchestrate
routine Snipara or release mechanics.

Agent task lifecycle:

1. Consume the pushed Snipara session brief when present. If it is empty, do not pull context just to satisfy ceremony.
2. Let the router choose LITE, STANDARD, FULL, or ORCHESTRATED from task intent. LITE has no mandatory Snipara calls.
3. Use `snipara_recall`, `snipara_context_query`, and `snipara_get_chunk` on demand when the task needs memory, source truth, or exact cited wording.
4. When `snipara_context_query` returns `answer_pack`, treat it as the first-pass response plan: use its source facts, caveats, source map, and verification checklist before drafting claims.
5. For coding tasks, choose a workflow mode before editing: LITE for small
   single-phase changes, FULL managed workflow for multi-file, risky,
   release/deploy, architectural, compaction-prone, or future-maintainer-sensitive
   work.
6. Use whichever structural code graph tools are exposed in the current session
   for callers, imports, neighbors, and path questions. Tool exposure can vary.
7. Use `snipara_code_symbol_card` for agent-ready symbol context within plan
   capacity. For impact, use `snipara-companion code impact` first when
   companion is installed; it selects the local overlay for dirty/ahead worktrees
   and hosted MCP for clean indexed code. Use hosted `snipara_code_impact` only
   when companion is unavailable or after push/reindex for canonical graph impact.
8. Use `snipara_plan` for complex or multi-surface work in any plan when
   exposed. For FULL-mode audits, comparisons, roadmap/implementation planning,
   release readiness, or package-surface reviews, use `snipara_decompose` to
   preserve the work axes and `snipara_multi_query` to execute independent
   follow-up questions when Pro+ tools are exposed.
9. When the LLM has produced a visible multi-phase plan and `snipara-companion`
   is installed, keep the machine plan in JSON and run
   `snipara-companion workflow start --goal "<goal>" --plan-file <plan_json_file>`.
   Use `workflow phase-start` / `workflow phase-commit` per phase, and after
   compaction run `workflow resume` then `workflow phase-start` before editing
   again.
10. Use local file reads, `rg`, git commands, and test commands for exact edits,
    current working-tree state, and verification.
11. Treat every `snipara_code_*` response as indexed context: check indexed
    commit SHA, indexing time, included file sample, coverage, freshness warnings,
    and sync guidance before relying on it. If `git status --short` is dirty,
    warn that the indexed graph may not include local edits.
12. If `snipara-companion` is installed and local commits or a dirty worktree
    matter, use `snipara-companion code callers/imports/neighbors/shortest-path/impact`.
    It auto-selects hosted MCP or the local overlay and reports `sourceSelection`.
    Treat local overlays as non-canonical; they do not change hosted
    `snipara_code_*` answers until pushed code is reindexed.
13. Use Snipara Sandbox only when sandboxed execution, repeatable validation, or
    isolated transformations materially help.
14. If a broad query is slow, retry once with a narrow keyword query before
    falling back to local search.
15. When generated hooks are enabled, `snipara-companion pre-tool`, `post-tool`,
    and `stuck-guard status` provide runtime Rescue Pack checks for repeated
    failures, empty searches, and risky workflows.
16. End each substantial phase with `snipara_end_of_task_commit` or
    `snipara-companion workflow phase-commit` when companion manages the plan.
    End the whole managed workflow with `snipara-companion final-commit`.
17. Use `snipara_remember_if_novel` for one reusable memory while avoiding
    duplicates, and use `snipara_remember` for explicit direct memory writes.
18. When remembered knowledge is obsolete or replaced, use
    `snipara-companion memory invalidate <memory-id>` or
    `snipara-companion memory supersede <old-memory-id> <new-memory-id>`
    when companion is installed; otherwise use hosted `snipara_memory_invalidate`
    or `snipara_memory_supersede`.
19. Do not store secrets, tokens, passwords, private keys, raw logs, transient
    command output, or unreviewed guesses in memory.

Claude Code: CLAUDE.md

Claude Code can use CLAUDE.md as a compatibility layer while keepingAGENTS.md as the canonical cross-agent instruction file.

# CLAUDE.md

Canonical project context is in AGENTS.md. This file exists for Claude Code compatibility.

## Snipara

Use Snipara Hosted MCP before answering project-specific questions.

- Endpoint: https://api.snipara.com/mcp/YOUR_PROJECT_SLUG

## Experience Goal

The target experience is outcome-first agent work across supported clients:
Codex, Claude Code, Cursor, Orca, LM Studio-backed local stacks, or another
MCP-capable environment. The user should be able to state an outcome, ask for
engineering judgment, or request a release while the agent handles Snipara
context retrieval, workflow state, verification, package checks, Git operations,
deployment, and production smoke checks behind the scenes. Surface important
decisions, blockers, and evidence, but do not make the user manually orchestrate
routine Snipara or release mechanics.

- Let the router choose workflow depth; LITE starts with no mandatory recall or context query.
- If the client supports native skills, install the generated Snipara skill pack from `.snipara/templates/skills`. Keep `AGENTS.md` as the shared fallback for clients without native skill support.
- Use snipara_context_query for source truth and snipara_get_chunk for exact cited sections.
- When snipara_context_query returns answer_pack, use its facts, caveats, source map, and verification checklist before drafting claims.
- Use snipara_code_callers, snipara_code_imports, snipara_code_neighbors, or snipara_code_shortest_path for canonical structural code questions.
- Use snipara_code_symbol_card before editing important symbols within plan capacity. For impact, use snipara-companion code impact first when companion is installed; it selects the local overlay for dirty/ahead worktrees and hosted MCP for clean indexed code. Use hosted snipara_code_impact only when companion is unavailable or after push/reindex for canonical graph impact.
- Check every snipara_code_* response for indexed commit SHA, indexing time, included files, coverage, and freshness warnings.
- Companion code commands report sourceSelection on every response. Hosted snipara_code_* answers remain canonical until pushed code is reindexed.
- Use local file reads, rg, git status --short, and tests for exact edits/current working tree; use Snipara for architecture and indexed code graph context.
- When the plan is visible and snipara-companion is installed, keep the machine plan in JSON, use snipara-companion workflow start, phase-start, and phase-commit per phase, and after workflow resume rerun workflow phase-start before editing again.
- Use Snipara Sandbox only when sandboxed execution or repeatable validation materially helps.
- For runtime-bound phases, capture compact rehydratable state with workflow runtime-checkpoint <phase_id> --summary "<state>" --rehydrate-file <state.json>. Then workflow resume restores workflow and memory continuity plus the recorded Sandbox binding and prints a reattach or rehydrate plan. It does not snapshot or exactly restore a live Snipara Sandbox or REPL process.
- End substantial work with snipara_end_of_task_commit when available; for managed workflows, end every phase with snipara-companion workflow phase-commit and the task with snipara-companion final-commit.
- Use snipara_remember_if_novel or snipara_remember only for narrow durable memories.
- When remembered knowledge is obsolete or replaced and snipara-companion is installed, use snipara-companion memory invalidate <memory-id> or snipara-companion memory supersede <old-memory-id> <new-memory-id>; otherwise use hosted snipara_memory_invalidate or snipara_memory_supersede.
- Do not store secrets, one-off command output, raw logs, or unreviewed guesses in memory.
- Use the Snipara Claude Code plugin only when slash commands, skills, or hooks are helpful; Hosted MCP remains the normal agent path.

Cursor: project rule

Cursor project rules live in .cursor/rules. Use an always-applied rule when every agent chat should know that Snipara is the source for context and reviewed memory.

---
description: Use Snipara Hosted MCP for project context and reviewed memory.
alwaysApply: true
---

# Snipara Agent Workflow

This workspace uses Snipara Hosted MCP for current project context and reviewed memory.

- Check the configured Snipara MCP server before answering project-specific questions.
- If the client supports native skills, install the generated Snipara skill pack from `.snipara/templates/skills`. Keep `AGENTS.md` as the shared fallback for clients without native skill support.

## Experience Goal

The target experience is outcome-first agent work across supported clients:
Codex, Claude Code, Cursor, Orca, LM Studio-backed local stacks, or another
MCP-capable environment. The user should be able to state an outcome, ask for
engineering judgment, or request a release while the agent handles Snipara
context retrieval, workflow state, verification, package checks, Git operations,
deployment, and production smoke checks behind the scenes. Surface important
decisions, blockers, and evidence, but do not make the user manually orchestrate
routine Snipara or release mechanics.

- Use `snipara_recall` for durable decisions, preferences, and validated learnings.
- Use `snipara_context_query` for docs, current project truth, and narrative source material. Keep simple Q&A and single-source lookups on a targeted `snipara_context_query`.
- When `snipara_context_query` returns `answer_pack`, use its facts, caveats, source map, and verification checklist before drafting claims.
- Use `snipara_get_chunk` before relying on exact cited wording from reference-based results.
- Use `snipara_code_callers`, `snipara_code_imports`, `snipara_code_neighbors`, or `snipara_code_shortest_path` for canonical structural code questions.
- Use `snipara_code_symbol_card` before editing important symbols within plan capacity. For impact, use `snipara-companion code impact` first when companion is installed; it selects the local overlay for dirty/ahead worktrees and hosted MCP for clean indexed code. Use hosted `snipara_code_impact` only when companion is unavailable or after push/reindex for canonical graph impact.
- Check every `snipara_code_*` response for indexed commit SHA, indexing time, included files, coverage, and freshness warnings.
- Companion code commands report `sourceSelection` on every response. Hosted `snipara_code_*` answers remain canonical until pushed code is reindexed.
- Use `snipara_plan` for complex or multi-surface work when available. For FULL-mode audits, comparisons, roadmap/implementation planning, release readiness, or package-surface reviews, use `snipara_decompose` to preserve axes and `snipara_multi_query` for independent follow-up questions when Pro+ tools are exposed.
- Use local file reads, `rg`, `git status --short`, and tests for exact code edits and current working-tree state.
- When `snipara-companion` is installed and the LLM has a visible multi-phase plan, keep the machine plan in JSON, use `snipara-companion workflow start`, `phase-start`, and `phase-commit` per phase, and after `workflow resume` rerun `workflow phase-start` before editing again.
- Use Snipara Sandbox only when sandboxed execution or repeatable validation materially helps.
- For runtime-bound phases, capture compact rehydratable state with `workflow runtime-checkpoint <phase_id> --summary "<state>" --rehydrate-file <state.json>`. Then `workflow resume` restores workflow and memory continuity plus the recorded Sandbox binding and prints a reattach or rehydrate plan. It does not snapshot or exactly restore a live Snipara Sandbox or REPL process.
- End substantial work with `snipara_end_of_task_commit` when available; for managed workflows, end every phase with `snipara-companion workflow phase-commit` and the task with `snipara-companion final-commit`. Use `snipara_remember_if_novel` or `snipara_remember` only for narrow durable memories. When remembered knowledge is obsolete or replaced, use `snipara-companion memory invalidate <memory-id>` or `snipara-companion memory supersede <old-memory-id> <new-memory-id>` when companion is installed; otherwise use hosted `snipara_memory_invalidate` or `snipara_memory_supersede`. Never store secrets.

ChatGPT and OpenAI MCP

Use the Hosted MCP endpoint directly when the client supports HTTP MCP. For Codex config, use bearer auth from an environment variable. For clients that accept custom headers, useX-API-Key.

Codex config.toml
[mcp_servers.snipara]
type = "streamable_http"
url = "https://api.snipara.com/mcp/YOUR_PROJECT_SLUG"
bearer_token_env_var = "SNIPARA_API_KEY"
Generic HTTP MCP
{
  "name": "snipara",
  "url": "https://api.snipara.com/mcp/YOUR_PROJECT_SLUG",
  "headers": {
    "X-API-Key": "YOUR_SNIPARA_PROJECT_API_KEY"
  }
}

ZCode with GLM

ZCode is an agentic development environment optimized for GLM. In ZCode, open Settings → MCP Servers, add a remote HTTP server, use the Snipara Hosted MCP endpoint, and pass your project key in the Authorization orX-API-Key header. ZCode can also import an existing Snipara MCP configuration from Codex CLI.

Mistral: Le Chat, Vibe, and LangChain

Use Snipara as a Hosted MCP server for Mistral Le Chat Custom MCP Connectors and Mistral Vibe. For LangChain JavaScript, bind snipara_context_query, snipara_recall, and snipara_settings to ChatMistralAI with bindTools. Mistral request hooks such as beforeRequestHooks, requestErrorHooks, and responseHooks wrap model HTTP requests; they are not local agent lifecycle hooks.

Generate automatically

Run npx create-snipara in a project to generate Hosted MCP config, local Snipara helper files, agent instruction templates, a portable Snipara skill pack, client-specific MCP references, a Cursor rule, a Codex config snippet, and Mistral Le Chat/Vibe/LangChain references. The CLI avoids overwriting existing instruction files and stores mergeable copies under .snipara/templates when a file already exists.

npx create-snipara
npx create-snipara doctor