Source code
Files: .js .ts .tsx .jsx .json .css .html .py .go .rs .swift .kt .java .rb .php .sh .yaml .yml .toml .sql .md .mjs (and more).
Source files render with a syntax-highlighted viewer. Cabinet picks the right language by file extension and themes it to match light or dark mode. Toggle the source view to see the file as plain text.
Live example
This folder has a real file: example-persona.yaml. Inline:
name: GTM Lead
emoji: "🎯"
role: Launch strategy
type: lead
model: claude-opus-4-7
canDispatch: true
heartbeats:
- cron: "0 9 * * 1"
label: "Monday standup"
prompt: "Open the launch room. Report what changed since Friday."
- cron: "0 17 * * 5"
label: "Friday wrap"
prompt: "Draft Monday's launch checklist."
skills:
- competitor-brief
- launch-checklist
budget:
daily:
maxCostUsd: 10
That's the same shape an agent's persona.md uses — Cabinet's own configuration is just YAML files.
More languages
// TypeScript
type Persona = {
name: string;
type: "lead" | "specialist";
heartbeats: { cron: string; prompt: string }[];
};
# Python
def fire_heartbeat(persona: Persona) -> None:
if datetime.now() >= persona.next_run:
run_agent(persona)
// Rust
fn dispatch(action: Action) -> Result<Approval, Error> {
queue.push(Approval::pending(action))
}
Why this matters in a knowledge base
A cabinet often sits next to a code repo (or contains a linked git repo). Being able to see and search the code alongside the notes that explain it means:
- An agent that documents your codebase can read both at once.
- A meeting note can
[link to](../../my-repo/src/agents/run.ts)and the link works. - A project handoff page can reference real files in the same tree.
What agents see
Agents see source files as plain text — same as any other file. @-mention a file in a task and the agent gets its full contents (subject to context limits and visibility scope).
prompt: |
@file:my-repo/src/agents/run.ts
Suggest a refactor that extracts the retry logic into a helper.
For repository-level reasoning, use a linked git repo — the agent gets commit history and branch context as well.
Read on
- Linked content —
.repo.yamland symlinks. - Markdown editor — code blocks inline in pages.
1 item