# "Claude Codes Real Purpose Its Bigger Than You Think"
<!--
ref: @content/youtube/cole-medin/2025-10-15-claude-codes-real-purpose-its-bigger-than-you-thin
triggers: [need for custom AI solutions, integration with messaging platforms, self-modifying agent capabilities]
trigger_prompt: When a developer wants to create a custom AI agent that can interact with messaging platforms and modify its own behavior.
version: 4
updated_at: 2026-10-31T19:17:20.614Z
-->

Claude Code (Cole Medin, 2025-10-15): Claude Code is not just a coding tool — it's a thin, powerful wrapper over Claude that Anthropic has now exposed as the **Claude Agent SDK**, enabling developers to build custom agents for any domain.

Cole Medin walks through the Claude Agent SDK (formerly Claude Code SDK) and demonstrates how to embed Claude Code's agent harness into custom, non-coding workflows.

## Core Thesis
Claude Code is not just a coding tool — it's a thin, powerful wrapper over Claude that Anthropic has now exposed as the **Claude Agent SDK**, enabling developers to build custom agents for any domain. The most meaningful frontier in AI coding isn't out-of-the-box tools but programmatically-defined custom agents that live inside your codebase, hook into your messaging platforms, and can even modify themselves.

## Key Insights
- **SDK rename signals broader intent**: Anthropic's "Claude Code SDK" → "Claude Agent SDK" reflects that the harness powers any agent, not just coding ones.
- **Block-based message protocol**: The SDK returns discrete blocks (text, tool-use, tool-result, final result) rather than streamed tokens — looping over messages means looping over agent actions.
- **Subscription auth bypasses API charges**: The SDK falls back to your existing Claude subscription (e.g., Max plan) instead of requiring `ANTHROPIC_API_KEY` — meaningful for prototyping.
- **OpenAI API compatibility is a universal bridge**: Wrapping a custom Claude agent in an OpenAI-compatible `/chat/completions` endpoint lets it plug into any tool that already speaks OpenAI (Obsidian Copilot plugin, etc.).
- **MCP servers are portable**: The same MCP JSON config used in Claude Desktop/Code drops directly into custom Agent SDK agents.
- **Observability is non-negotiable** for serious agent work: Sentry (or equivalent) tracing of prompts, tool calls, tokens, and latency is essential when agents run remotely.
- **Trigger → Handoff → Response is universal**: Any messaging platform (Telegram, Slack, GitHub, Gmail) can serve as the entry point to a Claude Code agent.
- **Self-modifying agents are real**: Demo showed the agent editing its own source from a phone to add a new MCP server, with Sentry capturing the full trace.

## Actionable Takeaways
1. **Start with the SDK quick-start**: define options (`cwd`, `system_prompt`, `allowed_tools`, MCP servers) → call `query` → loop over message blocks, differentiating text vs. tool-use rendering.
2. **Skip the API key for prototyping** if you have a Claude subscription — auth falls back automatically.
3. **Wrap your agent in an OpenAI-compatible endpoint** to integrate with Obsidian (Copilot plugin), or any other OpenAI-client tool, with minimal glue.
4. **Add the sequential-thinking MCP server** for step-by-step reasoning tasks (note: each thought = one call, so it's slow).
5. **Pre-approve MCP tool permissions** in config so the agent doesn't pause mid-task waiting for human approval.
6. **Instrument with Sentry's AI agent tracing** from day one to inspect prompts, tools, token usage, and execution time.
7. **Build a messaging-platform trigger** (Telegram, Slack) so you can dispatch agents from your phone — add a `set current working directory` command to retarget the agent dynamically.
8. **Reference prior working code in your build prompts** ("look at the Obsidian integration") to get one-shot implementations.

## Notable Quotes
> "Claude Code is really just a simple yet powerful wrapper on top of Claude."

> "I can do everything I can do with Claude Code assuming I'm giving it the necessary permissions."

> "The most powerful use case is creating our own custom AI coding assistance with the tooling that we have here."

> "We literally used our own Claude Agent SDK agent to improve itself."

> "When we use a tool out of the box, we can never customize it as much as we'd want compared to when we actually get to write the code."

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*