Skip to content

Database tables for agents

This page lists the columns of agents, agent_managers, agent_hooks, skills, plugins, routines and memories. Database tables says how to read the columns.

A named teammate. home_instance_id is the machine its sessions run on. visibility is owner or team. An archived agent has archived_at set, and its name is free for a new agent. Every row that names it stays.

Column Type Notes
id uuid key
team_id uuid references teams
name text
title text optional
role text optional
avatar jsonb optional
voice jsonb optional
instructions text default ''
harness text default 'claude'; one of claude, codex
model text optional
effort text optional
home_instance_id uuid optional; references instances
owner_id uuid optional; references people
visibility text default 'owner'; one of owner, team
published_at timestamptz optional
archived_at timestamptz optional
created_at timestamptz default now()
copied_from_agent_id uuid optional; references agents
accepts_agents text default 'owner'; one of owner, team
made_by_session uuid optional; references sessions
made_by_ask uuid optional; unique; references asks

Unique (team_id, name) where (archived_at IS NULL).

Pairs an agent with a person who manages it. No code in the server reads or writes this table.

Column Type Notes
agent_id uuid references agents
person_id uuid references people

Primary key (agent_id, person_id).

The Claude Code hooks an agent’s setup names. The daemon writes them to the session’s settings file.

Column Type Notes
id uuid key
agent_id uuid references agents
name text
event text one of SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop, SubagentStop
matcher text optional
command text
timeout_sec integer optional
created_at timestamptz default now()

Unique (agent_id, name). Check ((command <> '') AND (length(command) <= 2000)). Check ((matcher IS NULL) OR ((event = ANY (ARRAY['PreToolUse', 'PostToolUse'])) AND (matcher <> '') AND (length(matcher) <= 200))). Check ((timeout_sec IS NULL) OR ((timeout_sec >= 1) AND (timeout_sec <= 600))). Check (name ~ '^[a-z][a-z0-9-]{0,39}$').

A skill of an agent, written to the session folder as a Claude Code skill file.

Column Type Notes
id uuid key
team_id uuid references teams
agent_id uuid optional; references agents
name text
description text default ''
content text
created_at timestamptz default now()
updated_at timestamptz default now()

A plugin of an agent. A plugin becomes an MCP server in the session’s config. kind is stdio or http, and config names the secrets it needs.

Column Type Notes
id uuid key
agent_id uuid references agents
name text
kind text one of stdio, http
config jsonb
created_at timestamptz default now()

Unique (agent_id, name).

A prompt an agent runs on a trigger. A routine can also be run by hand.

Column Type Notes
id uuid key
agent_id uuid references agents
name text
prompt text
trigger text one of cron, webhook, github, linear, slack, email
trigger_config jsonb default '{}'
enabled boolean default true
last_fired_at timestamptz optional
created_at timestamptz default now()

An agent’s memory of a person or of the team. A profile is one row. A log has one row for each date.

Column Type Notes
id uuid key
team_id uuid references teams
agent_id uuid references agents
scope text one of person, team
person_id uuid optional; references people
kind text one of profile, log
log_date date optional
content text default ''
created_at timestamptz default now()
updated_at timestamptz default now()

Unique (agent_id, scope, person_id) NULLS NOT DISTINCT WHERE (kind = 'profile'::text). Check ((kind = 'log') = (log_date IS NOT NULL)). Check ((scope = 'person') = (person_id IS NOT NULL)).