Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
pigo
command
Command pigo is the CLI entry point for the pigo agent.
|
Command pigo is the CLI entry point for the pigo agent. |
|
internal
|
|
|
agentcore
Package agentcore defines the core "leaf" data types and control flow for the pigo agent harness, a Go reimplementation of the pi agent loop.
|
Package agentcore defines the core "leaf" data types and control flow for the pigo agent harness, a Go reimplementation of the pi agent loop. |
|
agenttool
This file implements background bash execution: a BashJobStore holding the commands launched with run_in_background, and the BashJob state each one carries.
|
This file implements background bash execution: a BashJobStore holding the commands launched with run_in_background, and the BashJob state each one carries. |
|
builtinskills
This file holds the first-run bootstrap: on the first launch (per pigo home), the built-in skill collections in Manifest are copied into the user's skills directory so they load as /skill-name commands with no manual install.
|
This file holds the first-run bootstrap: on the first launch (per pigo home), the built-in skill collections in Manifest are copied into the user's skills directory so they load as /skill-name commands with no manual install. |
|
cli
Package cli is the contract and shared-type layer for pigo's command-line surface.
|
Package cli is the contract and shared-type layer for pigo's command-line surface. |
|
cli/btw
This file implements the /btw command (mirrors Claude Code's /btw and the pi agent extension @narumitw/pi-btw): a throwaway "side thread" for asking the model a quick side question that must NOT pollute the main conversation.
|
This file implements the /btw command (mirrors Claude Code's /btw and the pi agent extension @narumitw/pi-btw): a throwaway "side thread" for asking the model a quick side question that must NOT pollute the main conversation. |
|
cli/config
Package config implements pigo's optional user config file at ~/.config/pigo/config.toml (honoring $XDG_CONFIG_HOME when set) plus the provider-agnostic base-url env-var name derivation.
|
Package config implements pigo's optional user config file at ~/.config/pigo/config.toml (honoring $XDG_CONFIG_HOME when set) plus the provider-agnostic base-url env-var name derivation. |
|
cli/goal
This file implements the /goal command (mirrors pi-goal / Claude Code's goal mode): given a high-level objective, pigo runs the agent autonomously — re-prompting it turn after turn from the loop's follow-up seam — until the model declares the goal done (goal_complete), reports a true impasse (goal_blocked), or a safety guard (max turns / no-progress) or the token budget stops it.
|
This file implements the /goal command (mirrors pi-goal / Claude Code's goal mode): given a high-level objective, pigo runs the agent autonomously — re-prompting it turn after turn from the loop's follow-up seam — until the model declares the goal done (goal_complete), reports a true impasse (goal_blocked), or a safety guard (max turns / no-progress) or the token budget stops it. |
|
cli/headless
This file is the headless run driver: the print / stream-json run path (US-020) extracted from the CLI dispatch seam (#363).
|
This file is the headless run driver: the print / stream-json run path (US-020) extracted from the CLI dispatch seam (#363). |
|
cli/memstatus
This file implements the /memory slash command (US-011, FR-20, #484) that prints a colored report describing the persistent memory store and the infinite-context state: entry counts by scope, the current context window and auto-compaction trigger point, current context usage, and checkpoint status.
|
This file implements the /memory slash command (US-011, FR-20, #484) that prints a colored report describing the persistent memory store and the infinite-context state: entry counts by scope, the current context window and auto-compaction trigger point, current context usage, and checkpoint status. |
|
cli/pkgcmd
Package pkgcmd wires pigo's package-management subcommands (#162, #163, #164) into the CLI: `pigo install|list|uninstall|update ...`.
|
Package pkgcmd wires pigo's package-management subcommands (#162, #163, #164) into the CLI: `pigo install|list|uninstall|update ...`. |
|
cli/prompts
Package prompts holds the slash-command registry assembly shared by the REPL (internal/cli/repl) and the forthcoming TUI (internal/cli/tui).
|
Package prompts holds the slash-command registry assembly shared by the REPL (internal/cli/repl) and the forthcoming TUI (internal/cli/tui). |
|
cli/repl
This file implements the manual `/dream` REPL command (SPEC §4.1, US-007): it spawns the process-isolated memory-consolidation subprocess (`pigo --dream [--dream-dry-run] -C <projectDir>`), captures the single-line Report JSON the child writes to stdout (SPEC §4.2), and renders it as a full-table change report.
|
This file implements the manual `/dream` REPL command (SPEC §4.1, US-007): it spawns the process-isolated memory-consolidation subprocess (`pigo --dream [--dream-dry-run] -C <projectDir>`), captures the single-line Report JSON the child writes to stdout (SPEC §4.2), and renders it as a full-table change report. |
|
cli/run
This file provides the single convergence entry point every driver calls to wire hooks into its run (#425, FR-16).
|
This file provides the single convergence entry point every driver calls to wire hooks into its run (#425, FR-16). |
|
cli/status
This file implements the /status slash command (US-002, #292) that prints a colored multi-section status report with runtime config, context usage, and more.
|
This file implements the /status slash command (US-002, #292) that prints a colored multi-section status report with runtime config, context usage, and more. |
|
cli/testutil
Package testutil holds test helpers shared across the internal/cli subpackages.
|
Package testutil holds test helpers shared across the internal/cli subpackages. |
|
cli/tui
Package tui hosts the full-screen terminal UI for pigo's interactive mode (US-001).
|
Package tui hosts the full-screen terminal UI for pigo's interactive mode (US-001). |
|
cli/ui
Package ui holds the leaf terminal-UI helpers shared across the cmd/pigo and internal/cli subpackages: ANSI color gating (color.go), turn-end Markdown rendering (markdown.go), and prompt image-reference parsing (imageref.go).
|
Package ui holds the leaf terminal-UI helpers shared across the cmd/pigo and internal/cli subpackages: ANSI color gating (color.go), turn-end Markdown rendering (markdown.go), and prompt image-reference parsing (imageref.go). |
|
clipboard
Package clipboard writes text to the system clipboard by shelling out to the platform's clipboard utility (US-009, #125).
|
Package clipboard writes text to the system clipboard by shelling out to the platform's clipboard utility (US-009, #125). |
|
compaction
This file (US-003) ties the compaction pieces together: given a message list and settings, it finds the cut point, extracts file operations from the summarized range, generates the structured summary, and returns a CompactionResult ready to be persisted as a session compaction entry and used to rebuild the agent context.
|
This file (US-003) ties the compaction pieces together: given a message list and settings, it finds the cut point, extracts file operations from the summarized range, generates the structured summary, and returns a CompactionResult ready to be persisted as a session compaction entry and used to rebuild the agent context. |
|
dream
Package dream implements the /dream memory-consolidation feature's foundation layer: the resolved dream configuration, on-disk run state, and the deterministic due-check that decides whether an auto-trigger is warranted.
|
Package dream implements the /dream memory-consolidation feature's foundation layer: the resolved dream configuration, on-disk run state, and the deterministic due-check that decides whether an auto-trigger is warranted. |
|
hooks
Package hooks implements pigo's user-extensible lifecycle hook system: a config-driven way to run shell commands at agent lifecycle points (tool calls, prompt submission, session start/end, etc.) without writing Go or compiling a plugin.
|
Package hooks implements pigo's user-extensible lifecycle hook system: a config-driven way to run shell commands at agent lifecycle points (tool calls, prompt submission, session start/end, etc.) without writing Go or compiling a plugin. |
|
jsonrpc
Package jsonrpc implements a minimal JSON-RPC 2.0 client over a subprocess's stdio (US-014/#116).
|
Package jsonrpc implements a minimal JSON-RPC 2.0 client over a subprocess's stdio (US-014/#116). |
|
memory
Package memory implements the persistent memory storage layer for pigo.
|
Package memory implements the persistent memory storage layer for pigo. |
|
pihost
Package pihost embeds the pi-extension host program (pihost.mjs) into the pigo binary.
|
Package pihost embeds the pi-extension host program (pihost.mjs) into the pigo binary. |
|
pkgmgr
This file classifies a fetched pi package into its type(s) — extension, skill, prompt, or theme (#157).
|
This file classifies a fetched pi package into its type(s) — extension, skill, prompt, or theme (#157). |
|
plugin
This file bridges the agent's event stream to subscribed plugins (US-017, #133).
|
This file bridges the agent's event stream to subscribed plugins (US-017, #133). |
|
provider
This file implements the Anthropic Messages API streaming decoder (US-008).
|
This file implements the Anthropic Messages API streaming decoder (US-008). |
|
remotecontrol
Package remotecontrol implements the /remote-control feature: an in-process web server that lets a phone on the same LAN mirror the CLI session, inject prompts, and approve risky tool calls (see tasks/spec-remote-control.md).
|
Package remotecontrol implements the /remote-control feature: an in-process web server that lets a phone on the same LAN mirror the CLI session, inject prompts, and approve risky tool calls (see tasks/spec-remote-control.md). |
|
runtime
This file implements shell-style argument tokenization for prompt templates (US-001, #331).
|
This file implements shell-style argument tokenization for prompt templates (US-001, #331). |
|
selfupdate
This file caches the latest-release check so pigo's startup banner can show "update available" without a network call on every launch (US-004, FR-10).
|
This file caches the latest-release check so pigo's startup banner can show "update available" without a network call on every launch (US-004, FR-10). |
|
session
This file implements session export/import (US-008, #124): a session can be exported to a self-contained JSONL or HTML file, and a JSONL export can be imported back as a fresh, resumable session.
|
This file implements session export/import (US-008, #124): a session can be exported to a self-contained JSONL or HTML file, and a JSONL export can be imported back as a fresh, resumable session. |
|
trust
This file holds the interactive pieces of project trust (US-018, #134).
|
This file holds the interactive pieces of project trust (US-018, #134). |
Click to show internal directories.
Click to hide internal directories.
