Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
agentkit
module
|
|
|
gate
module
|
|
|
gemini
module
|
|
|
openai
module
|
|
|
runtime
module
|
|
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
plugin
Package plugin runs installed, sandboxed plugins as ordinary model tools.
|
Package plugin runs installed, sandboxed plugins as ordinary model tools. |
|
push
Package push is the native mobile-push side of the companion app: a provider-agnostic Sender port plus the APNs adapter (apns.go) that implements it.
|
Package push is the native mobile-push side of the companion app: a provider-agnostic Sender port plus the APNs adapter (apns.go) that implements it. |
|
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/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. |
|
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). |
|
skill
Package skill is nocturn's consumer-side skills layer: it loads agentskills.io skills from disk (a directory per skill, each with a SKILL.md of 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 loads agentskills.io skills from disk (a directory per skill, each with a SKILL.md of 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. |
|
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". |
|
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. |
|
workspace
Package workspace is the composition root per workspace: it bundles the tools (the cage), the permission gate (policy + durable grants + 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 cage), the permission gate (policy + durable grants + 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.