Most of what I use day to day has an Emacs surface I wrote: the homelab's
project fleet and its agent loops, a practice dojo for timed problems, model
checkers and proof assistants. Each one lives in its own repository. This
config is the layer that binds them, and it has one rule: everything I wrote
sits under SPC k, and Doom's own keys stay Doom's.
The frame below is a simulation. It takes real keystrokes and draws real which-key and transient menus, and the keys, labels and commands are the config's. The output is example output written by hand. Nothing calls a network or a process.
| Chord | What it does | Wired through |
|---|---|---|
| The doorOne prefix that means “mine”, so finding a key is looking rather than remembering. | ||
(prefix map) | Everything I wrote, under one prefix. which-key shows the whole map the moment I press it, and Doom's own SPC m stays Doom's. | One map! block. At startup a guardrail checks that every key under it is a live command, and names any dead ones before a keypress has to. |
| FleetProject Cockpit: verbs over the homelab's forge, CI, deploys and agent loops. | ||
cockpit-transient | Opens the cockpit on wherever point is: one sentence naming the repo, branch, project and loop, then the verbs. | A transient over the bin/cockpit CLI. The header is pure formatting over cached context and never makes a network call. |
cockpit-now | Everything across the fleet that is waiting on me, in one list. | Fans out to every agent API instance and an ssh pane scraper per loop, merged on tmux session name. An instance that does not answer is a row saying so, not a silence. |
cockpit-capture | Turns one line, typed from any buffer, into an intent on this project's backlog. | Posts to the project-management API. A forge issue is only the fallback, behind a prefix argument. |
cockpit-doctor | Preflights the whole surface: helper binaries, config, paths, Keychain entries, the forge, and each API's spec against what is deployed. | Runs the CLI's doctor asynchronously. A report rather than a gate: it exits 0 even when red, every red row names its fix, and a Keychain entry is checked for presence without reading it. |
cockpit-workbench | Lays out two panes: the agent loop's live state on the left, a Claude Code session on the right. | SSH to the execution box plus the agent API; reads fall back to SSH and say so. Display rules keep every cockpit buffer in one pane, so the layout holds its shape. |
cockpit-pr-guard | Says whether this branch still has an open pull request, was already merged, or was never pushed, before I push to it. | Local git for the repo and branch, then at most three forge requests. When the forge can't be asked the verdict is “unknown”, never a guess. |
| PracticeThe dojo: timed attempts against its own API, and my probe tests beside the code. | ||
dojo-transient | The menu for the attempt in this tab. A verb shows only when the attempt's state allows it. | A transient over the dojo's HTTP API, which is the source of truth: opening an attempt reconciles with it. |
dojo-check | Runs the problem's own test suite for this level against my solution, and records the result on the attempt. | pytest on the mirrored package, then the result goes to the attempt over HTTP. |
dojo-brief | Brings the problem statement back beside the code. | A side window registered by role, so ESC, q, or Claude opening a session can't take it off the frame in the middle of a timed attempt. |
dojo-scratch-run | Runs my own probe tests from either buffer. The headline lands in the echo area and point never moves. | A pytest file beside the attempt's mirror. The project root is set buffer-locally, because a mirror directory isn't a project and pytest would otherwise find no root. |
codecrafters-menu | Test, submit or read the current stage of a CodeCrafters challenge. Each challenge gets a tab: code left, one panel right. | A transient over the codecrafters CLI, loaded on the first press. |
| SemanticsOne question per key, answered in whatever shape the language's own toolchain gives. | ||
statespace-show | Shows what this buffer denotes, beside it: the state graph for TLA+, the search graph for Maude, the e-graph for egglog, the proof goal for Lean, the model for SMT-LIB. Try it in the TLA+ and Lean tabs. | One key that dispatches on the file's extension. Batch toolchains emit a DOT graph; Lean's goal streams live from its language server. Over 200 nodes it refuses to draw and shows the graph's size instead. |
+workbench/run-buffer | Runs or checks the buffer, whatever that means for its language: TLC for TLA+, egglog, Maude. | One dispatch on the major mode, so “run this” is one key rather than three per-mode bindings. TLC's error regexps make each line of a counterexample trace jump to the source. |
| AgentsClaude Code inside the frame, beside the code it is working on. | ||
claude-code-ide-continue | Continues this project's Claude Code session in a column right of the code, in the tab I'm already in. | A display rule registered where Doom's popup rebuild keeps it. Over MCP, Claude reads buffers, xref, tree-sitter and diagnostics, and proposed edits arrive as ediff. |
| ProseMarkdown read as a document rather than as markup. | ||
+markdown/read | Reads a markdown file rendered: headings at their sizes, markup and URLs hidden. Try it in the notes.md tab. | markdown-mode settings that need customize-set-variable and setq-default. A plain setq leaves the faces unstyled and reports no error. |
writeroom-mode | Centres the text on a narrow measure and drops the chrome. In markdown it switches to proportional type too. | Doom's :ui zen module, which already brings mixed-pitch-mode along in markdown, so the key is writeroom-mode itself rather than a wrapper. |
| FrameTabs and windows, on the keys my fingers already had. | ||
+tabs/switch | Lists every tab with the buffers it shows, and goes to the one picked. | Tabs are the one layout system: every dojo attempt and every CodeCrafters challenge gets one. A tab with no chord to reach it is a tab you lose, so every tab verb has one. |
tab-next | Next tab from normal state; g T goes back. | Vim's tab chords, rebound from Doom's workspaces to the tab bar, since tabs are what the frame actually has. |
evil-window-vsplit | Splits side by side; SPC w - splits top to bottom. | Spacemacs' pictographic keys on Doom's window map: / leans like the divider between two columns. One definition also lights up C-w /, and Doom's v and s keep working. |
One question, one key
The layer is organised by the question being asked, not by which tool answers
it. SPC k g asks what a buffer denotes. In TLA+ the answer is TLC's state
graph, in Lean the live proof goal, in Maude the search graph, in egglog the
e-graph. One command dispatches on the file's extension, so the key stays the
same and only the answer's shape changes.
The same rule runs through the rest of it. SPC k r runs whatever "run" means
for the buffer's language. The cockpit opens on verbs (now, answer, capture,
decide) and keeps the older backend-shaped menu one key down, under ..
Failing where you can see it
Most of the code is about failures you would otherwise not see:
- Every key under
SPC kis checked at startup. After a reorganisation moved two checkouts, six keys across three surfaces stopped working at once, and nothing reported it until one of them was pressed. Now startup names every dead key and its command. - Errors come back in the surface's own words, never as a raw process dump.
The semantic pane talks to four toolchains with four ways of failing, and it
reports all of them as
statespace: show failed — <reason>. - The state-graph pane won't draw past 200 nodes. Tic-tac-toe has 5,478 states, and a picture at that size tells you nothing. The pane shows the graph's size instead and suggests projecting it first.