internal/

directory
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT

Directories

Path Synopsis
Package agent implements ub's headless provider/tool loop.
Package agent implements ub's headless provider/tool loop.
Package approval defines the secondary approval-agent interface used by auto execution mode.
Package approval defines the secondary approval-agent interface used by auto execution mode.
Package cli wires the cobra command tree for the ub binary.
Package cli wires the cobra command tree for the ub binary.
Package config provides layered YAML configuration loading for ub.
Package config provides layered YAML configuration loading for ub.
Package context estimates and prepares model context windows.
Package context estimates and prepares model context windows.
Package execution defines session execution modes and mode-level gates.
Package execution defines session execution modes and mode-level gates.
Package hook runs shell hooks at agent lifecycle points (pre/post tool call, pre/post user turn) so users can attach gofmt, audit logging, lint gates etc.
Package hook runs shell hooks at agent lifecycle points (pre/post tool call, pre/post user turn) so users can attach gofmt, audit logging, lint gates etc.
Package logx configures process-wide structured logging.
Package logx configures process-wide structured logging.
Package lsp implements ub's minimal Language Server Protocol client.
Package lsp implements ub's minimal Language Server Protocol client.
Package maintenance runs low-frequency startup cleanup tasks.
Package maintenance runs low-frequency startup cleanup tasks.
Package mcp implements ub's Model Context Protocol client.
Package mcp implements ub's Model Context Protocol client.
Package memory persists durable, agent-visible facts about the user's workspace ("build command is X", "issue #42 root cause is Y") and the user's broader environment ("prefer pnpm over npm", "VPN URL is Z").
Package memory persists durable, agent-visible facts about the user's workspace ("build command is X", "issue #42 root cause is Y") and the user's broader environment ("prefer pnpm over npm", "VPN URL is Z").
Package message defines ub's provider-neutral message model.
Package message defines ub's provider-neutral message model.
Package modelinfo resolves model capability metadata.
Package modelinfo resolves model capability metadata.
Package paths centralizes all XDG-based and project-keyed directory calculations for ub.
Package paths centralizes all XDG-based and project-keyed directory calculations for ub.
Package permission implements execution-mode-aware tool approval.
Package permission implements execution-mode-aware tool approval.
Package provider defines ub's SDK-neutral LLM provider runtime.
Package provider defines ub's SDK-neutral LLM provider runtime.
anthropic
Package anthropic implements ub's Anthropic provider adapter.
Package anthropic implements ub's Anthropic provider adapter.
compat
Package compat registers OpenAI-compatible chat providers.
Package compat registers OpenAI-compatible chat providers.
fake
Package fake implements a deterministic script-driven provider.
Package fake implements a deterministic script-driven provider.
openai
Package openai implements ub's OpenAI provider adapter.
Package openai implements ub's OpenAI provider adapter.
Package reasoning defines provider-neutral reasoning controls.
Package reasoning defines provider-neutral reasoning controls.
Package rollout persists the event log for ub sessions.
Package rollout persists the event log for ub sessions.
Package store provides SQLite-backed persistence for ub sessions.
Package store provides SQLite-backed persistence for ub sessions.
Package tool defines ub's local tool surface: a Tool interface, risk taxonomy, preview protocol and a Registry for assembling the set of tools an agent loop can call.
Package tool defines ub's local tool surface: a Tool interface, risk taxonomy, preview protocol and a Registry for assembling the set of tools an agent loop can call.
fs
Package fs implements the workspace file-system tool group (read, ls, glob, write, edit).
Package fs implements the workspace file-system tool group (read, ls, glob, write, edit).
job
Package job implements the long-running background process tools: job_run, job_output and job_kill.
Package job implements the long-running background process tools: job_run, job_output and job_kill.
lsp
Package lsp exposes language-server queries as ub tools.
Package lsp exposes language-server queries as ub tools.
mcp
Package mcp adapts remote MCP tools to ub's local tool interface.
Package mcp adapts remote MCP tools to ub's local tool interface.
memory
Package memory implements the `remember` and `recall` tools that let an agent write and search durable facts.
Package memory implements the `remember` and `recall` tools that let an agent write and search durable facts.
plan
Package plan implements the plan-then-execute artifact workflow: agents (or users) write a structured markdown plan to the user's state directory ($XDG_STATE_HOME/ub/plans/<project-key>/), and later mark individual steps done / skipped / failed as work proceeds.
Package plan implements the plan-then-execute artifact workflow: agents (or users) write a structured markdown plan to the user's state directory ($XDG_STATE_HOME/ub/plans/<project-key>/), and later mark individual steps done / skipped / failed as work proceeds.
procgroup
Package procgroup encapsulates POSIX process-group creation and signalling for tool implementations that need to reliably kill an entire subprocess tree (the child plus any grandchildren it spawns).
Package procgroup encapsulates POSIX process-group creation and signalling for tool implementations that need to reliably kill an entire subprocess tree (the child plus any grandchildren it spawns).
search
Package search implements the grep code-search tool.
Package search implements the grep code-search tool.
shell
Package shell implements the bash shell-command tool.
Package shell implements the bash shell-command tool.
task
Package task implements the `task` tool: dispatch a sub-agent to do one focused sub-prompt (e.g.
Package task implements the `task` tool: dispatch a sub-agent to do one focused sub-prompt (e.g.
Package tooloutput limits model-visible tool results and manages spillover files for full outputs.
Package tooloutput limits model-visible tool results and manages spillover files for full outputs.
tui
Package tui contains the Bubble Tea terminal interface for ub.
Package tui contains the Bubble Tea terminal interface for ub.
dialog/permission
Package permissiondialog renders the TUI permission approval modal.
Package permissiondialog renders the TUI permission approval modal.
diffview
Package diffview renders unified diffs for terminal UI surfaces.
Package diffview renders unified diffs for terminal UI surfaces.
slash
Package slash parses TUI slash commands.
Package slash parses TUI slash commands.
tuitheme
Package tuitheme contains the small built-in visual theme used by the TUI.
Package tuitheme contains the small built-in visual theme used by the TUI.
Package vcr records and replays HTTP interactions using JSONL cassettes.
Package vcr records and replays HTTP interactions using JSONL cassettes.

Jump to

Keyboard shortcuts

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