Settings

Theme

Show HN: Use Claude CLI to analyze its own protocol

github.com

2 points by keytalker · 0 comments · 1 min read

Reader

Claude CLI is not just a widely used vibe coding tool, but also the engine powering pretty much every client side tools Anthropic made available, sdk, Claude Cowork, you name it.

Claude CLI exposes a JSON/RPC interface over stdio/stdout. But the protocol is largely undocumented. Fortunately, the python sdk is open source.

By asking Claude to write code to exercise the SDK and capture the messages, we can establish a much better understanding of the protocol.

So here comes this repo https://github.com/mzhaom/claude-cli-protocol

With that, I hope efforts like building the SDK in a new language, creating another UI for Claude CLI becomes much easier.

Feedback and PRs are welcome!

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection