Claude Managed Agents Sse Demo — Development skill for Claude Code
A stdlib-only Python CLI that parses and pretty-prints Server-Sent Events from Anthropic's Claude Managed Agents public-beta API (managed-agents-2026-04-01), with a bundled offline fixture and an opti.
How to install Claude Managed Agents Sse Demo
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open cognimata/claude-managed-agents-sse-demo and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Managed Agents Sse Demo does
A stdlib-only Python CLI that parses and pretty-prints Server-Sent Events from Anthropic's Claude Managed Agents public-beta API (managed-agents-2026-04-01), with a bundled offline fixture and an optional live streaming mode.
Alternatives in Development
- Breach Check — HIBP k-anonymity check on a password wordlist 4.5k ★
- Native Feel Skill — An Agent Skill for designing cross-platform desktop apps that feel native — distilled from Raycast's 2.0 deep 1.9k ★
- Claude Keysmith — Managed Claude Code instruction deployment with safe CLI recovery and an unsigned macOS/Windows desktop beta 696 ★
README
claude-managed-agents-sse-demo
A tiny Python CLI that parses Server-Sent Events from Anthropic's **Claude Managed Agents** public-beta API (launched April 2026, beta header `managed-agents-2026-04-01`) into typed Python dataclasses and pretty-prints an agent session.
Runs **fully offline** against a bundled fixture — no API key, no install. An optional live mode streams real events if you have an API key and beta access.
Why
Claude Managed Agents shipped a managed harness for running Claude as an autonomous agent: secure sandboxed containers, long-running sessions, built-in tools (bash, file ops, web search), and a server-sent-event stream you read with `GET /v1/sessions/{id}/stream`. The wire format is small but lightly documented. This repo is a one-sit-read reference you can copy and extend: dataclasses that mirror the beta event schema, a tolerant SSE parser (ignores comments, buffers multi-line `data:` fields, drops malformed JSON), and a colorized terminal renderer.
Quickstart
python3 -m cma_sse replay fixtures/fibonacci.sse
That's it — the replay path is stdlib-only. Expected output (colors elided):
-- session: running --
I'll create a Python script that generates the first 20 Fibonacci numbers and saves them to fibonacci.txt.
[tool] write {"path": "fibonacci.py", "content": "a,b=0,1 ..."}
[tool-ok] Wrote fibonacci.py (96 bytes)
[tool] bash {"command": "python fibonacci.py && wc -l fibonacci.txt"}
[tool-ok] 20 fibonacci.txt
...
-- session: idle --
{
"events": 10,
"by_type": { "session.status": 2, "agent.message": 2, "agent.tool_use": 3, "agent.tool_result": 3 }
}
Optional — stream a live session (you must have already created an agent, environment, and session per the [quickstart](https://platform.claude.com/docs/en/managed-agents/quickstart)):
pip install -r requirements.txt
export ANTHROPIC_API_KEY=...
python3 -m cma_sse live --session-id sess_... --prompt "Say hi"
Event model
| Wire `type`
Related Skills
Bullpen Knowledge
Browse what a bullpen teammate has learned in this project. Reads their namespace from /.bullpen/memory.json a
Skillopt
Run the SkillOpt process-skill optimizer (offline, local). Default prints the exact bare-terminal command (saf
Resume Skills
Offline, local-only context migration skills across 9 coding-agent sources × 9 destination hosts (registry-der
V Memory Refresh
(Re)index docs/superpowers prose into the local V-memory cache so recall is current. Incremental by file hash;
Offline Telemetry Script
Offline analyzer for Claude Code session transcripts (~/.claude/projects/.jsonl). Pure-stdlib Python, no API c
Truetailor
Resume tailoring skill where the fabrication gate is code, not a promise. gate.py (stdlib, offline) blocks any
Related Agents
Realtime Collaboration Engineer
Expert realtime systems engineer for WebSocket/SSE infrastructure, presence, CRDT and OT-based collaborative e
Py38 Compat Reviewer
Python 3.8/3.9 互換性のレビューが必要なとき(リリース前、差分レビュー時、CI の 3.8/3.9 ジョブが失敗したとき)に使う。3.10+ でしか動かない構文や 3.9+ の stdlib API を検出
DevOps Systems Engineer
Systems engineer who composes PaaS and bare metal for speed and low cost — fast flight for PaaS/SaaS and onlin