erkandogan/sodium/sodium-harness
Claude Code and agent skill by erkandogan/sodium
- community
Checking that the SKILL.md file is still in the repository.
Coordinate bounded, attributable coding work across Codex, Claude Code, and other agents through Orca while persisting only durable semantics in Sodium. Use for supervised multi-agent tasks, cross-provider ask/reply or dispatch, resumable task briefs, completion receipts, runtime reconciliation, guarded autonomy, and mixed-agent validation.
Install
npx vskill@latest install erkandogan/sodium/sodium-harnessSKILL.md
The same SKILL.md was published earlier as erkandogan/sodium/sodium-harness.
Sodium Harness
Keep the planes distinct:
- Orca owns live worktrees, terminals, messages, tasks, dispatches, and gates.
- Sodium owns durable decisions, scope, evidence summaries, and handoffs.
- Git, tests, pull requests, CI, and deployments remain authoritative.
Never use Sodium as a mailbox. Never store raw prompts, transcripts, terminal buffers, command output, or credentials.
1. Establish identity and context
Collect the provider, session, terminal, project, worktree, branch, commit, task, dispatch, and parent-agent identifiers that exist. Use other for an unknown provider; do not invent runtime IDs.
Call sodium_project_list, then sodium_context_fetch with the task purpose, project, branch, worktree, and expected files. Carry only relevant returned chunk IDs into a delegated brief.
Resolve the installed Orca executable (orca-ide on Linux, normally orca elsewhere), then load its version-matched orchestration guide:
If Orca is unavailable, continue safely in the current provider and state that cross-provider orchestration was not used.
2. Compile a bounded task brief
Include:
- one task ID, goal, and explicit acceptance criteria;
- coordinator identity and Git/worktree snapshot;
- owned files, read-only files, dependencies, and relevant Sodium chunk IDs;
- constraints and argument-vector verification steps;
- concurrency, depth, retry, duration, token, and cost limits;
- decision-gated actions.
Use the bundled references/example-brief.json as a shape reference and adapt every placeholder to the current repository and real runtime IDs.
Orca assigns the authoritative task ID, so use a stable private brief path and bind the brief before dispatch:
- Choose a path under the worktree's private Git metadata, such as
$(git rev-parse --git-path sodium/briefs/<slug>.json).
- Create an Orca task whose short, non-sensitive title and spec point the
worker to that path. Do not put the full prompt or secrets in the title.
- Compile the brief with the returned Orca task ID.
- Validate policy, then dispatch only after the brief exists.
When the optional CLI is installed, validate and normalize the JSON before dispatch:
Do not dispatch when file ownership overlaps, a hard limit is exceeded, or a required gate is unresolved. A gated policy decision needs both gate_approved=true and the real Orca gate_id; a bare approval boolean is not provenance.
3. Create real Orca provenance
For supervised coordination, follow the installed guide exactly:
- Create one Orca task per independently verifiable unit with dependencies,
using the private brief-pointer sequence above.
- Create or select one live agent terminal in the required worktree.
- Wait for TUI readiness.
- Dispatch with
--inject. - Verify the task and dispatch with
orchestration task-listand
orchestration dispatch-show.
- Wait for
worker_done,escalation, ordecision_gateusing
check --wait; a timeout is a liveness checkpoint, not failure.
Do not claim orchestration from a chat-only or provider-native subagent. Do not retroactively manufacture task or dispatch provenance.
For fresh Codex terminals, suppress the optional interactive update check so it cannot block readiness:
If a terminal still stops on a first-run or updater prompt, treat it as a readiness condition, not a hung worker; resolve the visible prompt before dispatch.
4. Require a completion receipt
Require one JSON receipt containing:
- task and dispatch IDs, the compiled brief digest, and normalized worker
identity;
- terminal status:
completed,failed, orcancelled; - start/completion times and a concise summary;
- commit and repository-relative changed files;
- test names, statuses, argument vectors, duration, and bounded evidence;
- durable decisions, blockers, and follow-ups.
Use references/example-receipt.json as a shape reference; never reuse its placeholder identities, digest, timestamps, or evidence.
Do not cite opaque evidence digests. Every non-contract digest mentioned in receipt prose needs a matching evidence_digests record with its exact canonicalization recipe, argument vector when applicable, working directory, and at least one bounded non-escaping input scope. Use repository-relative paths for worktree state and git-metadata:sodium/... for private harness artifacts. An omitted working directory means the repository root.
Validate it when the CLI is installed:
The worker sends worker_done exactly once from its own dispatched terminal with the task/dispatch IDs and a receipt report path. The coordinator reads the receipt, verifies it against the exact brief, then verifies the current files and tests independently. Never accept cross-project, cross-worktree, out-of-ownership, read-only-overlap, missing-commit, failed-test-as-completed, or duration-budget contradictions.
5. Reconcile and persist
Preview the local, sanitized Orca snapshot and task-state reconciliation:
Apply only to the local append-only ledger when requested by the active workflow:
Reconciliation includes bounded worktree, task, dispatch, worker, PR, CI, and deployment facts. Orca, Git, and provider APIs remain authoritative. The bridge must fail open and must never return terminal previews, tool input, raw task specs, prompts, gate questions, workflow output, or provider responses. Use --skip-task-reconcile when an intentional task-state disagreement must stay visible but independent authority events should still converge.
For a multi-task graph, adapt references/example-graph.json into one private graph manifest with one coordinator, exact task IDs, brief/goal digests, dependencies, attempts, deadlines, and owned files. The CLI validates the manifest contract. Audit once before dispatch and use the opt-in watch loop during autonomous work:
Do not continue past duplicate work, ownership conflicts, dependency deadlocks, out-of-order dependency execution, retry loops, depth/concurrency overruns, expired deadlines, missing dispatch provenance, runtime worktree/branch mismatches, or unmanifested child tasks. Disconnected/stale workers, failed dependencies, and contradictory live/ledger/DAG evidence require a real decision gate.
After verification, persist each durable decision and one concise handoff with sodium_remember, anchored to project, branch, commit, worktree, and changed files. Use sodium_update, sodium_invalidate, or sodium_merge when the receipt replaces earlier memory. Keep transient progress in Orca.
6. Close the lifecycle
Confirm:
- every task has exact terminal state and real dispatch provenance;
- dependencies are satisfied and no ownership conflict remains;
- receipt status agrees with Orca, Git, and test evidence;
- required gates were resolved;
- no sensitive or transcript-like fields entered the receipt;
- the durable checkpoint is sufficient to resume without a transcript.
For a harness release, run the strict evaluation profile. It requires every declared adversarial scenario and at least four unique live Codex+Claude runs; provider cost coverage is reported explicitly instead of treating an unmeasured zero as free:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sodium-harness/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/erkandogan/sodium/sodium-harness)