internal/

directory
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: Apache-2.0, MIT

Directories

Path Synopsis
Package acp implements the ACP (Agent Communication Protocol) server: newline-delimited JSON-RPC 2.0 over stdio, the agent-event-to-update view translator, and the control-channel policy (auto-answer, auto-continue) for machine-to-machine clients.
Package acp implements the ACP (Agent Communication Protocol) server: newline-delimited JSON-RPC 2.0 over stdio, the agent-event-to-update view translator, and the control-channel policy (auto-answer, auto-continue) for machine-to-machine clients.
Package agent provides the core agent loop for yaah.
Package agent provides the core agent loop for yaah.
context
Package context provides pure helper functions for agent context-window management: token estimation, payload sizing, turn splitting, pruning, chunked compaction, and tool-result truncation.
Package context provides pure helper functions for agent context-window management: token estimation, payload sizing, turn splitting, pruning, chunked compaction, and tool-result truncation.
errorclassify
Package errorclassify provides structured error classification for LLM provider failures.
Package errorclassify provides structured error classification for LLM provider failures.
events
Package events defines the typed event system for the agent loop.
Package events defines the typed event system for the agent loop.
llm
pipeline
Package pipeline — soft-prune core.
Package pipeline — soft-prune core.
runner
Package runner wires sub-agent execution: it builds the per-role tool registries, resolves provider/model/timeout/iteration budgets, assembles the sub-agent system prompt, and constructs the top-level TaskTool that the planner uses to spawn sub-agents.
Package runner wires sub-agent execution: it builds the per-role tool registries, resolves provider/model/timeout/iteration budgets, assembles the sub-agent system prompt, and constructs the top-level TaskTool that the planner uses to spawn sub-agents.
Package banner provides the figlet + lolcat startup banner shared between the CLI REPL and the TUI.
Package banner provides the figlet + lolcat startup banner shared between the CLI REPL and the TUI.
Package config loads and manages the yaah configuration file at ~/.yaah/config.yaml (or $YAAH_HOME/config.yaml if the env var is set).
Package config loads and manages the yaah configuration file at ~/.yaah/config.yaml (or $YAAH_HOME/config.yaml if the env var is set).
Package control defines the control-plane message types sent from tool handlers and session infrastructure to a UI consumer (TUI, REPL, web, ACP).
Package control defines the control-plane message types sent from tool handlers and session infrastructure to a UI consumer (TUI, REPL, web, ACP).
Package instructions discovers and loads project instruction files (AGENTS.md, CLAUDE.md, CONTEXT.md) by walking up from the current working directory to the worktree root.
Package instructions discovers and loads project instruction files (AGENTS.md, CLAUDE.md, CONTEXT.md) by walking up from the current working directory to the worktree root.
context.go defines the context-key contract between the task tool, the sub-agent runner, and the agent loop: model writeback, start notification, usage accumulation, and stuck-child heartbeats.
context.go defines the context-key contract between the task tool, the sub-agent runner, and the agent loop: model writeback, start notification, usage accumulation, and stuck-child heartbeats.
Package mcp implements the Model Context Protocol (MCP) client for yaah.
Package mcp implements the Model Context Protocol (MCP) client for yaah.
Package memory provides the SQLite-backed persistence layer for yaah.
Package memory provides the SQLite-backed persistence layer for yaah.
Package observability provides OpenTelemetry tracing and metrics for the yaah agent harness.
Package observability provides OpenTelemetry tracing and metrics for the yaah agent harness.
Package plans discovers and parses PLAN.md files from the standard locations: project (.agents/plans/) and user-level (~/.agents/plans/).
Package plans discovers and parses PLAN.md files from the standard locations: project (.agents/plans/) and user-level (~/.agents/plans/).
Package prompts provides the embedded system prompt identity and assembly functions for constructing the full system prompt from multiple layers: embedded identity, user context, project context, memory, and skills.
Package prompts provides the embedded system prompt identity and assembly functions for constructing the full system prompt from multiple layers: embedded identity, user context, project context, memory, and skills.
Package providers implements model provider clients for yaah.
Package providers implements model provider clients for yaah.
Package repl implements the interactive read-eval-print loop for yaah.
Package repl implements the interactive read-eval-print loop for yaah.
Package skills discovers and parses SKILL.md files from the standard locations: project (.agents/skills/), yaah (~/.yaah/skills/), and user-level cross-tool (~/.agents/skills/).
Package skills discovers and parses SKILL.md files from the standard locations: project (.agents/skills/), yaah (~/.yaah/skills/), and user-level cross-tool (~/.agents/skills/).
Package spinner provides a simple terminal spinner for indicating background processing.
Package spinner provides a simple terminal spinner for indicating background processing.
Package toolfmt provides shared tool result formatting helpers used by both the TUI and web views.
Package toolfmt provides shared tool result formatting helpers used by both the TUI and web views.
subagent_aliases.go re-exports the sub-agent I/O contract and context-key helpers from internal/jobs so existing consumers keep compiling while the implementation lives in the jobs package.
subagent_aliases.go re-exports the sub-agent I/O contract and context-key helpers from internal/jobs so existing consumers keep compiling while the implementation lives in the jobs package.
tui
state.go — focus state and query helpers.
state.go — focus state and query helpers.
colors
Package colors provides shared tview color tokens and helpers used by all TUI component packages.
Package colors provides shared tview color tokens and helpers used by all TUI component packages.
components/approval
Package approval renders interactive approval modals for tool calls.
Package approval renders interactive approval modals for tool calls.
components/backgroundjobs
Package backgroundjobs renders running background sub-agents in a compact side-pane format.
Package backgroundjobs renders running background sub-agents in a compact side-pane format.
components/command
Package command implements the colon command parser and command palette for the TUI.
Package command implements the colon command parser and command palette for the TUI.
components/contextinfo
Package contextinfo formats the context-window / token usage section.
Package contextinfo formats the context-window / token usage section.
components/error
Package error provides the error overlay modal for displaying errors in the TUI.
Package error provides the error overlay modal for displaying errors in the TUI.
components/help
Package help renders the help overlay showing keybindings and commands.
Package help renders the help overlay showing keybindings and commands.
components/mcpinfo
Package mcpinfo formats the MCP server status section.
Package mcpinfo formats the MCP server status section.
components/messages
Package messages builds and renders the conversation message area.
Package messages builds and renders the conversation message area.
components/modal
Package modal provides a common modal wrapper for consistent sizing and centering across all TUI overlays.
Package modal provides a common modal wrapper for consistent sizing and centering across all TUI overlays.
components/question
Package question renders interactive question modals in the TUI.
Package question renders interactive question modals in the TUI.
components/sessioninfo
Package sessioninfo formats the agent info section.
Package sessioninfo formats the agent info section.
components/thinking
Package thinking renders the animated "Reasoning..." / "Thinking..." indicator with lolcat rainbow coloring and a braille spinner.
Package thinking renders the animated "Reasoning..." / "Thinking..." indicator with lolcat rainbow coloring and a braille spinner.
components/todo
Package todo renders the TODO list in the infopane right side panel.
Package todo renders the TODO list in the infopane right side panel.
lolcat
Package lolcat provides tview-compatible rainbow coloring for the TUI.
Package lolcat provides tview-compatible rainbow coloring for the TUI.
Package types defines the core data structures for yaah's provider communication layer: chat messages, tool definitions, and provider request/response shapes.
Package types defines the core data structures for yaah's provider communication layer: chat messages, tool definitions, and provider request/response shapes.
Package update handles checking for and applying yaah updates from GitHub Releases.
Package update handles checking for and applying yaah updates from GitHub Releases.

Jump to

Keyboard shortcuts

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