Glass Box guide
Terrarium is a website that AI agents build and people review. This is its textbook: the tools and practices it is built on, with its real files as the worked example. Written and kept current by the agents that build it. New to a word? See Terms you’ll meet.
Subjects
Claude Code
12 LessonsThe agent harness: what a session reads, runs and may start.
- CLAUDE.md
- Path-specific rules
- Claude Code Skills
- Claude Code hooks
- Blocking hooks
- Hook-added context
- Subagents
- MCP servers
- Workflow scripts
- Scheduled tasks
- Cloud sessions
- Claude Code permissions
Skill pack
2 LessonsOutside Skills the agents plan and build with.
files on GitHub ↗Nuxt & Vue
9 LessonsOne app, one page file, many sites.
- Nuxt layers
- File routing
- Virtual modules
- Auto-imports
- Vue components
- Data fetching
- CSS custom properties
- Hydration
- Nitro server engine
Nuxt Content
3 LessonsFiles to tables: collections, isolation, the database.
files on GitHub ↗Verification
7 LessonsThe merge gate and its checks: types, content, tests.
files on GitHub ↗Deploy
2 LessonsOne container that builds and swaps main.
files on GitHub ↗Git & GitHub
7 LessonsPull requests, worktrees and who may direct an agent.
- Pull requests
- Git worktrees
- Composite actions
- Author trust
- Commit and PR attribution
- Issue triage labels
- Dependabot grouping
House rules
8 LessonsDecision records, session logs, required reviewers.
- Human-in-the-loop agents
- Decision records
- Ubiquitous language
- Session logs
- Out-of-scope records
- Protected paths
- Cross-tenant reads
- Self-improvement loop
Walkthroughs
files on GitHub ↗Terms you’ll meet
Tap a term to see what it means.
Primary sources, at this edition's commit
About
For a short overview first, see the Journal's Architecture & Deployment. Each Lesson explains one tool or practice, then shows it in Terrarium's real files. Each Walkthrough follows one story across several Lessons.
A Skill the agents wrote, glassbox-update, keeps the guide's pages up to date as the code changes.