arrow_back Back to case studies Case Study · 05

A Company Brain for a live festival.

Client · BC CrabFest (Crabben Ltd) Industry · Live events Engagement · Company Brain deployment Stack · Markdown · SQLite · Git · Claude agents

BC CrabFest is a large seafood festival in Victoria, BC, run by a small team carrying finance, kitchen, beverage, entertainment, sponsorship, volunteers, HR, and two websites at once. All of that used to live in scattered Google Docs, spreadsheets, email threads, and PDFs. I built them a Company Brain: one self-hosted system where a version-controlled knowledge base, a role-gated dashboard, and a fleet of Claude agents run the festival as a single nervous system, with every action written to an audit log.

The problem

Event operations are painful for a predictable reason: the information is fragmented and perishable.

No single one of these justifies buying a dedicated platform. Together they eat the team's time and put the event at risk.

What I built

The Company Brain is a self-hosted platform that fuses three things most small organisations keep separate: a structured knowledge base, a team-facing web dashboard, and a fleet of AI agents that read, write, and act on that knowledge. It runs in production on a single Linux server, behind a reverse proxy, with the whole knowledge base version-controlled in Git.

The system has four planes: reality enters, agents reason and act, knowledge is stored, and people see it.

INPUT · where reality enters Gmail labels · Google Docs & Sheets · file uploads · dashboard forms · inbound email pollers & workers INTELLIGENCE · Claude agents an admin-assistant orchestrator that decomposes each request and delegates to specialists agents read & write KNOWLEDGE · dual store Markdown (planning, git-versioned) ⇄ SQLite (live operations) · append-only audit log serves PRESENTATION · the dashboard role-gated single-page dashboard · REST API · HTTPS at brain.bccrabfest.ca
The four planes of the Company Brain

A dual knowledge store

The defining choice is how knowledge is held. The system uses two stores, each for what it is good at.

The two stay in step automatically. Every database write triggers a debounced sync that recomputes the markdown summaries, such as department budget spend, with an hourly fallback sync as a safety net. Planning stays in readable text. Operations stay fast.

Agents that do the work

The brain routes work through specialised Claude agents under a strict orchestration protocol, so the business logic lives in configuration. Every interactive request flows through one orchestrator, the admin-assistant, which snapshots the current state for easy rollback, decomposes the request, handles the administrative parts itself, and delegates technical work to the right specialist.

admin-assistant central orchestrator snapshot → act → log → notify developer Dashboard code only; never touches secrets or configs wp-developer Client websites; staging only, production forbidden project-manager Critical path and risk; milestones toward event day marketing Content, sponsors, press; authentic voice, data-driven volunteer- coordinator Recruitment and shift schedules scheduling MS 365 calendar via Graph API
One orchestrator, six specialists

A set of built-in workflows is what makes the orchestration reliable. Any status change must also update the dashboard, so the record and the display never drift. Every new paid ad, collaboration, or contest adds a row to the designer's queue. Every completed request fires a push notification. Every action appends a row to the audit log. The reliable path is the only path.

Background workers raise a specific problem: when a worker invokes the AI on its own, full orchestration would cause loops and hangs. A worker mode swaps in a stripped-down configuration that skips orchestration and handles the request directly, and a wrapper serialises invocations so concurrent runs cannot collide in Git.

How reality enters the system

Three long-running services pull the outside world in on their own schedule.

Outbound email has real safety rails. Recipients must be on an approved list, so it fails closed. Every send needs an explicit request flag, and every send is logged.

A complete audit trail

Every significant action, by any agent, appends a row to a single human-readable log: date, who did it, what changed, and the outcome. At fifteen to twenty entries on a working day, it is a complete operational history, the thing that makes compliance, debugging, and a post-event retrospective possible. AI-triggered actions are recorded a second time in the database and surfaced in the dashboard's own audit view.

The dashboard

The team works from a single role-gated dashboard that spans the whole operation: overview and critical path, run of show, communications, marketing and sponsors, kitchen and beverage, programming, dockside sales, people and HR, finance, and an AI assistant with the knowledge base and audit log. Access is controlled by role, from admin and manager down to domain roles like kitchen, marketing, and volunteer lead. Login is rate-limited, passwords are hashed, and email flows use passwordless magic links.

The Event Overview tab of the BC Crab Co. Brain dashboard, synced from the event brief Google Doc, showing festival details, leadership contacts, master documents, and ticket sales
The Event Overview tab, synced live from the Google Doc source of truth

The dashboard renders the same Google Doc the festival team already edits, so "synced from Google Doc" and "last update" sit right at the top and nobody has to wonder whether they are looking at the current version.

The Brand Hub tab of the BC Crab Co. Brain dashboard, showing the 2026 colour palette and a library of BC CrabFest anchor logo variants
Brand Hub: the festival's logos and colour palette, kept in the same system as everything else

Marketing assets live in the brain alongside the operational data, under the same access model. Anyone on the team can pull the current logo file without asking who has the latest version.

Design rationale

Where it stands

The brain runs in production for BC CrabFest 2026 on commodity infrastructure: one Linux box, a reverse proxy, SQLite, and Git. For a lean team running a complex live event, it collapses a dozen disconnected tools into one coherent, self-documenting system.

4 planes
Input, intelligence, knowledge, and presentation in one system
7 agents
One orchestrator plus six domain specialists, each with guardrails
Every action
Logged to an append-only, human-readable audit trail

The takeaway

Company Brain is a working example of an AI-native operations platform. Not a chatbot bolted onto a database, but an architecture where AI agents are first-class operators of a version-controlled knowledge base, bounded by explicit guardrails and a complete audit trail.

The festival is a hard test because the surface area is enormous and the deadline does not move. The same shape fits any lean team running a complex operation across too many disconnected tools.