Directories
¶
| Path | Synopsis |
|---|---|
|
agentkit
module
|
|
|
gate
module
|
|
|
gemini
module
|
|
|
openai
module
|
|
|
runtime
module
|
|
|
Package catalog holds the source of the published library catalog — the skills and MCP servers a fresh daemon offers before anybody configures anything.
|
Package catalog holds the source of the published library catalog — the skills and MCP servers a fresh daemon offers before anybody configures anything. |
|
cmd
|
|
|
nocturn
command
Command nocturn is a terminal chat driven by agentkit Sessions, their tools gated by agentkit/gate with human approval on the terminal, and conversations persisted and multiplexed by internal/chat — all composed per workspace by internal/workspace.
|
Command nocturn is a terminal chat driven by agentkit Sessions, their tools gated by agentkit/gate with human approval on the terminal, and conversations persisted and multiplexed by internal/chat — all composed per workspace by internal/workspace. |
|
internal
|
|
|
agent
Package agent is the declaration layer for autonomous assistants: the Agent type, discovery of agent.md files into an immutable Set, and a cron Scheduler.
|
Package agent is the declaration layer for autonomous assistants: the Agent type, discovery of agent.md files into an immutable Set, and a cron Scheduler. |
|
archtest
Package archtest holds the architecture as tests: the layering the docs state (.agents/docs/architecture.md, .agents/docs/conventions.md, ADR-11, ADR-13, ADR-22, ADR-26), checked over every package of every module in go.work.
|
Package archtest holds the architecture as tests: the layering the docs state (.agents/docs/architecture.md, .agents/docs/conventions.md, ADR-11, ADR-13, ADR-22, ADR-26), checked over every package of every module in go.work. |
|
attachment
Package attachment keeps the images, the voice recordings and the documents people send into a workspace's chats and work items: one folder per workspace, each file stored once under the SHA-256 of its bytes, so the same photo sent twice, or into two chats, is one file.
|
Package attachment keeps the images, the voice recordings and the documents people send into a workspace's chats and work items: one folder per workspace, each file stored once under the SHA-256 of its bytes, so the same photo sent twice, or into two chats, is one file. |
|
auth
Package auth is the daemon's device registry: it gates every WebSocket connection on a bearer a device obtained by pairing.
|
Package auth is the daemon's device registry: it gates every WebSocket connection on a bearer a device obtained by pairing. |
|
chat
Package chat persists conversations and multiplexes them — the layer agentkit deliberately leaves to the consumer.
|
Package chat persists conversations and multiplexes them — the layer agentkit deliberately leaves to the consumer. |
|
devicepush
Package devicepush reaches the household's paired phones with a push: the notify and remind tools' out-of-band sender (Notifier) and the approval broker's waker (Waker).
|
Package devicepush reaches the household's paired phones with a push: the notify and remind tools' out-of-band sender (Notifier) and the approval broker's waker (Waker). |
|
discovery
Package discovery holds the vocabulary every discoverable kind shares (agents, skills, plugins, MCP servers): how a skipped item is recorded, and how an item's name is resolved.
|
Package discovery holds the vocabulary every discoverable kind shares (agents, skills, plugins, MCP servers): how a skipped item is recorded, and how an item's name is resolved. |
|
egress
Package egress is the one way an HTTP request leaves nocturn on behalf of a tool or a connection.
|
Package egress is the one way an HTTP request leaves nocturn on behalf of a tool or a connection. |
|
envvar
Package envvar reads a setting out of an environment variable the one way every reader shares: a boolean is taken as people write one, and a value that is not one is an error naming the variable, never a quiet false.
|
Package envvar reads a setting out of an environment variable the one way every reader shares: a boolean is taken as people write one, and a value that is not one is an error naming the variable, never a quiet false. |
|
extension
Package extension is what a workspace installs, and the one declaration every installed thing shares.
|
Package extension is what a workspace installs, and the one declaration every installed thing shares. |
|
form
Package form is the one shape of "values a person fills in" that an extension declares: a flat JSON Schema object of typed properties.
|
Package form is the one shape of "values a person fills in" that an extension declares: a flat JSON Schema object of typed properties. |
|
frontmatter
Package frontmatter parses the YAML preamble a Markdown file may open with — the shape the Agent Skills standard uses, and the same one nocturn's memory notes use to describe themselves.
|
Package frontmatter parses the YAML preamble a Markdown file may open with — the shape the Agent Skills standard uses, and the same one nocturn's memory notes use to describe themselves. |
|
fsutil
Package fsutil holds the file-system helpers more than one package needs.
|
Package fsutil holds the file-system helpers more than one package needs. |
|
hitl
Package hitl routes a gate approval to a human out of band: it presents the request to every attached connection and takes the first answer (first-committed-wins), or wakes a device via a Pusher when none is attached.
|
Package hitl routes a gate approval to a human out of band: it presents the request to every attached connection and takes the first answer (first-committed-wins), or wakes a device via a Pusher when none is attached. |
|
imagegen
Package imagegen is the image tools: image_generate makes pictures from a description, image_edit makes one from a picture of the conversation and a description, both with the owner's image model (models.Settings.ImageModel) behind the Painter port.
|
Package imagegen is the image tools: image_generate makes pictures from a description, image_edit makes one from a picture of the conversation and a description, both with the owner's image model (models.Settings.ImageModel) behind the Painter port. |
|
inbox
Package inbox is what a workspace tells its owner: one list of what needs an answer and what happened, newest first, each item with a read state every device shares.
|
Package inbox is what a workspace tells its owner: one list of what needs an answer and what happened, newest first, each item with a read state every device shares. |
|
kinds
Package kinds is the register of gate Kinds: what each Kind of action is allowed to do, stated once, beside the Kind, as a Spec.
|
Package kinds is the register of gate Kinds: what each Kind of action is allowed to do, stated once, beside the Kind, as a Spec. |
|
knowledge
Package knowledge is retrieval over a workspace's own documents: the folder you drop things into, chunked, embedded, and searched on demand.
|
Package knowledge is retrieval over a workspace's own documents: the folder you drop things into, chunked, embedded, and searched on demand. |
|
knowledge/embed
Package embed is the remote half of knowledge retrieval: an OpenAI-compatible /v1/embeddings client, and the only place in the tree that sends document text to a third party.
|
Package embed is the remote half of knowledge retrieval: an OpenAI-compatible /v1/embeddings client, and the only place in the tree that sends document text to a third party. |
|
library
Package library is the curated catalog a person installs extensions from — the shop side of extending a workspace, as opposed to assembling a folder by hand.
|
Package library is the curated catalog a person installs extensions from — the shop side of extending a workspace, as opposed to assembling a folder by hand. |
|
mail
Package mail is the household's mailbox: reading it, and sending from it.
|
Package mail is the household's mailbox: reading it, and sending from it. |
|
mcp
Package mcp connects to remote (HTTP) MCP servers — the SAFE half of MCP (ADR-9): a remote server runs no code on your machine, so talking to it is just gated HTTP.
|
Package mcp connects to remote (HTTP) MCP servers — the SAFE half of MCP (ADR-9): a remote server runs no code on your machine, so talking to it is just gated HTTP. |
|
mcp/authflow
Package authflow implements the discovery half of the MCP authorization spec (2025-06-18): the client-side steps that turn a bare MCP server URL into concrete OAuth endpoints and a client id, so nocturn can run the interactive flow without hand-configured endpoints.
|
Package authflow implements the discovery half of the MCP authorization spec (2025-06-18): the client-side steps that turn a bare MCP server URL into concrete OAuth endpoints and a client id, so nocturn can run the interactive flow without hand-configured endpoints. |
|
mcpserver
Package mcpserver speaks the server side of the Model Context Protocol over Streamable HTTP, for tools: initialize, ping, tools/list and tools/call, answered as JSON.
|
Package mcpserver speaks the server side of the Model Context Protocol over Streamable HTTP, for tools: initialize, ping, tools/list and tools/call, answered as JSON. |
|
memory
Package memory is the assistant's own durable memory: a per-workspace folder of Markdown files whose index (MEMORY.md) is folded into every system prompt, with the detail files loaded on demand.
|
Package memory is the assistant's own durable memory: a per-workspace folder of Markdown files whose index (MEMORY.md) is folded into every system prompt, with the detail files loaded on demand. |
|
models
Package models is which models a chat may run on: the owner's named presets (Quick, Standard, Deep …), each mapping to a provider model id with what that model takes, read from a settings file, and the Router, the one agentkit.LLM every chat and agent runs on, which hands each turn to the client of the preset it asked for (agentkit.ModelFrom).
|
Package models is which models a chat may run on: the owner's named presets (Quick, Standard, Deep …), each mapping to a provider model id with what that model takes, read from a settings file, and the Router, the one agentkit.LLM every chat and agent runs on, which hands each turn to the client of the preset it asked for (agentkit.ModelFrom). |
|
netgate
Package netgate is what a host means to the gate.
|
Package netgate is what a host means to the gate. |
|
onnx
Package onnx runs a small ONNX graph in pure Go — no CGO, no shared library, no WebAssembly, and no dependency outside the standard library.
|
Package onnx runs a small ONNX graph in pure Go — no CGO, no shared library, no WebAssembly, and no dependency outside the standard library. |
|
pathgate
Package pathgate is what a path means to the gate: whether a granted path pattern covers a target, and which wider grant to offer the human when asking about one.
|
Package pathgate is what a path means to the gate: whether a granted path pattern covers a target, and which wider grant to offer the human when asking about one. |
|
permtree
Package permtree is the permission tree: one tree per workspace that says, for every holder, which tools and secrets exist and what each may do.
|
Package permtree is the permission tree: one tree per workspace that says, for every holder, which tools and secrets exist and what each may do. |
|
plugin
Package plugin runs installed, sandboxed plugins as ordinary model tools.
|
Package plugin runs installed, sandboxed plugins as ordinary model tools. |
|
profile
Package profile is the household profile (ADR-39): a small typed store per workspace of what the household is — its named places, its language, its units, its time zone.
|
Package profile is the household profile (ADR-39): a small typed store per workspace of what the household is — its named places, its language, its units, its time zone. |
|
push
Package push is the native mobile-push side of the companion app: a provider-agnostic Sender port plus its adapters, APNs for iOS (apns.go) and Firebase Cloud Messaging for Android (fcm.go).
|
Package push is the native mobile-push side of the companion app: a provider-agnostic Sender port plus its adapters, APNs for iOS (apns.go) and Firebase Cloud Messaging for Android (fcm.go). |
|
sandbox
Package sandbox runs an untrusted WebAssembly guest (an interpreter such as QuickJS or MicroPython, or a compiled skill) under strict isolation on wazero.
|
Package sandbox runs an untrusted WebAssembly guest (an interpreter such as QuickJS or MicroPython, or a compiled skill) under strict isolation on wazero. |
|
script
Package script runs untrusted JavaScript on the sandbox interpreter (QuickJS compiled to wasm) and bridges a script's actions through a single generic host gate onto the SAME agentkit tools the model uses.
|
Package script runs untrusted JavaScript on the sandbox interpreter (QuickJS compiled to wasm) and bridges a script's actions through a single generic host gate onto the SAME agentkit tools the model uses. |
|
secret
Package secret is the host's secret store and credential injection.
|
Package secret is the host's secret store and credential injection. |
|
secret/bitwarden
Package bitwarden is a secret.Source over one collection of a Bitwarden organisation, read from a Vaultwarden (tested against 1.37.3) or Bitwarden server through its own API.
|
Package bitwarden is a secret.Source over one collection of a Bitwarden organisation, read from a Vaultwarden (tested against 1.37.3) or Bitwarden server through its own API. |
|
secret/oauth
Package oauth runs the host side of OAuth2 (ADR-5): it obtains and refreshes access tokens so the gateway can inject a Bearer at the boundary.
|
Package oauth runs the host side of OAuth2 (ADR-5): it obtains and refreshes access tokens so the gateway can inject a Bearer at the boundary. |
|
secret/provider
Package provider is the registry of the kinds of password store nocturn can mirror into a workspace's permission tree (ADR-28): one file per provider, and one line in registry.
|
Package provider is the registry of the kinds of password store nocturn can mirror into a workspace's permission tree (ADR-28): one file per provider, and one line in registry. |
|
serve
Package serve exposes a workspace's chats over a WebSocket: one backend, many fronts (daemon-as-truth).
|
Package serve exposes a workspace's chats over a WebSocket: one backend, many fronts (daemon-as-truth). |
|
show
Package show is the tools that put a block into the transcript instead of text into the model's context: show_chart (a Vega-Lite spec), show_table (columns and rows, or CSV), show_diagram (Mermaid source) and show_html (a self-contained page).
|
Package show is the tools that put a block into the transcript instead of text into the model's context: show_chart (a Vega-Lite spec), show_table (columns and rows, or CSV), show_diagram (Mermaid source) and show_html (a self-contained page). |
|
skill
Package skill is nocturn's consumer-side skills layer: it reads the SKILL.md an extension carries (YAML frontmatter + Markdown body) into an agentkit.SkillSet, and provides skill_read for a skill's bundled files (Tier 3 of progressive disclosure).
|
Package skill is nocturn's consumer-side skills layer: it reads the SKILL.md an extension carries (YAML frontmatter + Markdown body) into an agentkit.SkillSet, and provides skill_read for a skill's bundled files (Tier 3 of progressive disclosure). |
|
speaker
Package speaker answers "who said this" from 16 kHz PCM, entirely on the machine that runs nocturn: no CGO, no shared library, no service call, and no audio leaving the device.
|
Package speaker answers "who said this" from 16 kHz PCM, entirely on the machine that runs nocturn: no CGO, no shared library, no service call, and no audio leaving the device. |
|
ssh
Package ssh is the ssh consumer of a secret (ADR-28, ADR-35): ssh_exec, a built-in tool that runs one command on a server with an SSH key the model names by its alias and never sees, and the workspace's trusted host keys (KnownHosts).
|
Package ssh is the ssh consumer of a secret (ADR-28, ADR-35): ssh_exec, a built-in tool that runs one command on a server with an SSH key the model names by its alias and never sees, and the workspace's trusted host keys (KnownHosts). |
|
ssh/sshtest
Package sshtest is an SSH server in the test process, for the tests of what runs commands over SSH.
|
Package sshtest is an SSH server in the test process, for the tests of what runs commands over SSH. |
|
sshgate
Package sshgate is what a command on a remote host means to the gate (ADR-35): the Kind ssh_exec checks, its target "<user>@<host> <command>", how a rule's pattern covers one (Match) and which wider rule an answer may choose (Suggest).
|
Package sshgate is what a command on a remote host means to the gate (ADR-35): the Kind ssh_exec checks, its target "<user>@<host> <command>", how a rule's pattern covers one (Match) and which wider rule an answer may choose (Suggest). |
|
tools
Package tools bundles nocturn's own gated tools — the thin ones whose whole body is "build an agentkit.Tool that gates its target on a shared kind before it acts".
|
Package tools bundles nocturn's own gated tools — the thin ones whose whole body is "build an agentkit.Tool that gates its target on a shared kind before it acts". |
|
tui
Package tui is nocturn's terminal surface: a full-screen chat over the workspace facade.
|
Package tui is nocturn's terminal surface: a full-screen chat over the workspace facade. |
|
tui/logring
Package logring is a slog.Handler that keeps the last N records in memory for the terminal UI's log pane.
|
Package logring is a slog.Handler that keeps the last N records in memory for the terminal UI's log pane. |
|
tui/transcript
Package transcript is the ONE pure fold of a chat's rendered state — no terminal, no clock, no I/O. Both entry points reduce into the SAME View by the SAME builders, so the snapshot path and the live-stream path can never drift:
|
Package transcript is the ONE pure fold of a chat's rendered state — no terminal, no clock, no I/O. Both entry points reduce into the SAME View by the SAME builders, so the snapshot path and the live-stream path can never drift: |
|
turnctx
Package turnctx carries what identifies the turn a call belongs to through a context.Context: the chat it is part of, or the device a spoken session runs on.
|
Package turnctx carries what identifies the turn a call belongs to through a context.Context: the chat it is part of, or the device a spoken session runs on. |
|
view
Package view computes what a surface shows of a workspace, once, for the terminal and the app alike.
|
Package view computes what a surface shows of a workspace, once, for the terminal and the app alike. |
|
voice
Package voice drives a duplex speech session against an agentkit.LiveLLM, brokering the tool calls it issues through the same ToolSet and the same gate machinery a typed chat uses.
|
Package voice drives a duplex speech session against an agentkit.LiveLLM, brokering the tool calls it issues through the same ToolSet and the same gate machinery a typed chat uses. |
|
wake
Package wake is the self-continuation tool: a conversation schedules itself to be continued after a delay, with a note as the next prompt.
|
Package wake is the self-continuation tool: a conversation schedules itself to be continued after a delay, with a note as the next prompt. |
|
webui
Package webui serves the browser front-end out of the binary itself.
|
Package webui serves the browser front-end out of the binary itself. |
|
widget
Package widget is the engine of widgets and watches (ADR-38): standing tool calls the scheduler makes on its own.
|
Package widget is the engine of widgets and watches (ADR-38): standing tool calls the scheduler makes on its own. |
|
work
Package work is a workspace's work items: the durable waystation for what is still to do and what is kept — a task, a question for the owner, a draft of a call an agent wants to make and the owner reviews first, a reminder (any item with a time), a note, a recipe.
|
Package work is a workspace's work items: the durable waystation for what is still to do and what is kept — a task, a question for the owner, a draft of a call an agent wants to make and the owner reviews first, a reminder (any item with a time), a note, a recipe. |
|
workspace
Package workspace is the composition root per workspace: it bundles the tools, the permission tree (what every holder is offered and may do, permissions.json, and the approver), the persona, and the chat store and manager into one aggregate over a shared Host.
|
Package workspace is the composition root per workspace: it bundles the tools, the permission tree (what every holder is offered and may do, permissions.json, and the approver), the persona, and the chat store and manager into one aggregate over a shared Host. |
Click to show internal directories.
Click to hide internal directories.

