# Claude Code

Claude Code is a harness option for building AI agents. Anthropic's coding agent — terminal, IDE and SDK, with hooks, skills and MCP built in.

## Facts

- Layer: Harness (What thinks)
- Vendor: Anthropic
- Licence: proprietary
- Pricing: paid
- Self-hostable: no
- Install: `npm install -g @anthropic-ai/claude-code`
- Requires: `ANTHROPIC_API_KEY`
- Docs: https://claude.com/claude-code
- Last verified: 2026-08-21

## When to reach for it

- You are choosing a harness component — what thinks.
- You are happy to depend on a hosted service and would rather not operate this yourself.

## Worth knowing

Configure via .claude/settings.json; drop reusable procedures in .claude/skills/.

## Alternatives in the harness layer

| Option | What it does | Licence | Self-host |
| --- | --- | --- | --- |
| Claude Agent SDK | The Claude Code loop as a library, for agents that are not about code. | proprietary | no |
| Hermes Agent | Self-improving agent from Nous Research — writes its own skills from experience and carries them forward. | open source | yes |
| OpenClaw | Self-hosted gateway putting an agent in Slack, Telegram, WhatsApp, Signal, Discord and iMessage at once. | open source | yes |
| Prime Agent | Prime Intellect's recursive-language-model harness — a persistent IPython kernel is the only tool, sub-agents are function calls. | open source | yes |
| DeepSeek Harness | Everything is a plugin — the model adapter, the tool registry, the sandbox and the agent loop itself are all swappable. | open source | yes |
| OpenAI Agents SDK | Lightweight loop with handoffs, guardrails and sessions. | open source | no |
| Codex CLI | OpenAI's terminal coding agent. | open source | no |
| OpenCode | Open-source terminal coding agent, provider-agnostic. | open source | yes |
| Goose | Block's open-source on-machine agent with an extension system. | open source | yes |
| Letta | Stateful agent server where memory is the primary abstraction. | open source | yes |
| Roll your own loop | No harness. A while-loop, a model call and your own tool dispatch. | open source | yes |

Head to head:

- https://newagent.build/compare/claude-code-vs-claude-agent-sdk
- https://newagent.build/compare/claude-code-vs-hermes-agent
- https://newagent.build/compare/claude-code-vs-openclaw
- https://newagent.build/compare/claude-code-vs-prime-agent
- https://newagent.build/compare/claude-code-vs-deepseek-harness
- https://newagent.build/compare/claude-code-vs-openai-agents-sdk
- https://newagent.build/compare/claude-code-vs-codex-cli
- https://newagent.build/compare/claude-code-vs-opencode

## Curated stacks using it

- Weekend prototype: Smallest thing that is still honest. Local, cheap, no accounts beyond one model key.

## Add it to a stack

```bash
curl -fsSL "https://newagent.build/api/stack?harness=claude-code&format=sh" | sh
```

## Machine interfaces

- `GET https://newagent.build/api/registry` — every component as JSON
- `GET https://newagent.build/api/vendors` — vendors, with the repo and releases feed to watch
- `GET https://newagent.build/api/advise?q=<plain english>` — recommended stack for a description
- `GET https://newagent.build/api/stack?<layer>=<id>&format=sh|json|md|yml|agents|env` — a stack as files
- `GET https://newagent.build/llms.txt` — the whole registry in one fetch

Any page here also returns markdown if you send `Accept: text/markdown`.