Build Claude Code from Scratch
summary
Builds an agentic coding harness from scratch that talks to Anthropic’s Opus model via their SDK and returns streamed deltas; implements a chat-based terminal UI that sends a growing context array loop of user messages, LLM replies, and tool outputs; exposes a single run_bash tool so the agent executes shell commands, captures stdout/stderr, and appends results to context; demo shows the agent editing its own files (adds token counting, replaces a launcher with a symlink) and works live but has no permission guardrails.
AI-written summary · about
