pkg/

directory
v0.51.0 Latest Latest
Warning

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

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

Directories

Path Synopsis
Package agentcore provides a minimal but extensible agent runtime core.
Package agentcore provides a minimal but extensible agent runtime core.
api
Package api defines the stable public contracts shared by the agentcore runtime and its first-party adapters.
Package api defines the stable public contracts shared by the agentcore runtime and its first-party adapters.
examples/custom command
examples/host command
examples/recommended command
Command recommended assembles a read-only agent from the agentcore layers: an llm provider, the tools registry with the read-only native tools, workspace skills, an optional MCP server and an approval policy.
Command recommended assembles a read-only agent from the agentcore layers: an llm provider, the tools registry with the read-only native tools, workspace skills, an optional MCP server and an approval policy.
examples/resume command
examples/stream command
extproc
Package extproc runs external helper processes (exec backends) over the suga exec protocol v1 and provides the credential-stripped environment shared with MCP subprocesses.
Package extproc runs external helper processes (exec backends) over the suga exec protocol v1 and provides the credential-stripped environment shared with MCP subprocesses.
internal/proctree
Package proctree kills a command's whole process tree: a process group on Unix, a job object (KILL_ON_JOB_CLOSE) on Windows, where the shell starts suspended and is resumed only after joining the job.
Package proctree kills a command's whole process tree: a process group on Unix, a job object (KILL_ON_JOB_CLOSE) on Windows, where the shell starts suspended and is resumed only after joining the job.
internal/runid
Package runid validates run identifiers shared by agentcore storages.
Package runid validates run identifiers shared by agentcore storages.
llm
Package llm implements first-party model providers for Suga.
Package llm implements first-party model providers for Suga.
memory
Package memory defines long-term memory for agents: entry types, the Store interface every backend implements, the Governed wrapper that applies the write policy (taint gate, sanitizing, tombstones, budget, events) and the Router that dispatches scopes to backends.
Package memory defines long-term memory for agents: entry types, the Store interface every backend implements, the Governed wrapper that applies the write policy (taint gate, sanitizing, tombstones, budget, events) and the Router that dispatches scopes to backends.
memory/execstore
Package execstore is a memory.Store backed by an external command that speaks the suga exec protocol v1 (see package extproc): every operation runs the command once, writes one JSON request line to its stdin and reads one JSON response line from its stdout.
Package execstore is a memory.Store backed by an external command that speaks the suga exec protocol v1 (see package extproc): every operation runs the command once, writes one JSON request line to its stdin and reads one JSON response line from its stdout.
memory/files
Package files is the built-in memory backend: per scope one MEMORY.md index plus one Markdown file per entry.
Package files is the built-in memory backend: per scope one MEMORY.md index plus one Markdown file per entry.
netproxy
Package netproxy selects, per request, whether the global proxy configured under network.proxy receives the request or the request connects directly.
Package netproxy selects, per request, whether the global proxy configured under network.proxy receives the request or the request connects directly.
redact
Package redact scrubs text before it leaves the runtime or is fed back to the model: Secrets masks credential-like values, Clean additionally strips content that can be used to smuggle instructions (invisible characters, HTML comments, forged system tags).
Package redact scrubs text before it leaves the runtime or is fed back to the model: Secrets masks credential-like values, Clean additionally strips content that can be used to smuggle instructions (invisible characters, HTML comments, forged system tags).
schedule
Package schedule provides in-process delayed, periodic, and idle triggers for agent hosts, such as chat-idle context cleanup and future self-triggering.
Package schedule provides in-process delayed, periodic, and idle triggers for agent hosts, such as chat-idle context cleanup and future self-triggering.
skills
Package skills loads SKILL.md files: YAML frontmatter (name, description, optional allowed-tools) followed by Markdown instructions.
Package skills loads SKILL.md files: YAML frontmatter (name, description, optional allowed-tools) followed by Markdown instructions.
tasks
Package tasks runs work in the background for an agent session: start a command (or a function: a watch loop, a hook, later a sub-agent) and get an id at once, read its output while it runs, wait for it with a timeout, kill it.
Package tasks runs work in the background for an agent session: start a command (or a function: a watch loop, a hook, later a sub-agent) and get an id at once, read its output while it runs, wait for it with a timeout, kill it.
testing
Package agentcoretesting provides package-local conformance helpers for validating public agentcore implementations against the expected contracts.
Package agentcoretesting provides package-local conformance helpers for validating public agentcore implementations against the expected contracts.
testutil
Package testutil holds small helpers shared by the tests of this module.
Package testutil holds small helpers shared by the tests of this module.
tools
Package tools provides the tool registry and execution framework.
Package tools provides the tool registry and execution framework.
tools/mcp
Package mcp implements a JSON-RPC 2.0 client for MCP (Model Context Protocol) servers.
Package mcp implements a JSON-RPC 2.0 client for MCP (Model Context Protocol) servers.
tools/native
Package native provides built-in tool implementations.
Package native provides built-in tool implementations.
tools/rules
Package rules contains the approval-rule model and matcher.
Package rules contains the approval-rule model and matcher.
Package sugasdk embeds suga in another program, in process: the host opens an engine, opens sessions in its own workspaces, runs turns and reads the answers and events, and reaches the same session history and memory the suga CLI uses.
Package sugasdk embeds suga in another program, in process: the host opens an engine, opens sessions in its own workspaces, runs turns and reads the answers and events, and reaches the same session history and memory the suga CLI uses.

Jump to

Keyboard shortcuts

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