internal/

directory
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: AGPL-3.0

Directories

Path Synopsis
Package agents provides jungi's built-in agent definitions as an embedded filesystem.
Package agents provides jungi's built-in agent definitions as an embedded filesystem.
reviewer
Package reviewer provides definitions for per-perspective code review agents.
Package reviewer provides definitions for per-perspective code review agents.
core
agentreg
Package agentreg provides subagent infrastructure for jungi.
Package agentreg provides subagent infrastructure for jungi.
approval
Package approval defines the request/response types used when the model invokes tools that require user approval.
Package approval defines the request/response types used when the model invokes tools that require user approval.
auth
Package auth manages credentials stored on disk.
Package auth manages credentials stored on disk.
autoapprove
Package autoapprove provides an AI-powered evaluator for tool approval decisions.
Package autoapprove provides an AI-powered evaluator for tool approval decisions.
compact
Package compact implements the /compact slash command logic.
Package compact implements the /compact slash command logic.
config
Package config resolves well-known filesystem paths for jungi data.
Package config resolves well-known filesystem paths for jungi data.
control
Package control implements the client side of the "jungi control" remote messenger service integration.
Package control implements the client side of the "jungi control" remote messenger service integration.
export
Package export writes a session's message history to disk as JSON Lines so users can inspect or archive a conversation outside the TUI.
Package export writes a session's message history to disk as JSON Lines so users can inspect or archive a conversation outside the TUI.
git
Package git provides low-level git helpers used by the plan executor and worktree manager.
Package git provides low-level git helpers used by the plan executor and worktree manager.
hooksreg
Package hooksreg implements a lifecycle hook system for jungi.
Package hooksreg implements a lifecycle hook system for jungi.
logger
Package logger provides structured, append-only event logging for jungi.
Package logger provides structured, append-only event logging for jungi.
lsp
Package lsp drives Language Server Protocol clients for a jungi session.
Package lsp drives Language Server Protocol clients for a jungi session.
mdreg
Package mdreg provides the shared foundation for jungi's markdown-plus- frontmatter "content registries": agentreg, promptreg, and skillreg.
Package mdreg provides the shared foundation for jungi's markdown-plus- frontmatter "content registries": agentreg, promptreg, and skillreg.
orchestrator
Package orchestrator provides a reusable plan → fan-out → assemble pipeline for coordinating multiple subagents.
Package orchestrator provides a reusable plan → fan-out → assemble pipeline for coordinating multiple subagents.
planengine
Package planengine implements the storage, tools, and embedded skills that power the /plan and /execute slash commands.
Package planengine implements the storage, tools, and embedded skills that power the /plan and /execute slash commands.
promptreg
Package promptreg loads user-defined prompts from disk and exposes them to sessions as a first-class registry.
Package promptreg loads user-defined prompts from disk and exposes them to sessions as a first-class registry.
reorder
Package reorder implements a single, collision-safe algorithm for moving a row to a new 1-based position among its ord-ordered siblings.
Package reorder implements a single, collision-safe algorithm for moving a row to a new 1-based position among its ord-ordered siblings.
review
Package review provides the orchestration factory for the /review command.
Package review provides the orchestration factory for the /review command.
sandbox
Package sandbox provides platform-aware process sandboxing.
Package sandbox provides platform-aware process sandboxing.
session
Package session ties together the message history, usage totals, and identity for one continuous conversation with the model.
Package session ties together the message history, usage totals, and identity for one continuous conversation with the model.
settings
Package settings loads and validates user configuration for jungi.
Package settings loads and validates user configuration for jungi.
skillreg
Package skillreg loads filesystem-based skills from disk and exposes them to the model via a jungi built-in tool.
Package skillreg loads filesystem-based skills from disk and exposes them to the model via a jungi built-in tool.
statestore
Package statestore owns the shared SQLite database that jungi keeps under <repo>/.jungi/state/state.db.
Package statestore owns the shared SQLite database that jungi keeps under <repo>/.jungi/state/state.db.
systemprompt
Package systemprompt builds the system prompt sent with every API request.
Package systemprompt builds the system prompt sent with every API request.
tasklist
Package tasklist implements a small, self-contained store for labelled, ordered collections of tasks.
Package tasklist implements a small, self-contained store for labelled, ordered collections of tasks.
toolexec
Package toolexec orchestrates the agentic tool-use loop between the Anthropic API client and local tool execution.
Package toolexec orchestrates the agentic tool-use loop between the Anthropic API client and local tool execution.
toolsreg
Package toolsreg assembles the set of built-in tool definitions advertised to the model.
Package toolsreg assembles the set of built-in tool definitions advertised to the model.
version
Package version exposes the jungi build version.
Package version exposes the jungi build version.
worktree
Package worktree manages per-session git worktrees rooted under <repo>/.jungi/state/worktrees/<id>/.
Package worktree manages per-session git worktrees rooted under <repo>/.jungi/state/worktrees/<id>/.
Package hooks defines jungi's first-party built-in hook catalog.
Package hooks defines jungi's first-party built-in hook catalog.
githubpr
Package githubpr implements the "github-pr" built-in hook.
Package githubpr implements the "github-pr" built-in hook.
notify
Package notify implements the "notify" built-in hook, which sends a desktop notification on each subscribed lifecycle event.
Package notify implements the "notify" built-in hook, which sends a desktop notification on each subscribed lifecycle event.
Package provider defines the provider-neutral concept of a model provider: an identifier, a human-readable display name, and the credential key used to authenticate requests to it.
Package provider defines the provider-neutral concept of a model provider: an identifier, a human-readable display name, and the credential key used to authenticate requests to it.
client
Package client's Anthropic implementation wraps the Anthropic Beta Messages API with two capabilities beyond basic request/response: prompt caching (5-minute ephemeral cache) and automatic context compaction via the "compact-2026-01-12" beta feature.
Package client's Anthropic implementation wraps the Anthropic Beta Messages API with two capabilities beyond basic request/response: prompt caching (5-minute ephemeral cache) and automatic context compaction via the "compact-2026-01-12" beta feature.
message
Package message defines the Message type and the three roles a turn can occupy in a jungi conversation.
Package message defines the Message type and the three roles a turn can occupy in a jungi conversation.
model
Package model provides a static registry mapping model identifiers to their context limits and current pricing tiers, across all supported providers.
Package model provides a static registry mapping model identifiers to their context limits and current pricing tiers, across all supported providers.
tooldef
Package tooldef defines the provider-neutral tool-definition contract.
Package tooldef defines the provider-neutral tool-definition contract.
usage
Package usage tracks token consumption and dollar cost across API requests.
Package usage tracks token consumption and dollar cost across API requests.
tools
editfile
Package editfile implements the jungi built-in edit_file tool commands.
Package editfile implements the jungi built-in edit_file tool commands.
plan
Package plan implements the plan-management tools (create_plan, add_ticket, ..., research_codebase).
Package plan implements the plan-management tools (create_plan, add_ticket, ..., research_codebase).
runshell
Package runshell implements the sandboxed run_shell tool definition and executor.
Package runshell implements the sandboxed run_shell tool definition and executor.
rununsafeshell
Package rununsafeshell implements the run_unsafe_shell tool — an unsandboxed shell executor that requires user approval before running.
Package rununsafeshell implements the run_unsafe_shell tool — an unsandboxed shell executor that requires user approval before running.
skill
Package skill implements all skill-related tools: load_skill, read_skill_file, and run_skill_script.
Package skill implements all skill-related tools: load_skill, read_skill_file, and run_skill_script.
tasklist
Package tasklist implements the task-list tools (create_task_list, add_task_to_task_list, update_task, update_task_list_status, get_task_list).
Package tasklist implements the task-list tools (create_task_list, add_task_to_task_list, update_task, update_task_list_status, get_task_list).
tool
Package tool defines the shared contract every built-in tool implements: a Definition advertised to the model and an Execute that runs a single invocation and returns a uniform Result.
Package tool defines the shared contract every built-in tool implements: a Definition advertised to the model and an Execute that runs a single invocation and returns a uniform Result.
uselsp
Package uselsp exposes the Anthropic tool definition and Tool implementation for the built-in `use_lsp` tool.
Package uselsp exposes the Anthropic tool definition and Tool implementation for the built-in `use_lsp` tool.
webfetch
Package webfetch implements the SSRF-safe HTTP fetch primitive used by the web_fetch tool.
Package webfetch implements the SSRF-safe HTTP fetch primitive used by the web_fetch tool.
tui
Package tui implements the terminal user interface for the jungi chat application.
Package tui implements the terminal user interface for the jungi chat application.
approvalview
Package approvalview implements the tool confirmation overlay.
Package approvalview implements the tool confirmation overlay.
closeconfirmview
Package closeconfirmview implements the dirty-worktree confirmation overlay shown when /close or /clear would destroy uncommitted or unpushed work.
Package closeconfirmview implements the dirty-worktree confirmation overlay shown when /close or /clear would destroy uncommitted or unpushed work.
cmdpalette
Package cmdpalette implements the slash-command palette overlay.
Package cmdpalette implements the slash-command palette overlay.
credpicker
Package credpicker implements a radio-button style overlay for selecting which provider credential to set.
Package credpicker implements a radio-button style overlay for selecting which provider credential to set.
dirpicker
Package dirpicker implements a lazy directory tree picker overlay.
Package dirpicker implements a lazy directory tree picker overlay.
history
Package history provides a scrollable transcript of the conversation.
Package history provides a scrollable transcript of the conversation.
input
Package input provides the multi-line text entry component used at the bottom of the chat UI.
Package input provides the multi-line text entry component used at the bottom of the chat UI.
modelpicker
Package modelpicker implements a radio-button style overlay for selecting the Anthropic model to use for the active session.
Package modelpicker implements a radio-button style overlay for selecting the Anthropic model to use for the active session.
newmenu
Package newmenu implements the two-item overlay shown when the user runs /new.
Package newmenu implements the two-item overlay shown when the user runs /new.
newsessionconfirmview
Package newsessionconfirmview implements the confirmation overlay shown when the user starts a new session (via /new, /plan, /execute, /review, or the /sessions list "New session" item) while a session is already active.
Package newsessionconfirmview implements the confirmation overlay shown when the user starts a new session (via /new, /plan, /execute, /review, or the /sessions list "New session" item) while a session is already active.
overlay
Package overlay composites a foreground widget centred over a background terminal grid.
Package overlay composites a foreground widget centred over a background terminal grid.
planpicker
Package planpicker implements the overlay shown when the user runs /execute without a slug argument.
Package planpicker implements the overlay shown when the user runs /execute without a slug argument.
promptpicker
Package promptpicker implements the overlay shown when the user runs /prompt.
Package promptpicker implements the overlay shown when the user runs /prompt.
providerpicker
Package providerpicker implements a radio-button style overlay for selecting a model provider as the first step of the /model command.
Package providerpicker implements a radio-button style overlay for selecting a model provider as the first step of the /model command.
sessionlist
Package sessionlist implements the overlay shown when the user runs /sessions.
Package sessionlist implements the overlay shown when the user runs /sessions.
styles
Package styles defines the lipgloss color and layout constants shared across the TUI.
Package styles defines the lipgloss color and layout constants shared across the TUI.
thinkingpicker
Package thinkingpicker implements the /thinking overlay.
Package thinkingpicker implements the /thinking overlay.
ticketpicker
Package ticketpicker implements the overlay shown after the user selects a plan from the plan picker during /execute.
Package ticketpicker implements the overlay shown after the user selects a plan from the plan picker during /execute.

Jump to

Keyboard shortcuts

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