Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add kouroshez/coding-os --skill claude-sdk-integrationgit clone --depth 1 https://github.com/kouroshez/coding-osWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kouroshez/coding-os/claude-sdk-integration)<a href="https://agentmods.dev/skills/kouroshez/coding-os/claude-sdk-integration"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/claude-sdk-integration/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kouroshez/coding-os/claude-sdk-integration"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/claude-sdk-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00130 | $0.01607 |
| Opus 5.5 | $0.00052 | $0.00643 |
| Sonnet 5.5 | $0.00026 | $0.00321 |
| Haiku 4.5 | $0.00013 | $0.00161 |
Grade A, and why
claude-sdk-integration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.
claude-sdk-integration
Purpose: Make every interaction with Anthropic's Python SDKs robust,
cache-friendly, and contract-compliant. The meta-repo dispatches Claude
sub-sessions via claude-agent-sdk; agents editing this surface must
preserve the protocol that src/core/thinking_os/dispatcher.py defines.
Read when: editing any of:
src/adapters/claude/sdk_dispatcher.py— the SDK dispatcher.src/adapters/claude/install.sh— adapter scaffold (when changing SDK options).src/core/thinking_os/dispatcher.py— the protocol the dispatcher implements.src/core/thinking_os/formula_composer.py— when changing how chains spawn sub-sessions.src/core/thinking_os/cognition.py— when wiringcos_dispatch_formula_run.
Skip when: editing tests under tests/test_*sdk*, mock fixtures.
Two libraries, two scopes
anthropic — raw Claude API (Messages, tool use, streaming)
claude-agent-sdk — high-level: spawns a Claude Code sub-session as a
coroutine, handles tool-use loop, session lifecycle
src/adapters/claude/sdk_dispatcher.py uses claude-agent-sdk (high
level). For raw API work (cognition tools that build prompts), use
anthropic.
Dispatcher protocol contract
src/core/thinking_os/dispatcher.py defines:
class AgentDispatcher(Protocol):
def available(self) -> bool: ...
async def dispatch(self, request: DispatchRequest) -> DispatchResult: ...
Any adapter dispatcher (Claude, Codex, …) MUST implement this. Breaking the signature breaks every cognition flow.
Hard rules
1. Prompt caching (SDK + raw)
Cache markers on stable prefixes:
messages = [
{"role": "user", "content": [
{"type": "text", "text": SYSTEM_PROMPT, "cache_control": {"type": "ephemeral"}},
{"type": "text", "text": dynamic_question},
]}
]
Goal: ≥80% cache hit rate on repeated dispatches. The dispatcher should keep the system prompt + tool list + role context BEFORE the question — never interleave dynamic content into the cached prefix.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 28d ago Changed · -1 lines d6d0d7b74f17
- 3mo ago First seen · 164 lines · 130 tokens per session scan A 28bd1ebfc390
claude-sdk-integration is a skill published in the GitHub repository kouroshez/coding-os (7 stars, last pushed 4d ago), licensed Apache-2.0. It adds 130 tokens to every session and 1,607 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
claude-sdk-integration compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| claude-sdk-integrationkouroshez/coding-os | Skill | 7 | 4d ago | Apache-2.0 | A | 130 | Claude Code, Codex |
| neo4j-knowledge-graphMazzaWill/neo4j-python-pandas-py2neo-v3 | Skill | 580 | 1mo ago | MIT | A | 55 | Codex |
| matlabK-Dense-AI/scientific-agent-skills | Skill | 59k | 4d ago | MIT | A | 44 | Claude Code |
| holoscan-install-wheelNVIDIA/skills | Skill | 4.3k | yesterday | Apache-2.0 | A | 34 | Claude Code, Codex |
| python-engineering-guidelinesanywhere-labs/Agents-Anywhere | Skill | 3.9k | yesterday | Apache-2.0 | A | 75 | Codex |
| future-self-liteTHU-MAIC/OpenMAIC | Skill | 46k | today | MIT | A | 20 | Claude Code, Codex |
| rocm-kernelshuggingface/kernels | Skill | 803 | yesterday | Apache-2.0 | A | 93 | Claude Code |