Directories
¶
| Path | Synopsis |
|---|---|
|
Package agent defines the interface and types for coding agent backends.
|
Package agent defines the interface and types for coding agent backends. |
|
acp
Package acp adapts Agent Client Protocol (ACP) agents to clank's SessionBackend seam.
|
Package acp adapts Agent Client Protocol (ACP) agents to clank's SessionBackend seam. |
|
acp/acptest
Package acptest provides an in-process scripted ACP agent for tests: a real agent speaking real JSON-RPC over real pipes through the same SDK clank uses — the protocol-level analog of hosttest.StubBackend.
|
Package acptest provides an in-process scripted ACP agent for tests: a real agent speaking real JSON-RPC over real pipes through the same SDK clank uses — the protocol-level analog of hosttest.StubBackend. |
|
acptools
Package acptools provisions the pinned ACP adapter packages onto a host.
|
Package acptools provisions the pinned ACP adapter packages onto a host. |
|
guidance
Package guidance assembles the stack-specific guidance that clank injects as the building agent's system prompt at session start, and materializes the stack's detailed playbook as an on-demand skill in the user's personal skills directory (~/.claude/skills).
|
Package guidance assembles the stack-specific guidance that clank injects as the building agent's system prompt at session start, and materializes the stack's detailed playbook as an on-demand skill in the user's personal skills directory (~/.claude/skills). |
|
presets
Package presets defines agent presets: named bundles of session config values (mode, model, effort, …) a client applies when creating or steering a session.
|
Package presets defines agent presets: named bundles of session config values (mode, model, effort, …) a client applies when creating or steering a session. |
|
Package bridge is the daemon's durable laptop↔phone connection, built on per-device public keys — nothing secret ever crosses the wire.
|
Package bridge is the daemon's durable laptop↔phone connection, built on per-device public keys — nothing secret ever crosses the wire. |
|
cli
|
|
|
clankcli
Package clankcli provides the root cobra command for the clank binary.
|
Package clankcli provides the root cobra command for the clank binary. |
|
daemoncli
Package daemoncli provides the cobra commands for managing the Clank daemon.
|
Package daemoncli provides the cobra commands for managing the Clank daemon. |
|
Package cloud is the laptop's HTTP client for the user's clank gateway deployment.
|
Package cloud is the laptop's HTTP client for the user's clank gateway deployment. |
|
Package hubclient is the canonical Go client for talking to clankd's Hub HTTP API.
|
Package hubclient is the canonical Go client for talking to clankd's Hub HTTP API. |
|
Package git provides helpers for interacting with git repositories, focused on worktree and branch management for Clank's session isolation.
|
Package git provides helpers for interacting with git repositories, focused on worktree and branch management for Clank's session isolation. |
|
Package host defines the value types for Clank's Host plane and the host.Service that runs agent backends, owns clones of remote repos, and exposes an HTTP API to the Hub.
|
Package host defines the value types for Clank's Host plane and the host.Service that runs agent backends, owns clones of remote repos, and exposes an HTTP API to the Hub. |
|
client
Package hostclient is the Hub-side handle for talking to a Host.
|
Package hostclient is the Hub-side handle for talking to a Host. |
|
github
Package github holds the host-side GitHub integration: the credential store, the device-flow runtime, the GitHub API client, and the orchestration that combines them for "create a PR from a worktree" requests.
|
Package github holds the host-side GitHub integration: the credential store, the device-flow runtime, the GitHub API client, and the orchestration that combines them for "create a PR from a worktree" requests. |
|
hosttest
Package hosttest provides shared test doubles for wiring an in-process host.Service in end-to-end tests: a stub backend manager standing in for the real opencode/claude process boundary, and a throwaway git repo factory.
|
Package hosttest provides shared test doubles for wiring an in-process host.Service in end-to-end tests: a stub backend manager standing in for the real opencode/claude process boundary, and a throwaway git repo factory. |
|
mux
Package hostmux exposes a *host.Service over HTTP.
|
Package hostmux exposes a *host.Service over HTTP. |
|
petname
Package petname generates short, memorable identifiers in the form adjective-animal-hex4 (e.g.
|
Package petname generates short, memorable identifiers in the form adjective-animal-hex4 (e.g. |
|
preview
Package preview resolves, spawns, and supervises per-worktree development servers on a Clank host.
|
Package preview resolves, spawns, and supervises per-worktree development servers on a Clank host. |
|
store
Package store is the host's local SQLite for session metadata and the primary-agent cache.
|
Package store is the host's local SQLite for session metadata and the primary-agent cache. |
|
Package keepalive sends an "agent is active" signal to a provider- specific Listener whenever a backend event arrives.
|
Package keepalive sends an "agent is active" signal to a provider- specific Listener whenever a backend event arrives. |
|
exit
Package exit implements a keepalive.Listener that shuts the process down after a period of inactivity — the "inactivity-detection (we kill)" listener anticipated by the keepalive package doc.
|
Package exit implements a keepalive.Listener that shuts the process down after a period of inactivity — the "inactivity-detection (we kill)" listener anticipated by the keepalive package doc. |
|
noop
Package noop provides a Listener that does nothing.
|
Package noop provides a Listener that does nothing. |
|
sprites
Package sprites implements a keepalive.Listener backed by the Fly Sprites Tasks API (https://docs.sprites.dev/keeping-sprites-running/).
|
Package sprites implements a keepalive.Listener backed by the Fly Sprites Tasks API (https://docs.sprites.dev/keeping-sprites-running/). |
|
Package lannet answers "what address can peers on the local network reach this host at" — shared by the CLI (QR links) and the daemon's bridge listener.
|
Package lannet answers "what address can peers on the local network reach this host at" — shared by the CLI (QR links) and the daemon's bridge listener. |
|
Package launchconfig loads Clank's project-specific web preview launch files.
|
Package launchconfig loads Clank's project-specific web preview launch files. |
|
Package notifier is the host's outbound-notification delivery pipeline.
|
Package notifier is the host's outbound-notification delivery pipeline. |
|
noop
Package noop implements notifier.Provider as a logger-only sink.
|
Package noop implements notifier.Provider as a logger-only sink. |
|
webhook
Package webhook implements notifier.Provider as an HTTP POST to a configured URL.
|
Package webhook implements notifier.Provider as an HTTP POST to a configured URL. |
|
Package repolabel derives the owner-independent display label for a git repository, used as the `origin_repo` group key on worktree listings.
|
Package repolabel derives the owner-independent display label for a git repository, used as the `origin_repo` group key on worktree listings. |
|
Package socketutil provides safe filesystem operations for Unix domain sockets shared across the clank-host and clankd binaries.
|
Package socketutil provides safe filesystem operations for Unix domain sockets shared across the clank-host and clankd binaries. |
|
Package sqlmigrate applies embedded goose migrations to a SQLite database.
|
Package sqlmigrate applies embedded goose migrations to a SQLite database. |
|
Package store provides SQLite-backed persistence for the provisioner's host registry (the `hosts` table) and push-notification devices (the `devices` table).
|
Package store provides SQLite-backed persistence for the provisioner's host registry (the `hosts` table) and push-notification devices (the `devices` table). |
|
Package version reports the build version shared by every clank binary.
|
Package version reports the build version shared by every clank binary. |
|
Package webpreview is the browser twin of the phone preview: an overlay-injecting reverse proxy that `clank preview` puts in front of a KindWeb dev server (see internal/host/preview), plus the dictation service the overlay's push-to-talk streams into.
|
Package webpreview is the browser twin of the phone preview: an overlay-injecting reverse proxy that `clank preview` puts in front of a KindWeb dev server (see internal/host/preview), plus the dictation service the overlay's push-to-talk streams into. |
Click to show internal directories.
Click to hide internal directories.