Observed since 21 Oct, 09:51 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Python toolkit for building AI agent systems with Claude Code — MCP servers, orchestration, skills, and hooks
A hands-on learning environment for modern AI agent engineering using Claude Code's native runtime — skills, hooks, sub-agents, MCP servers, agent teams, and context engineering.
Built to practice the patterns that are replacing static LangChain-style prompt pipelines with runtime-native orchestration.
| Skill | What It Does |
|---|---|
deep-review | Multi-agent code review (context researcher + security auditor + synthesis) |
debug-agent | Hypothesis-driven debugging with parallel investigation agents |
onboard-repo | 4-agent parallel codebase mapping for unfamiliar repos |
pr-analyzer | PR quality analysis (logic + design + risk assessment) |
feature-builder | End-to-end feature delivery with plan→execute→validate pipeline |
build-skill | Meta-skill for creating new skills |
| Hook | Event | Purpose |
|---|---|---|
safety-check.sh | PreToolUse | Block force pushes, destructive rm, dangerous git ops |
env-protection.sh | PreToolUse | Block secrets in file writes, detect hardcoded API keys |
audit-log.sh | PostToolUse | Async logging of all tool executions |
compaction-saver.sh | PreCompact | Save state before context window compaction |
quality-gate.sh | Stop | Notify when agent completes work |
mcp-servers/task-tracker/ — A production MCP server built with the official Python SDK (FastMCP):
| Command | What It Does |
|---|---|
/project:agent-team | Full research→plan→execute→validate pipeline |
/project:smart-do | Dynamic routing — classifies complexity, deploys right level of machinery |
/project:research | Parallel sub-agent research with synthesis |
/project:explain | Explains agent concepts with diagrams and token implications |
/project:context-audit | Audits current context window utilization |
Documented patterns for building agent teams:
┌── Claude Code Session (Coordinator) ─────────────────────────┐
│ │
│ Context Window │
│ ├── System prompt (~4K tokens) │
│ ├── CLAUDE.md (project rules, always loaded) │
│ ├── Memory index (cross-session knowledge) │
│ ├── Skill descriptions (lazy routing metadata) │
│ └── Conversation + tool results (growing, compacted) │
│ │
│ Orchestration: runtime decisions between phases │
│ ├── Spawn sub-agents (isolated context windows) │
│ ├── Fan-out parallel research │
│ ├── Synthesize findings (never delegate understanding) │
│ └── Checkpoint with user at critical junctures │
│ │
│ External: │
│ ├── Hooks (deterministic, zero token cost, shell scripts) │
│ ├── MCP servers (tool extension via stdio protocol) │
│ └── Files (persistence beyond context compaction) │
└───────────────────────────────────────────────────────────────┘
# OLD: Static pipeline (LangChain-style)
chain = research | plan | execute | validate # same path every time
chain.invoke("add a semicolon") # overkill
chain.invoke("rewrite auth system") # underkill
# NEW: Runtime orchestration (agent-native)
# Coordinator classifies, adapts, skips, retries based on actual results
# "Add semicolon" → direct edit (500 tokens)
# "Rewrite auth" → full team pipeline (3000 tokens, correct result)
| Component | Cost | When |
|---|---|---|
| Sub-agent result | 200-1000 tokens | Once when it returns |
| File read | 500-5000 tokens | Once per read |
| CLAUDE.md | 200-2000 tokens | EVERY turn |
| Skill invocation | 500-2000 tokens | On invoke |
| Hook execution | 0 tokens | Always free |
cd ~/Documents/GitHub/agent-lab
# Claude Code auto-loads .claude/settings.json, CLAUDE.md, .mcp.json
# All hooks, permissions, and MCP servers activate automatically
/project:research MCP protocol architecture
/project:explain context compaction
/project:smart-do add a health check endpoint
/project:agent-team implement user preferences feature
/project:context-audit
The task-tracker MCP server connects automatically when you start Claude Code in this directory. Approve it when prompted.
# Test it manually:
cd mcp-servers/task-tracker
uv run python test_server.py
agent-lab/
├── CLAUDE.md ← Project conventions (always loaded)
├── .mcp.json ← MCP server configurations
├── .claude/
│ ├── settings.json ← Hooks, permissions, project config
│ └── commands/ ← Slash commands (/project:*)
├── skills/ ← Reusable skill definitions (SKILL.md)
├── agents/ ← Agent architecture documentation
├── hooks/ ← Shell scripts for lifecycle events
├── mcp-servers/
│ └── task-tracker/ ← Working MCP server (Python/FastMCP)
├── experiments/
│ ├── 01-context-engineering/ ← How the context window works
│ ├── 02-skill-system/ ← Skill loading & routing
│ ├── 03-hooks/ ← All hook types & lifecycle events
│ ├── 05-memory-engineering/ ← Memory architecture & examples
│ └── 06-runtime-orchestration/← Runtime vs static pipelines
└── docs/
├── architecture.md ← Master architecture reference
└── quick-reference.md ← Decision cheatsheet
experiments/01-context-engineering/agents/researcher.md, agents/coordinator.mdexperiments/02-skill-system/, skills/*/SKILL.mdexperiments/03-hooks/HOOK_TYPES.md, hooks/*.shexperiments/04-mcp-architecture/, mcp-servers/task-tracker/experiments/05-memory-engineering/experiments/06-runtime-orchestration/Core Documentation:
Agent Harness Comparison:
Deep Dives:
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.0 | 21 May 2026 | 4 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:51 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:7f6a0ed156b1a00dd760bab69d4c1e7e9d903ab344071a028ed37c1d69742b5e