learn-claude-code
View on GitHubBash is all you need - A nano claude code–like 「agent harness」, built from 0 to 1
Educational Python tutorial that builds a nano Claude Code-like agent harness from zero, with 17 lessons covering agent loops, tool use, permissions, hooks, subagents, context compaction, memory, MCP plugins and agent teams.
Use Cases
Learn how to build a Claude Code-like agent harness from scratchImplement an agent loop with tool callingAdd permission governance and hooks to an agentBuild subagents and context compactionImplement task systems and background tasksCoordinate multi-agent teams with async mailboxesLoad agent skills on demandAdd persistent memory to an agentRoute external capabilities via MCP pluginsStudy agent harness engineering patterns for coding agents
Built With
- Language
- Python
- Frameworks
- Anthropic SDK · python-dotenv · PyYAML
Tags
agent-harness · tutorial · educational · claude-code · agent-loop · tool-use · subagents · context-compaction · permissions · hooks · memory · task-system · agent-teams · mcp · python · from-scratch