A reusable pattern for structuring AI agent systems: separate the execution layer (agent) from the knowledge layer (brain).
Agent (execution) Brain (knowledge)
───────────────── ─────────────────
Skills & SOPs Reference library
Prompt & config Accumulated examples
Tools & integrations Learnings & annotations
Session memory Persistent knowledge
GBrain uses two repos: - Workspace repo — Agent configuration, skills, memory, crons - Brain repo — Knowledge base, people pages, meeting notes, content
Both are git repos. Knowledge grows through ingestion. Agent reads from brain, writes back learnings.
work-profile/
├── agent/ ← Execution layer
│ ├── skills/ ← SOPs for different operations
│ ├── config.yaml ← Model + provider settings
│ └── cron/ ← Scheduled tasks
│
└── brain/ ← Knowledge layer
├── taste/ ← Curated quality examples
├── libraries/ ← Reference materials
└── learnings/ ← Campaign learnings, patterns
The brain is the strategic moat. Agent is replaceable; accumulated knowledge is not. As Garry Tan puts it: "The point of building a 100K-page brain is to use it as a strategic moat. To never lose context."