Directories
¶
| Path | Synopsis |
|---|---|
|
Package agentcore defines the core "leaf" data types and control flow for the golder agent harness, a Go reimplementation of the pi agent loop.
|
Package agentcore defines the core "leaf" data types and control flow for the golder agent harness, a Go reimplementation of the pi agent loop. |
|
This file implements the apply_patch tool: one call carries a whole patch (add / update / move / delete, any number of files) in the codex apply_patch format.
|
This file implements the apply_patch tool: one call carries a whole patch (add / update / move / delete, any number of files) in the codex apply_patch format. |
|
Package androidagent assembles the experimental in-process Android tool set.
|
Package androidagent assembles the experimental in-process Android tool set. |
|
Package androiduse implements the Go side of the Phase 1 AndroidUse capability: a typed tool over a local, app-private Unix socket provided by the Kotlin AccessibilityService host.
|
Package androiduse implements the Go side of the Phase 1 AndroidUse capability: a typed tool over a local, app-private Unix socket provided by the Kotlin AccessibilityService host. |
|
Package browserbinding owns a conversation's browser selection.
|
Package browserbinding owns a conversation's browser selection. |
|
Package browsercontinuation owns local, person-originated browser decisions.
|
Package browsercontinuation owns local, person-originated browser decisions. |
|
continuationtest
Package continuationtest supplies a credential-free protocol fixture for frontend tests.
|
Package continuationtest supplies a credential-free protocol fixture for frontend tests. |
|
Package browserctl talks to a running browser over its owner-only Unix-domain control socket.
|
Package browserctl talks to a running browser over its owner-only Unix-domain control socket. |
|
Package browserpool assembles the trusted per-profile browser broker.
|
Package browserpool assembles the trusted per-profile browser broker. |
|
Package browserstartup carries bounded startup diagnostics between a browser pane and its launcher.
|
Package browserstartup carries bounded startup diagnostics between a browser pane and its launcher. |
|
Package cli is the contract and shared-type layer for golder's command-line surface.
|
Package cli is the contract and shared-type layer for golder's command-line surface. |
|
btw
This file implements the /btw command (mirrors Claude Code's /btw and the pi agent extension @narumitw/pi-btw): a throwaway "side thread" for asking the model a quick side question that must NOT pollute the main conversation.
|
This file implements the /btw command (mirrors Claude Code's /btw and the pi agent extension @narumitw/pi-btw): a throwaway "side thread" for asking the model a quick side question that must NOT pollute the main conversation. |
|
config
Package config implements golder's optional user config file at $GOLDER_HOME/config.toml (~/.golder/config.toml by default) plus the provider-agnostic base-url env-var name derivation.
|
Package config implements golder's optional user config file at $GOLDER_HOME/config.toml (~/.golder/config.toml by default) plus the provider-agnostic base-url env-var name derivation. |
|
dreamcmd
Package dreamcmd holds the CLI-side plumbing shared by the REPL and the TUI for the /dream memory-consolidation command: spawning the process-isolated `golder --dream` child, detecting a live consolidation lock, parsing the dry-run flag, and rendering the returned Report.
|
Package dreamcmd holds the CLI-side plumbing shared by the REPL and the TUI for the /dream memory-consolidation command: spawning the process-isolated `golder --dream` child, detecting a live consolidation lock, parsing the dry-run flag, and rendering the returned Report. |
|
extensioncmd
Package extensioncmd is the shared text command surface for the CLI, REPL and TUI.
|
Package extensioncmd is the shared text command surface for the CLI, REPL and TUI. |
|
goal
This file implements the /goal command (mirrors pi-goal / Claude Code's goal mode): given a high-level objective, golder runs the agent autonomously — re-prompting it turn after turn from the loop's follow-up seam — until the model declares the goal done (goal_complete), reports a true impasse (goal_blocked), or a safety guard (max turns / no-progress) or the token budget stops it.
|
This file implements the /goal command (mirrors pi-goal / Claude Code's goal mode): given a high-level objective, golder runs the agent autonomously — re-prompting it turn after turn from the loop's follow-up seam — until the model declares the goal done (goal_complete), reports a true impasse (goal_blocked), or a safety guard (max turns / no-progress) or the token budget stops it. |
|
headless
This file is the headless run driver: the print / stream-json run path (US-020) extracted from the CLI dispatch seam (#363).
|
This file is the headless run driver: the print / stream-json run path (US-020) extracted from the CLI dispatch seam (#363). |
|
hostcmd
Package hostcmd implements the `golder host-compat` subcommand family: what the terminal multiplexer around this process sees, and the one file that makes tuios recognise a golder pane at all.
|
Package hostcmd implements the `golder host-compat` subcommand family: what the terminal multiplexer around this process sees, and the one file that makes tuios recognise a golder pane at all. |
|
launchcfg
Package launchcfg owns the provider-facing part of launch configuration that every Golder front-end shares.
|
Package launchcfg owns the provider-facing part of launch configuration that every Golder front-end shares. |
|
memstatus
This file implements the /memory slash command (US-011, FR-20, #484) that prints a colored report describing the persistent memory store and the infinite-context state: entry counts by scope, the current context window and auto-compaction trigger point, current context usage, and checkpoint status.
|
This file implements the /memory slash command (US-011, FR-20, #484) that prints a colored report describing the persistent memory store and the infinite-context state: entry counts by scope, the current context window and auto-compaction trigger point, current context usage, and checkpoint status. |
|
prompts
Package prompts holds the slash-command registry assembly shared by the REPL (internal/cli/repl) and the forthcoming TUI (internal/cli/tui).
|
Package prompts holds the slash-command registry assembly shared by the REPL (internal/cli/repl) and the forthcoming TUI (internal/cli/tui). |
|
repl
This file implements the manual `/dream` REPL command (SPEC §4.1, US-007): it spawns the process-isolated memory-consolidation subprocess (`golder --dream [--dream-dry-run] -C <projectDir>`) and renders the returned Report as a full-table change report.
|
This file implements the manual `/dream` REPL command (SPEC §4.1, US-007): it spawns the process-isolated memory-consolidation subprocess (`golder --dream [--dream-dry-run] -C <projectDir>`) and renders the returned Report as a full-table change report. |
|
run
This file is the single assembly point for a session's tool gates: the trust gate, the workspace-boundary gate and the permission gate, composed once and installed on every run of the session — the main run, a /goal or /btw side run, and any sub-agent they dispatch.
|
This file is the single assembly point for a session's tool gates: the trust gate, the workspace-boundary gate and the permission gate, composed once and installed on every run of the session — the main run, a /goal or /btw side run, and any sub-agent they dispatch. |
|
sessioncmd
Package sessioncmd implements the `golder session` subcommand family (issue #570): sharing persisted sessions from the command line, without entering the REPL.
|
Package sessioncmd implements the `golder session` subcommand family (issue #570): sharing persisted sessions from the command line, without entering the REPL. |
|
status
This file implements the /status slash command (US-002, #292) that prints a colored multi-section status report with runtime config, context usage, and more.
|
This file implements the /status slash command (US-002, #292) that prints a colored multi-section status report with runtime config, context usage, and more. |
|
testutil
Package testutil holds test helpers shared across the internal/cli subpackages.
|
Package testutil holds test helpers shared across the internal/cli subpackages. |
|
tui
Package tui hosts the full-screen terminal UI for golder's interactive mode (US-001).
|
Package tui hosts the full-screen terminal UI for golder's interactive mode (US-001). |
|
ui
Package ui holds the leaf terminal-UI helpers shared across the cmd/golder and internal/cli subpackages: ANSI color gating (color.go), turn-end Markdown rendering (markdown.go), and prompt image-reference parsing (imageref.go).
|
Package ui holds the leaf terminal-UI helpers shared across the cmd/golder and internal/cli subpackages: ANSI color gating (color.go), turn-end Markdown rendering (markdown.go), and prompt image-reference parsing (imageref.go). |
|
workspacecmd
Package workspacecmd implements `golder workspace`: the command line that manages global named terminal sessions, each with an independent daemon.
|
Package workspacecmd implements `golder workspace`: the command line that manages global named terminal sessions, each with an independent daemon. |
|
This file (US-003) ties the compaction pieces together: given a message list and settings, it finds the cut point, extracts file operations from the summarized range, generates the structured summary, and returns a CompactionResult ready to be persisted as a session compaction entry and used to rebuild the agent context.
|
This file (US-003) ties the compaction pieces together: given a message list and settings, it finds the cut point, extracts file operations from the summarized range, generates the structured summary, and returns a CompactionResult ready to be persisted as a session compaction entry and used to rebuild the agent context. |
|
Package compactionlog persists auto-compaction attempts for diagnosis.
|
Package compactionlog persists auto-compaction attempts for diagnosis. |
|
Package computersetup owns the interactive "open a desktop application for Computer Use" flow that the TUI and the GUI must share: resolve a requested application, choose one window, take the grant, and start the session.
|
Package computersetup owns the interactive "open a desktop application for Computer Use" flow that the TUI and the GUI must share: resolve a requested application, choose one window, take the grant, and start the session. |
|
Package computeruse owns the platform-independent authorization and lifecycle of a single locally resolved desktop window.
|
Package computeruse owns the platform-independent authorization and lifecycle of a single locally resolved desktop window. |
|
Package contextbudget is a leaf package (standard library only) holding the live context-window budget of one run: how many tokens the conversation has used against the model's window, whether a low-budget reminder has been delivered, and whether the model has asked to continue in a fresh window.
|
Package contextbudget is a leaf package (standard library only) holding the live context-window budget of one run: how many tokens the conversation has used against the model's window, whether a low-budget reminder has been delivered, and whether the model has asked to continue in a fresh window. |
|
Package controlcap describes the effects of the terminal and browser facades.
|
Package controlcap describes the effects of the terminal and browser facades. |
|
Package diagtrace is golder's one opt-in diagnostic log, shared by the process-start path and the full-screen TUI.
|
Package diagtrace is golder's one opt-in diagnostic log, shared by the process-start path and the full-screen TUI. |
|
Package displaytext provides bounded, display-only text transformations shared by native and terminal views.
|
Package displaytext provides bounded, display-only text transformations shared by native and terminal views. |
|
Package downloadnet applies Golder's configured proxy to operator-initiated package downloads, independently of provider and browser routing selections.
|
Package downloadnet applies Golder's configured proxy to operator-initiated package downloads, independently of provider and browser routing selections. |
|
Package dream implements the /dream memory-consolidation feature's foundation layer: the resolved dream configuration, on-disk run state, and the deterministic due-check that decides whether an auto-trigger is warranted.
|
Package dream implements the /dream memory-consolidation feature's foundation layer: the resolved dream configuration, on-disk run state, and the deterministic due-check that decides whether an auto-trigger is warranted. |
|
Package execsess manages shell sessions: OS processes that outlive a single tool call so their output can be polled and their process group controlled (interrupt / kill).
|
Package execsess manages shell sessions: OS processes that outlive a single tool call so their output can be polled and their process group controlled (interrupt / kill). |
|
Package explore describes the read-only operations folded into an Explore transcript cell.
|
Package explore describes the read-only operations folded into an Explore transcript cell. |
|
Package extensions owns the host-side extension boundary.
|
Package extensions owns the host-side extension boundary. |
|
Package filelock serializes read-modify-write operations across processes.
|
Package filelock serializes read-modify-write operations across processes. |
|
Package githubmirror centralizes the GitHub download accelerator list shared by install.sh, self-update and the first-party extension downloaders.
|
Package githubmirror centralizes the GitHub download accelerator list shared by install.sh, self-update and the first-party extension downloaders. |
|
Package golderhome resolves golder's state root, in one place.
|
Package golderhome resolves golder's state root, in one place. |
|
Package grants is the single authorization table: which paths golder may read, write, and run side-effect tools in — and for how long.
|
Package grants is the single authorization table: which paths golder may read, write, and run side-effect tools in — and for how long. |
|
grantstest
Package grantstest installs an empty authorization table for a test.
|
Package grantstest installs an empty authorization table for a test. |
|
Package heapdiag provides opt-in, file-only Go heap diagnostics.
|
Package heapdiag provides opt-in, file-only Go heap diagnostics. |
|
Package history persists the global, append-only prompt history shared by golder's interactive front-ends (TUI and GUI).
|
Package history persists the global, append-only prompt history shared by golder's interactive front-ends (TUI and GUI). |
|
Package hooks implements golder's user-extensible lifecycle hook system: a config-driven way to run shell commands at agent lifecycle points (tool calls, prompt submission, session start/end, etc.) without writing Go or compiling a plugin.
|
Package hooks implements golder's user-extensible lifecycle hook system: a config-driven way to run shell commands at agent lifecycle points (tool calls, prompt submission, session start/end, etc.) without writing Go or compiling a plugin. |
|
Package hostcompat reports golder's state to a terminal multiplexer that tracks coding agents — golder's own workspace, tuios and herdr — so golder shows up beside claude, codex and the rest without any of them shipping an integration for it.
|
Package hostcompat reports golder's state to a terminal multiplexer that tracks coding agents — golder's own workspace, tuios and herdr — so golder shows up beside claude, codex and the rest without any of them shipping an integration for it. |
|
Package jev calls TypeSafe's System One model — a decision model that answers typed questions with calibrated probabilities instead of generating text.
|
Package jev calls TypeSafe's System One model — a decision model that answers typed questions with calibrated probabilities instead of generating text. |
|
Package jsonrpc implements a minimal JSON-RPC 2.0 client over a subprocess's stdio (US-014/#116).
|
Package jsonrpc implements a minimal JSON-RPC 2.0 client over a subprocess's stdio (US-014/#116). |
|
Package mcpauth implements opt-in, source-scoped MCP OAuth transactions.
|
Package mcpauth implements opt-in, source-scoped MCP OAuth transactions. |
|
Package memory implements the persistent memory storage layer for golder.
|
Package memory implements the persistent memory storage layer for golder. |
|
Package mobileagent is the UI-neutral session boundary for native mobile hosts.
|
Package mobileagent is the UI-neutral session boundary for native mobile hosts. |
|
Package mobilebridge exposes the mobile session boundary as a small, handle-based JSON API for native hosts.
|
Package mobilebridge exposes the mobile session boundary as a small, handle-based JSON API for native hosts. |
|
Package mobilebuild implements the host-side GitHub Actions build tool.
|
Package mobilebuild implements the host-side GitHub Actions build tool. |
|
Package mobilegit provides a structured Git tool for the mobile host.
|
Package mobilegit provides a structured Git tool for the mobile host. |
|
Package panecontrol owns the cross-process registry of top-level Golder agents and the exclusive write lease for panes in one tuios daemon.
|
Package panecontrol owns the cross-process registry of top-level Golder agents and the exclusive write lease for panes in one tuios daemon. |
|
Package patch implements the apply_patch DSL: a stripped-down, file-oriented diff format carried by one tool call, so a single invocation can add, update, move, and delete files.
|
Package patch implements the apply_patch DSL: a stripped-down, file-oriented diff format carried by one tool call, so a single invocation can add, update, move, and delete files. |
|
Package permissionruntime owns the permission bootstrap shared by local frontends.
|
Package permissionruntime owns the permission bootstrap shared by local frontends. |
|
Package permissions defines golder's approval modes and the live, mutable state that tracks the active one.
|
Package permissions defines golder's approval modes and the live, mutable state that tracks the active one. |
|
Package pluginwire defines the host-side wire types for the legacy stdio plugin v1 protocol.
|
Package pluginwire defines the host-side wire types for the legacy stdio plugin v1 protocol. |
|
Package privatepath creates and checks the directories and files golder keeps one person's state in, and refuses to use anything that is not theirs.
|
Package privatepath creates and checks the directories and files golder keeps one person's state in, and refuses to use anything that is not theirs. |
|
This file implements the Anthropic Messages API streaming decoder (US-008).
|
This file implements the Anthropic Messages API streaming decoder (US-008). |
|
Package redact implements golder's embedded data-loss-prevention layer: it finds credential-shaped values in text that is about to enter the model's context (tool output, prompts, compaction summaries, memory) and replaces them with stable placeholders before the provider ever sees them.
|
Package redact implements golder's embedded data-loss-prevention layer: it finds credential-shaped values in text that is about to enter the model's context (tool output, prompts, compaction summaries, memory) and replaces them with stable placeholders before the provider ever sees them. |
|
Package remotecontrol implements the /remote-control feature: an in-process web server that lets a phone on the same LAN mirror the CLI session, inject prompts, and approve risky tool calls (see tasks/spec-remote-control.md).
|
Package remotecontrol implements the /remote-control feature: an in-process web server that lets a phone on the same LAN mirror the CLI session, inject prompts, and approve risky tool calls (see tasks/spec-remote-control.md). |
|
Package reviewpolicy decides HOW a tool call is reviewed, not whether it is safe.
|
Package reviewpolicy decides HOW a tool call is reviewed, not whether it is safe. |
|
This file implements shell-style argument tokenization for prompt templates (US-001, #331).
|
This file implements shell-style argument tokenization for prompt templates (US-001, #331). |
|
Package seatbelt confines bash execution with the OS sandbox: macOS sandbox-exec, Linux bubblewrap (bwrap); platforms without a runner compile to an unavailable stub.
|
Package seatbelt confines bash execution with the OS sandbox: macOS sandbox-exec, Linux bubblewrap (bwrap); platforms without a runner compile to an unavailable stub. |
|
This file caches the latest-release check so golder's startup banner can show "update available" without a network call on every launch (US-004, FR-10).
|
This file caches the latest-release check so golder's startup banner can show "update available" without a network call on every launch (US-004, FR-10). |
|
This file implements session export/import (US-008, #124): a session can be exported to a self-contained JSONL or HTML file, and a JSONL export can be imported back as a fresh, resumable session.
|
This file implements session export/import (US-008, #124): a session can be exported to a self-contained JSONL or HTML file, and a JSONL export can be imported back as a fresh, resumable session. |
|
Package shellfacts describes what a shell command will do, parsed rather than guessed at.
|
Package shellfacts describes what a shell command will do, parsed rather than guessed at. |
|
Package terminalstate preserves the host's kernel TTY state across an embedded terminal UI, including failures before its event loop starts.
|
Package terminalstate preserves the host's kernel TTY state across an embedded terminal UI, including failures before its event loop starts. |
|
Package toolchain resolves explicitly requested execution profiles.
|
Package toolchain resolves explicitly requested execution profiles. |
|
Package toolworker runs file tools in a fresh, per-call OS sandbox.
|
Package toolworker runs file tools in a fresh, per-call OS sandbox. |
|
This file holds the interactive pieces of project trust (US-018, #134).
|
This file holds the interactive pieces of project trust (US-018, #134). |
|
Package tuiosctl is golder's narrow Go client for the tuios daemon's line-delimited JSON protocol.
|
Package tuiosctl is golder's narrow Go client for the tuios daemon's line-delimited JSON protocol. |
|
This file implements the GitHub ready-for-review webhook (issue #567, ported from dsh's GitHub review sessions): an opt-in, isolated HTTP endpoint that turns a PR's draft→ready transition into a read-only review session.
|
This file implements the GitHub ready-for-review webhook (issue #567, ported from dsh's GitHub review sessions): an opt-in, isolated HTTP endpoint that turns a PR's draft→ready transition into a read-only review session. |
|
Package workspace owns golder's integrated terminal workspace.
|
Package workspace owns golder's integrated terminal workspace. |
Click to show internal directories.
Click to hide internal directories.