Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
nightme
command
Package main — agent registration table.
|
Package main — agent registration table. |
|
internal
|
|
|
agent
Package agent defines the abstract Agent interface that wraps any AI Coding CLI behind a single structured event stream.
|
Package agent defines the abstract Agent interface that wraps any AI Coding CLI behind a single structured event stream. |
|
agent/procutil
Package procutil — shared subprocess liveness helpers for bridge drivers that spawn an OS subprocess per AgentSession (claudecode, opencode, codex, pi, pty).
|
Package procutil — shared subprocess liveness helpers for bridge drivers that spawn an OS subprocess per AgentSession (claudecode, opencode, codex, pi, pty). |
|
agentregistry
Package agentregistry — build an agent.Registry from a config.Config.
|
Package agentregistry — build an agent.Registry from a config.Config. |
|
agentsession
Package chatsession — AgentSession event dispatcher (multi-as Phase 1).
|
Package chatsession — AgentSession event dispatcher (multi-as Phase 1). |
|
bridge/acp
Package acp implements the Agent Client Protocol client transport.
|
Package acp implements the Agent Client Protocol client transport. |
|
bridge/claudecode
Package claudecode implements a bridge to the Claude Code CLI using stream-json mode over stdin/stdout.
|
Package claudecode implements a bridge to the Claude Code CLI using stream-json mode over stdin/stdout. |
|
bridge/codex
Public Agent (template + live) for the codex app-server bridge.
|
Public Agent (template + live) for the codex app-server bridge. |
|
bridge/cursor
Package cursor is the nightme bridge for the Cursor CLI.
|
Package cursor is the nightme bridge for the Cursor CLI. |
|
bridge/dsh
Package dsh is the nightme bridge for DeepSeek Harness (dsh).
|
Package dsh is the nightme bridge for DeepSeek Harness (dsh). |
|
bridge/dsh/host
Package host is the multiplexed client for a single shared dsh web daemon.
|
Package host is the multiplexed client for a single shared dsh web daemon. |
|
bridge/opencode
Package opencode is the nightme bridge for the opencode CLI.
|
Package opencode is the nightme bridge for the opencode CLI. |
|
bridge/pi
Package pi implements a bridge to the Pi coding agent using its native `pi --mode rpc` long-lived JSONL protocol.
|
Package pi implements a bridge to the Pi coding agent using its native `pi --mode rpc` long-lived JSONL protocol. |
|
bridge/pty
Package pty also provides the Agent wrapper that turns a CLI command into a Starter/Agent backed by the PTY transport defined in this package.
|
Package pty also provides the Agent wrapper that turns a CLI command into a Starter/Agent backed by the PTY transport defined in this package. |
|
channel
Package channel — IM adapter interface and concrete adapters (Feishu, echo test stub).
|
Package channel — IM adapter interface and concrete adapters (Feishu, echo test stub). |
|
channel/bot
Package bot — implements channel.Channel.
|
Package bot — implements channel.Channel. |
|
channel/echo
Package echo implements a minimal Channel that prints everything to its configured writer.
|
Package echo implements a minimal Channel that prints everything to its configured writer. |
|
channel/feishu
Package feishu implements the Feishu channel adapter.
|
Package feishu implements the Feishu channel adapter. |
|
channel/telegram
Package telegram — registers the telegram Channel Builder in the channel registry.
|
Package telegram — registers the telegram Channel Builder in the channel registry. |
|
chatsession
Package chatsession — global AgentSessionPool (docs/CHATSTORE.md).
|
Package chatsession — global AgentSessionPool (docs/CHATSTORE.md). |
|
chatstore
Package chatstore is the in-process store for chat_sessions.json.
|
Package chatstore is the in-process store for chat_sessions.json. |
|
command
Package command (commander.go) — the Commander dispatch surface.
|
Package command (commander.go) — the Commander dispatch surface. |
|
command/close
Package close — /close's "stop + kill the bridge process" logic.
|
Package close — /close's "stop + kill the bridge process" logic. |
|
command/cwd
Package cwd implements the `/cwd <path>` slash command.
|
Package cwd implements the `/cwd <path>` slash command. |
|
command/format
Package format provides shared rendering helpers for slash command reply text (IM-friendly plain-text payloads).
|
Package format provides shared rendering helpers for slash command reply text (IM-friendly plain-text payloads). |
|
command/gtw
Package gtw — agent invocation + unified reply sink.
|
Package gtw — agent invocation + unified reply sink. |
|
command/newcmd
Package newcmd implements the `/new [<agent>]` slash command.
|
Package newcmd implements the `/new [<agent>]` slash command. |
|
command/queue
Package queue implements the `/queue <message>` slash command.
|
Package queue implements the `/queue <message>` slash command. |
|
command/review
Package review implements the `/review` slash command.
|
Package review implements the `/review` slash command. |
|
command/services
Package services — EventBus[T] (F-54).
|
Package services — EventBus[T] (F-54). |
|
command/steer
Package steer implements the `/steer <message>` slash command.
|
Package steer implements the `/steer <message>` slash command. |
|
command/stop
Package stop implements the `/stop` slash command.
|
Package stop implements the `/stop` slash command. |
|
command/think
Package think implements the `/think on|off` slash command.
|
Package think implements the `/think on|off` slash command. |
|
command/tools
Package tools implements the `/tools on|off` slash command.
|
Package tools implements the `/tools on|off` slash command. |
|
command/use
Package use implements the `/use <agent> [args...]` slash command.
|
Package use implements the `/use <agent> [args...]` slash command. |
|
command/watch
Package watch implements the `/watch on|off` slash command.
|
Package watch implements the `/watch on|off` slash command. |
|
config
Package config loads nightme configuration from a YAML file and applies environment-variable overrides.
|
Package config loads nightme configuration from a YAML file and applies environment-variable overrides. |
|
daemoncontrol
Package daemoncontrol: cross-platform daemon lifecycle.
|
Package daemoncontrol: cross-platform daemon lifecycle. |
|
errors
Package errors defines nightme's unified error code surface.
|
Package errors defines nightme's unified error code surface. |
|
gateway
Package gateway — the multi-channel inbound pump and the chat → session binding table.
|
Package gateway — the multi-channel inbound pump and the chat → session binding table. |
|
gateway/inbound
Package inbound — tryActionDispatch: routes msg.Reaction to the wired services.ReactionRouter, and msg.Action (card button clicks) to Manager.SendPermission for pending approvals / AskUserQuestion.
|
Package inbound — tryActionDispatch: routes msg.Reaction to the wired services.ReactionRouter, and msg.Action (card button clicks) to Manager.SendPermission for pending approvals / AskUserQuestion. |
|
gateway/inbound/teststubs
Package teststubs — test-double implementations of every inbound.Router dependency.
|
Package teststubs — test-double implementations of every inbound.Router dependency. |
|
gateway/outbound
Package outbound is the unified egress chokepoint for every message the runtime wants to deliver to a user.
|
Package outbound is the unified egress chokepoint for every message the runtime wants to deliver to a user. |
|
gatewaytest
Package gatewaytest provides shared test fixtures for the gateway-side packages (gateway, gateway/outbound, gateway/inbound, command).
|
Package gatewaytest provides shared test fixtures for the gateway-side packages (gateway, gateway/outbound, gateway/inbound, command). |
|
httpclient
Package httpclient is the single home for outbound HTTP requests in nightme.
|
Package httpclient is the single home for outbound HTTP requests in nightme. |
|
login
Package login defines the per-channel credential onboarding contract.
|
Package login defines the per-channel credential onboarding contract. |
|
login/feishu
Package feishu implements login.Provider for the Feishu (飞书) channel.
|
Package feishu implements login.Provider for the Feishu (飞书) channel. |
|
login/telegram
Package telegram implements login.Provider for the Telegram channel.
|
Package telegram implements login.Provider for the Telegram channel. |
|
messages
Package messages — wire-protocol message types shared by every component in the system: Channel adapters, the Gateway, the runtime event pump, and the outbound chokepoint.
|
Package messages — wire-protocol message types shared by every component in the system: Channel adapters, the Gateway, the runtime event pump, and the outbound chokepoint. |
|
pathutil
Cross-platform helpers that don't depend on platform-specific rules.
|
Cross-platform helpers that don't depend on platform-specific rules. |
|
prcache
Package prcache — per-AgentSession cache for the GitHub / GitLab PR (or MR) associated with the current head branch, refreshed asynchronously on a 60s TTL.
|
Package prcache — per-AgentSession cache for the GitHub / GitLab PR (or MR) associated with the current head branch, refreshed asynchronously on a 60s TTL. |
|
registry
Package registry — AgentSessionEntry (v3 schema).
|
Package registry — AgentSessionEntry (v3 schema). |
|
runtime
Package runtime — `nightme run` daemon core.
|
Package runtime — `nightme run` daemon core. |
|
shell
Package shell dispatches `!cmd` user input to a real shell (sh -c on Unix, cmd /c on Windows).
|
Package shell dispatches `!cmd` user input to a real shell (sh -c on Unix, cmd /c on Windows). |
|
timeouts
Package timeouts centralises the task-timeout policy for nightme.
|
Package timeouts centralises the task-timeout policy for nightme. |
|
updater
Package updater — self-update support for nightme.
|
Package updater — self-update support for nightme. |
|
version
Package version — runtime version-check support.
|
Package version — runtime version-check support. |
|
wfe
Package wfe — workflow engine.
|
Package wfe — workflow engine. |
Click to show internal directories.
Click to hide internal directories.

