Sodium
Sodium is a durable project brain shared by your coding agents. Decisions,
scope, handoffs, notes, and file-aware context survive fresh sessions,
worktrees, and switches between Claude Code, Codex, Cursor, and custom agents.
This repository is the public, secret-free client distribution. The hosted
brain lives at https://sodium.dev/mcp; there is no local daemon and no token
to paste. Your MCP client opens a browser and authenticates through OAuth.
Fastest setup
Codex
codex plugin marketplace add erkandogan/sodium --ref main
codex plugin add sodium@sodium
codex mcp login sodium
Start a fresh Codex session and ask it to orient with Sodium. To use only the
remote brain without bundled skills or hooks, run
codex mcp add sodium --url https://sodium.dev/mcp before login instead.
Claude Code
/plugin marketplace add https://github.com/erkandogan/sodium.git
/plugin install sodium@sodium
Or connect only the MCP:
claude mcp add --transport http sodium https://sodium.dev/mcp
Cursor Agent
Clone this repository or copy .cursor/mcp.json into your project, then run:
cursor-agent mcp enable sodium
cursor-agent mcp login sodium
cursor-agent mcp list-tools sodium
Cursor opens Sodium's browser OAuth flow and returns through its loopback
callback. No local MCP proxy or pasted bearer token is required.
Any MCP client
Add a remote Streamable-HTTP server named sodium with this URL:
https://sodium.dev/mcp
The endpoint advertises its OAuth server. Do not create or paste a long-lived
token into project configuration.
Optional universal CLI
Download the checksummed binary for Linux, macOS, or Windows from the
public releases. The
CLI is optional—the remote MCP works without it—but provides the same
lifecycle on tools that do not run plugin hooks:
sodium init .
sodium login
sodium start
sodium checkpoint "Finished the auth migration; dashboard verification remains"
sodium init safely merges Claude, Codex, and Cursor project configuration,
adds bounded AGENTS.md guidance, and installs non-blocking Git checkpoints.
OAuth credentials stay in the user's private config directory, never the repo.
What the plugin adds
- Project-scoped recall and warm context before an agent asks you to repeat
earlier work.
- Durable decision, scope, note, and handoff capture.
- Shared Claude/Codex lifecycle hooks that detect Git changes and request one
concise checkpoint before the agent finishes, without duplicate orientation
for the same provider/session/worktree/Git state.
- Orca worktree identity when
orca-ide is present.
- A provider-neutral Sodium Harness skill for real Codex↔Claude Orca
coordination, bounded task briefs, brief-bound receipt verification,
authoritative PR/CI/deploy reconciliation, guarded graph supervision, and
resumable state, with bundled brief/receipt/graph templates.
- Reusable planning, debugging, reviewing, and implementation skills plus
specialist personas.
The lifecycle hook reads Git metadata and changed filenames only. It does not
read or upload transcripts or source-file contents. Sodium should capture
durable knowledge, not a surveillance log of every edit.
Recommended workflow
- At task start, call
sodium_context_fetch with the project, purpose,
branch, worktree, expected files, and responseMode=compact to avoid the
deprecated compatibility mirror.
- Use
sodium_recall before asking the user to repeat a prior decision.
- Record decisions when they become durable, with rationale and related
files—not every implementation detail.
- Update or invalidate prior decisions when new work contradicts them.
- Before switching tasks, record one concise handoff with the completed
outcome, blockers, and next step.
- Rate only memories you actually relied on with
sodium_feedback.
- Use
sodium_explain when a surprising memory ranks highly; it reports the
observable ranking signals and Git provenance without inventing a reason.
- Run
sodium_health periodically to find stale handoffs, missing project or
source anchors, and exact duplicates. Resolve reviewed duplicates with
sodium_merge; it links history without rewriting the canonical target.
Use the sodium_freshness_review prompt for an evidence-backed project
review; it proposes lifecycle actions but requires approval before retiring
durable decisions or ideas. Supersede stale direction with an active current
decision; use pure invalidation only when no successor should remain.