Workflow Modes
Snipara offers workflow modes optimized for different task sizes. Choose LITE for focused edits, STANDARD for normal agent work, FULL for multi-phase changes, and FULL + ORCHESTRATED only when explicit production validation or multi-agent coordination is justified.
Run With snipara-companion
You can follow the workflow manually through MCP tools, or use the optional snipara-companion npm package as a local workflow shortcut. The installed command is snipara-companion; there is no separate snipara-workflow binary.
npx -y snipara-companion@latest workflow run --mode standard --query "who imports the auth middleware"npx -y snipara-companion@latest workflow run --mode full --include-session-context --query "plan the billing refactor"npx -y snipara-companion@latest workflow run --mode orchestrate --query "map the production rollout risks"npx -y snipara-companion@latest doctorstandard runs a context query and automatically executes a recommended structural tool when Snipara returns one. auto remains a compatibility alias for STANDARD behavior. full adds durable memory bootstrap, optional session carryover, shared context, a visible phase plan, and phase commits.
For FULL, orchestrated, or execution-heavy tasks, companion prints Snipara Sandbox and orchestrator hints when local validation or production gates would help. Use --no-runtime-hint for scripted output, and use snipara-companion doctor to check Snipara auth, Sandbox CLI availability, Sandbox MCP wiring, provider keys, Docker, and optional orchestrator availability.
Companion does not run Snipara Sandbox by itself. If the workflow needs sandboxed execution via execute_python, install and expose Snipara Sandbox with npx create-snipara repair --with-runtime, the create-snipara full-stack profile, or the Snipara Sandbox MCP server.
Companion also does not spawn workers through snipara-orchestrator by default. Install orchestrator only for explicit production gates, proof-based validation, drift checks, or hierarchical task coordination.
API Keys and Snipara Sandbox Execution
Snipara context and Snipara Sandbox execution use different credentials. Keep them separate:
| Surface | Key Needed | Why |
|---|---|---|
snipara-companion / hosted MCP | Snipara API key or login | Queries hosted Snipara context, memory, planning, and project data. |
Snipara Sandbox MCP execute_python | No extra LLM provider key | Your AI client decides what to execute; Snipara Sandbox runs the sandboxed code. |
Snipara Sandbox CLI snipara-sandbox run / snipara-sandbox agent | OPENAI_API_KEY or ANTHROPIC_API_KEY | Snipara Sandbox calls an LLM provider itself when it is asked to plan, reason, and execute the job through the CLI. |
npx -y snipara-companion@latest task-commit --summary "Implemented the billing refactor and validated checkout tests" --files apps/web/src/lib/billing.tsUse task-commit at the end of substantial work to persist durable outcomes. For Codex, companion remains optional: hosted MCP plus AGENTS.md is still the primary integration.
Quick Decision
Ask yourself these 5 questions:
| Question | If Yes |
|---|---|
| Will this take multiple sessions? | +1 toward FULL |
| Does it affect 5+ files? | +1 toward FULL |
| Am I making architectural decisions? | +1 toward FULL |
| Will others need to understand this later? | +1 toward FULL |
| Does it require production proof, drift checks, or parallel agents? | +1 toward FULL + ORCHESTRATED |
Score 0 = LITE | Score 1 = STANDARD | Score 2+ = FULL. Add ORCHESTRATED only for explicit production validation, htask coordination, or multi-agent work.
LITE Mode (Default)
Use for bug fixes, small features, single-session work, and tasks where you know exactly which files to modify.
LITE Mode Example
snipara_context_query(query="fix null check authentication")# Read the specific file# Edit to add null checkpnpm testSTANDARD Mode (Normal Agent Work)
Use for most single-session coding work that may need source context, structural code graph follow-up, and a final durable outcome if the task teaches something reusable.
STANDARD Mode Example
snipara_context_query(query="who imports the auth middleware", return_references=true)# Follow recommended snipara_code_* tool if returned# Edit files locallypnpm testsnipara_end_of_task_commit(summary="Captured durable outcome", persist_types=["learning"]) # only when usefulFULL Mode (Complex Features)
Use for multi-day features, architectural changes, team coordination, and documentation-heavy work that spans multiple sessions.
FULL Mode Example
# Phase 1: Contextsnipara_shared_context(categories=["BEST_PRACTICES"])snipara_recall(query="rate limiting decisions")snipara_context_query(query="API middleware", max_tokens=8000)# Phase 2: Plansnipara_plan(query="implement rate limiting for API")snipara_remember(type="decision", content="Using Redis sliding window")# Phase 4: Implementsnipara_inject(context="Working on rate limiting, Redis backend")snipara_multi_query(queries=[{query: "Redis patterns"}, ...])# Phase 5: Persist durable outcomesnipara_end_of_task_commit(summary="Implemented Redis sliding-window rate limiting and left tests as the next step")Mode Selection Examples
| Task | Mode | Why |
|---|---|---|
| Fix typo in README | LITE | Single file, obvious change |
| Fix null check in auth.ts | LITE | Known file, small fix |
| Add loading spinner | LITE | Single component |
| Add rate limiting to API | FULL | Multi-file, architectural |
| Trace imports before a medium refactor | STANDARD | Needs context plus code graph follow-up, but not a managed phase plan |
| Refactor auth to JWT | FULL | Breaking change, multi-file |
| New billing integration | FULL | New feature, external API |
| Multi-tenant support | FULL | Architectural, multi-session |
| Coordinated production rollout with proof gates | FULL + ORCHESTRATED | Requires proof-based validation, htasks, or explicit multi-agent coordination |
FULL + ORCHESTRATED
Use this only when FULL mode is not enough: production validation needs proof contracts, release drift checks must gate progress, or a coordinator must split work across hierarchical tasks. In that case, snipara-companion keeps the local workflow state while snipara-orchestrator handles the advanced validation or htask surface explicitly.
npx create-snipara repair --with-orchestratorsnipara-orchestrator check-drift --route /api/billing --route /api/authsnipara-orchestrator htask-next --swarm-id <swarm> --limit 3Session Continuity (FULL Mode)
FULL mode enables work that spans multiple sessions through the memory system.
Starting a New Session
snipara_recall(query="feature-name progress status")snipara_context_query(query="feature-name")Ending a Session
snipara_end_of_task_commit(
summary="Feature X: Completed steps 1-3. Next: implement Y. Blocker: Z",
outcome="partial",
persist_types=["decision", "learning", "workflow"]
)Tools Reference
| Need | Tool | Mode |
|---|---|---|
| Quick answer | snipara_ask | Both |
| Deep context | snipara_context_query | Both |
| Past decisions | snipara_recall | STANDARD/FULL |
| Team standards | snipara_shared_context | STANDARD/FULL |
| Plan complex work | snipara_plan | FULL |
| Break down task | snipara_decompose | FULL |
| Save decision | snipara_remember | FULL |
| Save only novel memory | snipara_remember_if_novel | FULL |
| Persist durable task outcome | snipara_end_of_task_commit | FULL |
| Batch queries | snipara_multi_query | FULL |
| Test logic | execute_python / snipara-sandbox | FULL |
| Production validation | snipara-orchestrator | FULL + ORCHESTRATED |
| Run local workflow preset | npx -y snipara-companion@latest workflow run | All |