Skip to main content

What is Trellis

1.1 One-Line Summary

Trellis is scaffolding for AI coding assistants — it automatically injects your project specs into every AI session, so the AI writes code following your standards instead of improvising.
AI’s capabilities grow like vines — full of vitality but spreading everywhere. Trellis is scaffolding for AI, guiding it along the path of your conventions.

1.2 Pain Points Addressed

Pain PointCurrent StateTrellis Solution
AI ignores your specsYou write CLAUDE.md, but AI forgets it after 5 conversation turnsHook auto-injection ensures specs are included in every conversation
Fix A, break B cycleAI fixes one bug but introduces anotherThinking Guides + Ralph Loop: think first, then act, then verify
Inconsistent codeAI-generated code runs but doesn’t integrate wellCross-Layer Guide: map data flow before writing code
Scope creepYou ask for a button, AI writes 9,000 linesPlan Agent: rejects and splits oversized requirements
Inconsistent team qualityEach person’s AI produces different coding stylesShared Spec library — one person optimizes, the whole team benefits
Cross-session amnesiaNew sessions require re-explaining project contextSession persistence — AI remembers context across sessions

1.3 Comparison with Traditional Approaches

Dimension.cursorrulesCLAUDE.mdSkillsTrellis
Spec injection methodManually loaded each conversationAuto-loaded but easily truncatedUser-initiatedHook auto-injection, precisely loaded per task
Spec granularityOne large fileOne large fileOne per SkillModular files, composed per task
Cross-session memoryNoneNoneNoneWorkspace journal persistence
Parallel developmentNot supportedNot supportedNot supportedMulti-Agent worktree parallelism
Quality controlNoneNoneNoneRalph Loop automatic verification
Team sharingSingle userSingle userShareable but no standardGit-versioned Spec library
Platform supportCursor onlyClaude Code onlyPer platformClaude Code + Cursor + Codex + OpenCode + Kilo + Kiro

1.4 Core Concepts at a Glance

ConceptDescriptionLocation
SpecYour coding standards, written in Markdown. AI reads specs before writing code.trellis/spec/
WorkspaceEach developer’s session logs, letting AI remember what was done last time.trellis/workspace/
TaskA work unit containing requirements docs and context configuration.trellis/tasks/
HookAuto-triggered scripts that inject context at session start, Agent invocations, etc. [Claude Code exclusive].claude/hooks/
AgentSpecialized AI sub-processes such as Implement, Check, Debug, etc. [Claude Code exclusive].claude/agents/
SkillReusable AI capability modules, shareable across projects.claude/skills/
JournalSession log files recording what was done in each development session.trellis/workspace/{name}/journal-N.md
Hook and Agent systems are Claude Code exclusive features. Cursor, Codex, and other platforms load specs manually via Slash commands, achieving the same effect. Spec, Workspace, Task, Journal, and other core concepts are universal across all platforms.