internal/

directory
v0.66.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT

Directories

Path Synopsis
Package agent runs the reason → act → observe loop against an llm.Chatter, dispatching fat tools, injecting learned pitfalls into tool errors, and tracing every step.
Package agent runs the reason → act → observe loop against an llm.Chatter, dispatching fat tools, injecting learned pitfalls into tool errors, and tracing every step.
Package atomicfile writes a file durably: to a temp sibling, fsync it, then rename over the target — so a crash mid-write can't leave a truncated or half-written file.
Package atomicfile writes a file durably: to a temp sibling, fsync it, then rename over the target — so a crash mid-write can't leave a truncated or half-written file.
Package config loads the agent's runtime configuration.
Package config loads the agent's runtime configuration.
Package feedback sends a rating of this program to ipsupport.us and decides when to suggest one (adr/0016).
Package feedback sends a rating of this program to ipsupport.us and decides when to suggest one (adr/0016).
Package filelock provides a cross-process, blocking, exclusive file lock.
Package filelock provides a cross-process, blocking, exclusive file lock.
Package hostarch reports the machine's own CPU architecture, which is not always the one this binary was built for: an amd64 build runs under emulation on Windows on ARM and under Rosetta on Apple silicon, and there runtime.GOARCH says amd64.
Package hostarch reports the machine's own CPU architecture, which is not always the one this binary was built for: an amd64 build runs under emulation on Windows on ARM and under Rosetta on Apple silicon, and there runtime.GOARCH says amd64.
Package knowledge is the agent's persistent memory: a JSON-backed store of Pitfalls (lessons) it has learned.
Package knowledge is the agent's persistent memory: a JSON-backed store of Pitfalls (lessons) it has learned.
Package legal carries the licenses and notices of everything linked into the binary (NOTICES.txt, written by ./gen), so they travel with it as MIT and BSD require.
Package legal carries the licenses and notices of everything linked into the binary (NOTICES.txt, written by ./gen), so they travel with it as MIT and BSD require.
gen command
Command gen writes internal/legal/NOTICES.txt: this program's license, Go's, and the license of every module linked into ipsupport-code, with its full text — MIT and BSD both require the notice to travel with the binary — plus the data the risk model was trained from.
Command gen writes internal/legal/NOTICES.txt: this program's license, Go's, and the license of every module linked into ipsupport-code, with its full text — MIT and BSD both require the notice to travel with the binary — plus the data the risk model was trained from.
Package llm is the model boundary.
Package llm is the model boundary.
Package mcp is a minimal Model Context Protocol client.
Package mcp is a minimal Model Context Protocol client.
Package policy is the workspace permission engine.
Package policy is the workspace permission engine.
Package redact masks credentials out of text before it is written down — the trace log keeps every command and every tool output, and a token that passed through the agent once would otherwise stay in it for good, and go wherever the log goes next (a fine-tuning set, a bug report).
Package redact masks credentials out of text before it is written down — the trace log keeps every command and every tool output, and a token that passed through the agent once would otherwise stay in it for good, and go wherever the log goes next (a fine-tuning set, a bug report).
Package reflect runs the post-task learning pass: it asks the model to distill durable lessons from a finished transcript and returns them as pitfalls for the knowledge base.
Package reflect runs the post-task learning pass: it asks the model to distill durable lessons from a finished transcript and returns them as pitfalls for the knowledge base.
Package risk scores a tool call for how dangerous it looks, as a signal alongside the permission policy rather than a replacement for it.
Package risk scores a tool call for how dangerous it looks, as a signal alongside the permission policy rather than a replacement for it.
Package sandbox is an OS-level containment layer that runs shell commands inside the kernel sandbox of the host platform (Seatbelt on macOS; Landlock on Linux is planned).
Package sandbox is an OS-level containment layer that runs shell commands inside the kernel sandbox of the host platform (Seatbelt on macOS; Landlock on Linux is planned).
Package selfupdate downloads a newer ipsupport-code binary from GitHub Releases and replaces the running executable in place.
Package selfupdate downloads a newer ipsupport-code binary from GitHub Releases and replaces the running executable in place.
Package shellsplit cuts a command line into the commands a shell would run, by that shell's own rules: what separates two commands, what quotes and escapes hide a separator, which text is data rather than a command (a heredoc body, a here-string, a comment), and which code is nested inside a command (command substitution, a PowerShell subexpression or script block, a heredoc body that is expanded or fed to an interpreter).
Package shellsplit cuts a command line into the commands a shell would run, by that shell's own rules: what separates two commands, what quotes and escapes hide a separator, which text is data rather than a command (a heredoc body, a here-string, a comment), and which code is nested inside a command (command substitution, a PowerShell subexpression or script block, a heredoc body that is expanded or fed to an interpreter).
Package skill manages downloadable, on-demand instruction packs ("skills").
Package skill manages downloadable, on-demand instruction packs ("skills").
Package telemetry keeps the anonymous daily usage counters and sends them to ipsupport.us (adr/0016).
Package telemetry keeps the anonymous daily usage counters and sends them to ipsupport.us (adr/0016).
Package textutil holds small string helpers shared across packages.
Package textutil holds small string helpers shared across packages.
Package tool defines the fat-tool abstraction the agent exposes to the model: one tool per domain, each taking an (action, params) pair.
Package tool defines the fat-tool abstraction the agent exposes to the model: one tool per domain, each taking an (action, params) pair.
Package trace records the agent's decision path — goal, model turns, tool calls, observations, final answer, and learned lessons — as JSONL.
Package trace records the agent's decision path — goal, model turns, tool calls, observations, final answer, and learned lessons — as JSONL.
Package usage is a small persistent token-usage ledger: prompt/completion tokens spent, bucketed by day, provider, and model.
Package usage is a small persistent token-usage ledger: prompt/completion tokens spent, bucketed by day, provider, and model.

Jump to

Keyboard shortcuts

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