An autonomous coding agent with unlimited fractal memory and hash-anchored editing — built on Google's ADK v2, in Go.
Golem runs in your terminal (TUI or plain readline) and in a browser (realtime Web UI), reads and writes your code, runs shell commands, and keeps working across sessions without forgetting what came before.
Most agents hit a wall in two places: their context window fills up, and their file edits land on the wrong line. Golem is built around solving exactly those two problems.
Golem doesn't truncate or "forget" old conversation. It compresses it into a binary tree of summaries that can be expanded back toward the original text on demand.
- Every message is an append-only event with a stable id.
- Events are folded into a binary summary tree: level 0 covers one message, level 1 covers two, level 2 covers four, and so on.
- A node is addressed as
id+n— the starting message id and the number of messages it spans (e.g.2184+8covers messages 2184–2191). - The agent's context always contains a budgeted view of the tree, plus the most recent messages verbatim in a live head.
- When the model needs detail, it calls
zoom(id, n)to unpack a node into its two children — drilling down one level at a time.zoom(id, 1)returns the exact original message, verbatim.
<chat>
2048+4|user: let's wire the scanner to the UI; tool: shell go build ./...; echo: ok; talk: build is clean, adding the endpoint next
2052+4|(not summarized yet: zoom it)
</chat>
This means the agent can keep working with a small, cheap context window while retaining the ability to recover any past detail. There is no hard ceiling on how far back it can reach.
A few details that matter:
- Nodes are capped at 512 bytes. To keep summaries physically honest, the compactor hands the model a real 512-byte calibration line so it has a concrete sense of "how big is 512 bytes" — models can't count bytes, so this grounds the budget.
- The live head is verbatim. Recent turns are never lossy.
- Summaries are produced in the background by a dedicated compactor, optionally on its own model/provider (
--compactor-model,--compactor-provider) so compression never competes with your main model. remember(text, scope)promotes an important fact — a preference, a convention, an architectural decision — into durable profile memory so it survives across sessions.- Failures are never silently dropped. A memory write or a background compaction pass that fails is logged, counted, and shown in the TUI header (
⚠ memory 2) instead of leaving the view quietly stuck at(not summarized yet). - Mounted memories. A session can mount additional read-only fractal stores (e.g. a
workprofile or a shared reference corpus) alongside its primary workspace memory;zoomanddateaccept an optionaltargetto read them.
Storage is a single embedded bbolt file (fractal.db), append-only and local-first. Legacy events.jsonl / tree.jsonl stores are migrated automatically on open.
The classic agent failure is the stale edit: the model reads a file, the file shifts, and the patch lands on the wrong lines — or the model simply hallucinates a line number.
Hashline fixes this by making every line addressable by its content, not just its position.
-
hashline_readreturns the file with stable anchors:42:a3means line 42, whose trimmed content hashes toa3(2-char xxHash). -
hashline_find_blocklocates the enclosing syntactic block — function, struct, if/for — around an anchor. It understands brace languages (Go, Rust, JS/TS, Java, C/C++, C#, Kotlin, Swift, Scala, Dart, Zig, Objective-C), Python-style indentation, and Ruby blocks, and it ignores braces inside strings and comments. -
hashline_patchapplies an edit bound to a verified anchor. Supported ops:Op Meaning SWAP/DELreplace / delete a single anchored line INS.PRE/INS.POSTinsert before / after an anchored line SWAP.BLK/DEL.BLKreplace / delete a whole syntactic block INS.BLK.PRE/INS.BLK.POSTinsert before / after a block
Anchors can be a single line (42:a3), a range (42:a3..45:f1), or a block anchor. If the content changed since the read, the patch is rejected as stale instead of being applied to the wrong place. That turns "the agent edited the wrong line" from a routine annoyance into a near-impossible one.
read_file, write_file, and replace_regex are still available for cases where a plain operation is the right tool — but for careful edits, the hashline path is the safe default.
Golem supports both quick one-shot delegation (invoke_subagent) and persistent, reactive multi-agent teams on a shared in-memory swarm bus (pkg/swarm + pkg/subagent):
Persistent async workers & lifecycle
swarm_spawnlaunches one or more named background workers (name,role,model,brief) — supporting single workers,counthomogeneous copies (<name>-1..n), or shardedtasks(<name>-1..k). Workers stay alive in awaitingstate between turns, wake reactively when messaged, preserve multi-turn session history (with automatic session rotation), and guard against peer ping-pong storms with a consecutive peer-turn circuit breaker.fork_fromseeds a new worker from"orchestrator"(bounded memory snapshot) or another worker's transcript (<forked_context>).swarm_status,swarm_wait, andswarm_killinspect the roster (working/waiting/killed, turns, tool calls, unread inbox, workspace backend), block until workers settle, or permanently terminate workers (releasing their advisory locks and cleaning up isolated workspaces).
Lightweight workspace isolation (workspace: "isolated" / "share")
- By default (
"inherit"), workers share the host workspace and coordinate edits with enforced advisory file locks. - Passing
workspace: "isolated"gives each worker its own copy-on-write workspace (pkg/workspace), automatically picking the lightest backend available:bwrap(Linux OverlayFS) — zero-copy mount viabubblewrap+nsenter(~10 ms startup, works on ext4, host repo mounted read-only, full Landlocksandbox.mode: "isolation"preserved inside the overlay).- CoW reflink copy — zero-copy clone (
cp --reflink=always/cp -cR) on Btrfs, XFS, or APFS. git worktree— detached worktree fallback when neither overlay nor reflinks are available.
Messaging & advisory locks
send_messagedelivers point-to-point mail to a peer's mailbox (wakingwaitingworkers reactively; undeliverable mail to offline agents is parked in a bounded dead-letter queue and reported back to the sender).broadcast_messagepublishes to a topic channel (e.g.discoveries,warnings) and fans out to every live agent's mailbox.check_inboxdrains your mailbox; the orchestrator also sees a lightweight "N unread swarm messages" nudge.claim_resource/release_resource/list_lockstake advisory locks on files or shared resources — enforced inBeforeToolCallbacksbeforewrite_file,replace_regex, orhashline_patchrun, auto-released on worker exit, and streamed live to the cockpit.
The Web UI cockpit renders the live agent hierarchy, workflow DAGs, swarm message traffic, and active advisory locks in real time.
A subagent is one context you delegate to. A graph is a whole procedure you delegate to: several agents with their own contexts and tools, wired into a DAG, run to completion by one tool call. The orchestrator only ever sees the sink node's output — so five researchers can each read fifty files and the main conversation stays exactly as small as one merged answer.
The graph is data, not Go code. The agent writes a JSON spec, validates it, saves it, and runs it; pkg/graph turns the spec into a workflow.Workflow on the ADK engine (AgentNode, JoinNode, ToolNode, fan-out edges, WithMaxConcurrency). FunctionNode and DynamicNode need closures, so they are rejected at validate time — that restriction is the safety story rather than a missing feature.
Tools
| tool | what it does |
|---|---|
graph_list |
what saved graphs exist (name, node count, one-line purpose) |
graph_show |
a saved graph's spec, to adapt rather than rewrite |
graph_validate |
check a spec, returning every problem at once |
graph_save |
validate + write .golem/graphs/<name>.json (workspace-scoped, so a procedure is reviewable and committable like code) |
graph_run |
run by name or inline spec, with a seed input; returns the sink's output plus a per-node digest (tokens, duration, error), or the pause and its run_id |
graph_stat |
the workspace's runs, newest first — status, cost, and what a waiting run is waiting for (one run in full detail when given a run_id) |
graph_resume |
answer a paused run: approve=true|false for a tool confirmation, answer=... for a question; the run continues where it stopped |
graph_delete |
remove a saved graph (a built-in can be shadowed, not deleted) |
Two built-in procedures ship with the binary, so the cases that pay for a graph need no spec at all:
| name | shape | use it for |
|---|---|---|
adversarial-review |
three critics fan out (correctness; failure modes and hostile inputs; claim-vs-requirement, including what you already ruled) → join → one Verdict: merging and ranking what they found |
anything about to ship: a diff, a plan, a design, a claim |
research-fanout |
three researchers fan out (the code as it is; outside docs, changelog and prior art with URLs; what the user already decided, from memory) → join → a verifier that re-checks every claim against its source → one decision-ready brief | "how should we do X", where a confident guess is the failure mode |
graph_run {"name": "adversarial-review", "input": "review the diff in pkg/graph/store.go"} is the whole call. The seeds are JSON embedded in the binary (pkg/graph/seeds/), so they improve when golem does and nothing has to be written into your workspace; graph_show returns the spec to adapt, and saving a graph under a seed's name shadows it for that workspace (deleting the saved copy restores the built-in). The verifier step is the point of research-fanout: three researchers agree, one of them is wrong, and a brief built from unverified claims is worse than no brief.
Spec
{
"v": 1,
"name": "review-plan",
"description": "draft a plan, attack it from three angles, fold the critique back in",
"max_concurrency": 3,
"budgets": { "max_nodes": 8, "max_wall_seconds": 300, "max_tokens": 200000 },
"nodes": [
{ "id": "draft", "kind": "agent", "role": "general", "instruction": "Write the plan ..." },
{ "id": "risk", "kind": "agent", "role": "critic", "instruction": "Attack it for unhandled failure modes ..." },
{ "id": "scope", "kind": "agent", "role": "critic", "instruction": "Attack it for scope creep and cost ..." },
{ "id": "merge", "kind": "join" },
{ "id": "revise", "kind": "agent", "role": "general", "instruction": "Fold every blocking finding in ..." }
],
"edges": [
["START", "draft"], ["START", "risk"], ["START", "scope"],
["draft", "merge"], ["risk", "merge"], ["scope", "merge"],
["merge", "revise"]
]
}- Kinds:
agent(its own context;rolepicks the prompt and default tools —researcherandcriticare read-only,codermay edit and run,generalis the default;toolsis one word:read(default),writeornone),tool(one registered tool with pinned args — a deterministic step like "read this file"),join(fan-in barrier; its output is the predecessors' results as labelled sections). - Edges: several edges out of one node fan out (all fire, each gets the same input); several edges into a
joinmerge; exactly one node may have no outgoing edge, and that node is the result. Every node wired fromSTARTreceives thegraph_runinput, so instructions are standing briefs for a slice of work, not restatements of the task. - Roles get prompts, not just labels. A
criticis told to find what is wrong, to name a location and a consequence for every finding, to rank by severity, and not to invent a defect to look useful. Aresearchermust ground each claim in a path, line, symbol or quote and say what it did not cover. - Budgets are mandatory and enforced:
max_nodesand shape at validate time; wall clock, token ceiling and concurrency at run time. The token ceiling is shared by every node — a fan-out cannot multiply it. A run that overruns its wall clock is cancelled mid-flight and reports which node was executing. - The skill ships with the tools. The system prompt explains when a graph beats
invoke_subagent(several independent angles, adversarial review, a pipeline you will reuse), the spec grammar, the two shapes that pay for themselves, and the cost model — and it names the two built-in procedures, so the agent checks the catalog before authoring a spec. Every turn's prompt carries that catalog — saved graphs re-read from disk, so a procedure saved mid-session is known in the same session, and the built-ins marked as such.
Inside a run each node reports start/finish to the transport, so a fan-out shows up as live rows in the TUI and the cockpit instead of a tool call that looks hung.
A graph runs on its own ADK runner and session, which is what lets a node agent's tool loop work: the flow rebuilds every model request from session history, so a node driven without a runner re-calls the same tool forever.
A run is durable. Its record and its session events live in
.golem/graphs/runs/<run-id>/, so a run outlives the tool call that started it — and the process. A run that pauses can be answered later, in another turn, after a restart:graph_resumerebuilds the engine state from the run's own session, replays the answer into it, and re-runs only the parked node and what follows it, keeping what already finished.Graphs run unattended, so nodes get the same policy treatment as subagents: a call the sandbox would ask you to confirm pauses the run instead of asking mid-node. The pause is a question, not a failure —
graph_runreturnsPAUSEDwith therun_id, the node, and the exact call (gated_write({"path": "notes.txt"})), and the answer goes through the same gate the main turn uses: approved, the call runs and the node finishes; refused, the model gets a tool error it can route around. Read-only work still belongs in the nodes; a gated call is worth approving when the node has done the thinking and only the write is left.Runs are pruned to the twenty most recent, so the workspace does not fill with transcripts; a waiting run is never pruned.
Agent loop
- Built on Google ADK v2 with Gemini as the default model.
- Streaming responses, tool-call streaming, retry with backoff on
503/429. - A compact system prompt that teaches the model its own memory and editing primitives.
Subagents & delegation
invoke_subagentspawns isolated subagents with their own context windows, so exploration and heavy work don't bloat the main conversation.- Archetypes:
researcher(read-only),coder(read + write + shell),general. - Subagents share the same fractal memory and can
zoom/date/remembertoo. - Optionally run a subagent on a specific model (e.g. a cheaper or stronger one).
- For more than one worker — parallel angles, adversarial review, a reusable pipeline — use a graph instead: each node is its own context and only the merged result comes back.
Search & shell
find_filesandgrep_files— a fast pure-Go file index and SIMD/regex content search.shell— run commands, capture stdout/stderr and exit code.
Sandbox
- Every tool that can touch the host —
shell, the file tools,hashline_patch,web_fetchandweb_search— asks one policy layer first (pkg/sandbox), so there is exactly one place to reason about what the agent may do. - The default mode is
policy: dangerous shell shapes are refused with a tool error the model can route around (rm -rf ~,git checkout .,git reset --hard,git clean -fdx,sudo,curl … | sh,mkfs,dd of=/dev/…,chmod 777 /,shutdown/reboot), and writes are confined to the workspace, withallow_writeadding directories.git push --forceandgit branch -Dcome back as confirm rather than deny. - Approval (
require_confirm): list a tool there (require_confirm: ["shell"]) and every call to it stops for a human, whatever the command looks like. The prompt shows the exact command line or patch being approved, never a summary, plus the policy's reason. The turn pauses on the ADK Human-in-the-Loop flow (adk_request_confirmation); yes runs the call and the model carries on, no returns a tool error the model can route around. Each transport renders it its own way: a TUI modal (yrun it,n/Escrefuse), an amber banner with Run it/Refuse in the web cockpit (the pending prompt survives a reconnect, because the server can hand it out again), and aRun it? [y/N]line in readline mode. Subagents run their tool set unattended: they never prompt, and a call that would need approval is refused instead — a delegate cannot approve on your behalf. sandbox.mode: "isolation"enforces the same intent with the kernel instead of with a string check. Shell commands run under Landlock, which golem applies to itself and which survivesexec, so the command sees only the workspace, the toolchain and the system trees, cannot write outside them, and cannot reach the network unlessnetworkis"host". It needs no root, no user namespaces, nobwrap/nsjailand no daemon:pkg/sandboxre-executes the golem binary as the confinement shim, so the whole sandbox is inside the binary you built. Where the kernel has Landlock ABI 6 or newer the command also cannot signal anything outside the sandbox, so a prompt-injected model cannot kill the agent that spawned it. The banner prints the ABI and what it enforces, and a kernel without Landlock is a startup error rather than a silent downgrade to policy.allow_writeadds writable directories andread_onlyadds readable ones. The defaults are/usr,/bin,/sbin,/lib*,/etc,/opt,/usr/localand$GOROOTreadable; the workspace,/tmp,/dev/null,$GOPATH,$GOCACHEand the usual build caches writable.$HOMEand/procare deliberately not granted —/procwould hand the command the agent's own environment.sandbox.mode: "off"restores the pre-sandbox behaviour exactly (nothing is checked).allow_netoptionally pins the hostsweb_fetch/web_searchmay reach.- The startup banner prints the effective mode, so a profile that accidentally says
offis visible before the first tool call. - MCP tools run in another process, so the policy cannot see inside them: in
policy/isolationmode every MCP tool call is a question, unless the profile lists it insandbox.mcp_allow. Subagents get only the allowlisted ones — a delegate has nobody to ask, so the same rule becomes a filter rather than a prompt. - Audit log: every decision the policy takes — allow, deny and confirm, plus your answer to a prompt — is recorded with the exact command, the rule that fired and whether anyone was there to ask. The last 500 stay in memory (
/auditin the TUI,GET /api/sandbox/auditin the cockpit) and each one is appended to<memory-dir>/sandbox-audit.jsonl(mode 0600) so the trail survives a restart.sandbox.auditsets the path, or"off"keeps it in memory only. Allowed calls are in the log too: "what did it do" is only answerable if the permitted calls are there.
Interfaces
- TUI (Bubble Tea): streaming chat, collapsible tool-call cards (
Ctrl+O), memory-tree explorer (Ctrl+T), shortcuts popup (Ctrl+K), MCP panel, profile switcher, slash commands with a live completion popup (/thenTab,↑/↓,Enter). Colours come from your terminal's own palette by default (-theme nordfor the bundled palette), the wheel scroll rate is rate-limited so free-spinning mice stay readable, and the conversation opens on the newest output (Endjumps there,Hometo the top,PgUp/PgDnpage).Ctrl+Ghands the mouse to tmux/your terminal for copy-mode and native selection; golem keeps the wheel for its own scrolling even inside tmux, because a full-screen app leaves the pane no scrollback for copy-mode to reveal. The prompt starts as a single line and grows as you add to it (up to a third of the pane, then it scrolls its own draft) —Entersends,Alt+EnterorCtrl+Jstarts a new line. - Images in the TUI:
Ctrl+Vgrabs a clipboard image — golem reads the clipboard itself (Waylandwl-paste, X11xclip, macOSpngpaste), so tmux/terminal paste bindings don't matter — and dropping or typing an image path (/tmp/shot.png) attaches that file instead.Ctrl+Xclears the queue. Attached images ride along with that turn as inline data for vision models; the transcript keeps the text chip ([img 1: shot.png 1440x900 212KB]) and the bytes are copied to<memory-dir>/attachments/, because fractal memory is a text log. The model is asked to say what it took from each image, so the picture stays recoverable from the text transcript after a restart. - Readline CLI for piping and non-interactive use.
- Web UI cockpit (
-serve/-web): parallel session tabs over WebSocket, swarm hierarchy view, and a fractal memory explorer. The SvelteKit SPA is embedded into the Go binary. - Web auth:
/api/*and/wsrequire a bearer token (generated on first run, stored inconfig.json, overridable with-token). The SPA shell stays open so it can ask for the token, which it exchanges for an HttpOnly cookie — a browser cannot attach headers to a WebSocket handshake. The server binds127.0.0.1by default; widening it is an explicit-host.
Slash commands (TUI)
- Type
/and the command palette opens above the prompt as you type:Tabcompletes the highlighted command,↑/↓move the highlight,Entertakes it,Escdismisses. Once the command is complete (or arguments start)Enterruns it. /modelopens a model picker with the provider's own model list (OpenAI-compatible providers are asked for/models; Gemini is asked forgenerativelanguage.googleapis.com). The list is fetched live, falls back to a bundled shortlist when the provider is unreachable (the modal says which), marks the current model, and switches onEnter— no restart, same provider, credentials and memory mounts.↑/↓(orj/k) choose,PgUp/PgDnpage,Esc/qcloses./model <name>skips the picker and switches straight to a named model after checking the name against the provider's list: an exact match wins, a unique prefix is accepted (/model deepseek-v4.1-f), and anything else is refused with the closest real names (Did you mean: …) instead of leaving you on a model that fails mid-conversation. When the provider cannot be reached the name cannot be verified, so the switch still happens and says so./profile [name]inspects profiles, or switches profile — and with it provider, model, memory dir and compactor settings./remember,/tree,/memory(toggle Fractal Memory vs Classic Buffer mode),/zoom <id> <n>,/compact,/clear,/tools,/mcp,/shortcuts,/help,/exit.
Models & providers
- Gemini (default), plus any OpenAI-compatible endpoint: OpenCode Go, OpenAI, OpenRouter, or a local server via
--base-url. - Switch model at runtime from the
/modelpicker (or with/model <name>/-model <name>at startup); switch provider + model + memory together with a profile. - Dedicated provider/model for the background compactor.
MCP
- Loads MCP servers from
.golem/mcp.json(workspace) or~/.golem/mcp.json(user), supporting local stdio and remote HTTP/SSE servers; their tools are exposed to the agent and its subagents. - Can also run as a stdio Fractal Memory MCP server (
golem-cli mcp-memory/-mcp-memory) and install its Antigravity (agy) plugin & lifecycle hooks (golem-cli install-agy-plugin).
Profiles
- Named profiles (
work,personal, …) each with their own provider, model, memory directory, mounted memories, and compactor settings. Switch per-session or at startup.
Import past sessions
--import pick|latest|<path|id>brings history from Antigravity JSONL transcripts and Cursor composer data into fractal memory, so the agent starts with your prior context.
Requires Go 1.26+.
git clone git@github.com:phildrip/golem.git
cd golem
go build -o bin/golem ./cmd/golem-cli# Set a Gemini key (or configure a provider via config file)
export GEMINI_API_KEY=...
# Interactive TUI
./bin/golem
# Plain readline (no TUI)
./bin/golem -no-tui
# Web UI cockpit (loopback only, token auth on)
./bin/golem -serve -port 8080
# Reachable from your phone over tailscale, still only on the tailnet
./bin/golem -serve -host $(tailscale ip -4)Then just talk to it. Ask it to read a file, change some code, run the tests.
Config is JSON, merged from lowest to highest priority:
- Built-in defaults
~/.golem/config.json(user) — or$GOLEM_CONFIG_DIR.golem/config.json(workspace)- Command-line flags
Example ~/.golem/config.json:
{
"active_profile": "personal",
"profiles": {
"personal": {
"provider": "gemini",
"model": "gemini-flash-latest",
"memory_dir": "/home/me/.golem/profiles/personal/memory",
"mounted_memories": [
{ "name": "notes", "path": "/home/me/notes/memory", "read_only": true }
],
"compactor": {
"provider": "opencode",
"model": "deepseek-chat"
},
"sandbox": {
"mode": "isolation",
"network": "none",
"allow_write": ["~/scratch"],
"read_only": ["/srv/datasets"],
"allow_net": ["example.com"],
"require_confirm": ["shell"],
"mcp_allow": ["read_notes"],
"audit": "~/golem-audit.jsonl"
}
}
},
"server": {
"host": "127.0.0.1",
"port": 8080,
"token": "generated-on-first-serve-run",
"allow_origins": ["https://golem.tailnet.ts.net"]
}
}sandbox.mode defaults to policy when the block is absent (see Sandbox above for what that denies) and sandbox.network defaults to none, because a model that can reach the network can exfiltrate whatever it can read. server.token is written automatically the first time you run -serve; delete it to get a fresh one (every authorised device will have to paste it again). allow_origins is only needed when a reverse proxy rewrites the Host header — tailscale serve does not.
| Flag | Purpose |
|---|---|
-profile <name> |
Use a named profile |
-provider <gemini|opencode|openai|openrouter> |
Select the model provider |
-model <name> |
Override the model (in the TUI, /model picks from the provider list and switches live) |
-base-url <url> |
Custom OpenAI-compatible endpoint |
-api-key <key> |
Provider API key |
-memory-dir <dir> |
Where the fractal store lives |
-config <path> |
Explicit config file |
-compactor-model / -compactor-provider |
Dedicated background compaction model |
-import pick|latest|<id> |
Import past session history |
-no-tui / -tui |
Force plain CLI / force TUI |
-serve / -web / -port <n> |
Web UI cockpit (default port 8080) |
-host <iface> |
Interface the web server binds (default 127.0.0.1; use your tailscale IP or 0.0.0.0 to reach it from a phone) |
-token <tok> |
Web auth token (default: generated once and stored in config.json) |
-no-web-auth |
Disable web auth entirely — only safe when bound to loopback |
-no-mouse |
Start with in-TUI mouse capture off (restores native terminal/tmux text selection; toggle at runtime with Ctrl+G) |
-mouse |
Explicitly keep in-TUI mouse capture on, including inside tmux/screen (this is already the default; scroll keys always work regardless) |
-theme terminal|nord |
TUI palette: terminal (default, inherits your terminal's colours and light/dark mode) or nord (bundled, adaptive). Also readable from $GOLEM_THEME |
cmd/golem-cli CLI entrypoint, flag parsing, TUI/readline/web, MCP memory server & AGY plugin
pkg/golem agent orchestration, system prompt, tool wiring, memory injection
pkg/memory/fractal append-only event store, binary summary tree, view, compactor,
zoom/date/remember tools, multi-store mounting
pkg/tools shell, file editor, gg search, hashline (read/find_block/patch)
pkg/sandbox policy engine, Landlock kernel isolation, proc-root symlink containment
pkg/workspace isolated copy-on-write worker workspaces (bwrap OverlayFS -> CoW -> git worktree)
pkg/subagent subagent runner, persistent async WorkerManager, swarm_spawn/status/wait/kill
pkg/swarm message bus, reactive mailboxes, advisory resource locks
pkg/graph declarative durable ADK workflow DAGs, pause/resume, built-in seeds
pkg/runtime durable multi-session manager and event bridge
pkg/provider OpenAI-compatible LLM transport
pkg/mcp MCP client/manager/toolsets + Fractal Memory stdio MCP server
pkg/importer Antigravity + Cursor history import & AGY lifecycle hooks/plugin
pkg/config config file, profiles, key resolution
pkg/server WebSocket hub, REST API, embedded SPA
pkg/tui Bubble Tea interface
ui/ SvelteKit cockpit (embedded into the binary at build time)
Requires Go 1.26+ and (for the web UI) Node.
go build ./... # compile everything
go test ./... # full test suite
go test -race ./pkg/golem/... ./pkg/swarm/... ./pkg/memory/... # concurrency paths
cd ui && npm install && npm run build # rebuild the embedded SPA (copied to pkg/server/ui_dist)Work is tracked with beads (bd), not markdown TODO lists:
bd ready # unblocked work
bd show <id> # details
bd create "..." # file a bead
bd close <id> # doneGolem is under active development. The memory tree, hashline editor, and agent loop are stable and tested (all packages green, race-clean on the concurrency-heavy paths). Interfaces and config keys may still shift.
Not yet specified.