internal/

directory
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: MIT

Directories

Path Synopsis
Package acp implements the Agent Client Protocol (ACP) surface for ZERO: a JSON-RPC 2.0 peer spoken over stdio (newline-delimited JSON) so editors such as Zed, JetBrains, and Neovim can drive ZERO's agent core as a backend.
Package acp implements the Agent Client Protocol (ACP) surface for ZERO: a JSON-RPC 2.0 peer spoken over stdio (newline-delimited JSON) so editors such as Zed, JetBrains, and Neovim can drive ZERO's agent core as a backend.
Package agentinit builds the bootstrap prompt for the guided /init flow that generates a project AGENTS.md.
Package agentinit builds the bootstrap prompt for the guided /init flow that generates a project AGENTS.md.
Package browser opens a URL in the user's default web browser.
Package browser opens a URL in the user's default web browser.
Package credstore persists provider API keys outside config.json so secrets are not written to disk in cleartext.
Package credstore persists provider API keys outside config.json so secrets are not written to disk in cleartext.
Package cron implements a small, dependency-free standard 5-field cron parser and next-run evaluator for the `zero cron` scheduler.
Package cron implements a small, dependency-free standard 5-field cron parser and next-run evaluator for the `zero cron` scheduler.
Package daemon implements zero's long-running daemon/server mode: a local control server that supervises a pool of headless `zero exec` worker processes and routes multiple agent sessions to them over an owner-only local socket.
Package daemon implements zero's long-running daemon/server mode: a local control server that supervises a pool of headless `zero exec` worker processes and routes multiple agent sessions to them over an owner-only local socket.
remote
Package remote adds an OPT-IN, TLS-only network bridge on top of zero's local daemon (internal/daemon).
Package remote adds an OPT-IN, TLS-only network bridge on top of zero's local daemon (internal/daemon).
Package dictation implements speech-to-text capture and transcription for the composer: press a key, talk, and the transcript lands in the input for review — never auto-fired at the agent.
Package dictation implements speech-to-text capture and transcription for the composer: press a key, talk, and the transcript lands in the input for review — never auto-fired at the agent.
Package errhint classifies provider/model failures into a few user-actionable categories and turns them into a one-line "next step" hint.
Package errhint classifies provider/model failures into a few user-actionable categories and turns them into a one-line "next step" hint.
Package execprofile defines named execution profiles: bundles of loop-posture knobs (turn budget, reasoning effort, self-correction, escalation triggers) that tune how hard the agent loop tries, independent of which model runs.
Package execprofile defines named execution profiles: bundles of loop-posture knobs (turn budget, reasoning effort, self-correction, escalation triggers) that tune how hard the agent loop tries, independent of which model runs.
Package execution defines the platform-neutral command execution contract.
Package execution defines the platform-neutral command execution contract.
Package fsutil provides small filesystem helpers shared across packages.
Package fsutil provides small filesystem helpers shared across packages.
Package gitsafe builds the read-only git commands Zero runs on its own, as opposed to a git command the user or the model asked for: the status and diff calls behind the TUI's changed-files sweep, its pull request diffstat and the scratch-file warning, which run without anyone asking for git.
Package gitsafe builds the read-only git commands Zero runs on its own, as opposed to a git command the user or the model asked for: the status and diff calls behind the TUI's changed-files sweep, its pull request diffstat and the scratch-file warning, which run without anyone asking for git.
Package imageinput is the single shared loader for local image files used by every input surface (CLI exec --image, TUI /image).
Package imageinput is the single shared loader for local image files used by every input surface (CLI exec --image, TUI /image).
Package installtxn provides the cross-process filesystem transaction used by plugin and skill installation.
Package installtxn provides the cross-process filesystem transaction used by plugin and skill installation.
Package keyring provides a small, dependency-free secret store backed by the operating system's native credential tooling: the `security` keychain CLI on macOS and `secret-tool` (libsecret) on Linux.
Package keyring provides a small, dependency-free secret store backed by the operating system's native credential tooling: the `security` keychain CLI on macOS and `secret-tool` (libsecret) on Linux.
Package lockutil provides cross-process advisory file locks used by cron, daemon, hooks, oauth, and swarm.
Package lockutil provides cross-process advisory file locks used by cron, daemon, hooks, oauth, and swarm.
Package lsp is a direct Language Server Protocol client: ZERO spawns the language server itself and speaks LSP JSON-RPC over stdio, so an unattended run (cron/CI, no open editor) can still see real compiler diagnostics.
Package lsp is a direct Language Server Protocol client: ZERO spawns the language server itself and speaks LSP JSON-RPC over stdio, so an unattended run (cron/CI, no open editor) can still see real compiler diagnostics.
Package minify produces a denser, token-cheaper VIEW of a source file for read-only exploration.
Package minify produces a denser, token-cheaper VIEW of a source file for read-only exploration.
Package notify emits dep-free terminal notifications (BEL and/or OSC-9 desktop notifications) when Zero finishes a turn or needs user input.
Package notify emits dep-free terminal notifications (BEL and/or OSC-9 desktop notifications) when Zero finishes a turn or needs user input.
Package oauth is zero's reusable OAuth 2.0 engine.
Package oauth is zero's reusable OAuth 2.0 engine.
Package observability provides dependency-free crash capture for the CLI: a recovered panic is written to a local crash report (timestamp, label, stack) and surfaced to the user as a brief notice instead of a raw stack trace.
Package observability provides dependency-free crash capture for the CLI: a recovered panic is written to a local crash report (timestamp, label, stack) and surfaced to the user as a brief notice instead of a raw stack trace.
Package pathjail confines file operations to a directory tree.
Package pathjail confines file operations to a directory tree.
Package privatedir creates and safely hardens current-user-owned state directories without applying permission changes through a path-only check.
Package privatedir creates and safely hardens current-user-owned state directories without applying permission changes through a path-only check.
Package providerhealth validates provider configuration and optionally probes the configured provider endpoint with a bounded, non-generating request.
Package providerhealth validates provider configuration and optionally probes the configured provider endpoint with a bounded, non-generating request.
ChatGPT-specific login flow.
ChatGPT-specific login flow.
Package proxydial answers one question for an SSRF-guarded dialer: is this dial the connection dial of a request the transport routed through a forward proxy?
Package proxydial answers one question for an SSRF-guarded dialer: is this dial the connection dial of a request the transport routed through a forward proxy?
Package repoinfo characterizes a repository from local git commands only (no network).
Package repoinfo characterizes a repository from local git commands only (no network).
Package repomap scans a workspace into a compact, deterministic repository map.
Package repomap scans a workspace into a compact, deterministic repository map.
Package secrets provides a lightweight, dependency-free scanner for high-confidence secret patterns (cloud keys, provider tokens, private keys, JWTs).
Package secrets provides a lightweight, dependency-free scanner for high-confidence secret patterns (cloud keys, provider tokens, private keys, JWTs).
Package securefile provides AES-256-GCM encryption-at-rest for small on-disk blobs under a per-user random secret persisted (0600) beside the data file.
Package securefile provides AES-256-GCM encryption-at-rest for small on-disk blobs under a per-user random secret persisted (0600) beside the data file.
Package skills discovers reusable instruction "skills" stored on disk as */SKILL.md files.
Package skills discovers reusable instruction "skills" stored on disk as */SKILL.md files.
Package swarm adds a multi-agent SWARM on top of zero's single sub-agent mechanism (internal/specialist): an orchestrator can spawn and coordinate MULTIPLE specialist members that run concurrently, communicate via per-agent mailboxes, and hand work off.
Package swarm adds a multi-agent SWARM on top of zero's single sub-agent mechanism (internal/specialist): an orchestrator can spawn and coordinate MULTIPLE specialist members that run concurrently, communicate via per-agent mailboxes, and hand work off.
Package testutil provides small, shared helpers for tests across the codebase.
Package testutil provides small, shared helpers for tests across the codebase.
Package trace records per-turn timing for a Zero agent run.
Package trace records per-turn timing for a Zero agent run.
file_view.go is the drill-in view for a touched file, opened from the FILES sidebar section (files_panel.go).
file_view.go is the drill-in view for a touched file, opened from the FILES sidebar section (files_panel.go).
Package usercommands loads user-defined slash commands from markdown files.
Package usercommands loads user-defined slash commands from markdown files.
Package workspaceindex provides shared deterministic workspace scanning primitives for repo intelligence, tools, and context accounting.
Package workspaceindex provides shared deterministic workspace scanning primitives for repo intelligence, tools, and context accounting.
Package workspaceseed builds a compact, deterministic workspace context seed for future agent prompt/session wiring.
Package workspaceseed builds a compact, deterministic workspace context seed for future agent prompt/session wiring.
Package workspacetrust records which workspace roots the user has explicitly trusted, so Zero can gate project-scoped executable config (hooks, plugins) behind an opt-in per workspace and fail closed on any error.
Package workspacetrust records which workspace roots the user has explicitly trusted, so Zero can gate project-scoped executable config (hooks, plugins) behind an opt-in per workspace and fail closed on any error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL