agent/

directory
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT

Directories

Path Synopsis
Package checkpoint defines durable, transport-neutral snapshots for agent and workflow runs.
Package checkpoint defines durable, transport-neutral snapshots for agent and workflow runs.
Package coderunner is the canonical assembly of the zarlcode coding agent loop: the standard workspace tool set, the production guardrail chain, and the tuned runner options — extracted so every consumer drives a behaviorally identical loop.
Package coderunner is the canonical assembly of the zarlcode coding agent loop: the standard workspace tool set, the production guardrail chain, and the tuned runner options — extracted so every consumer drives a behaviorally identical loop.
Package compact holds the engines that shrink an in-progress conversation when the context window is under pressure.
Package compact holds the engines that shrink an in-progress conversation when the context window is under pressure.
Package computer provides a small, surface-agnostic computer-use model for observation and action flows, with browser automation as the first intended implementation.
Package computer provides a small, surface-agnostic computer-use model for observation and action flows, with browser automation as the first intended implementation.
browser
Package browser provides a chromedp-backed implementation of the universal computer-use model for browser surfaces.
Package browser provides a chromedp-backed implementation of the universal computer-use model for browser surfaces.
Package diffrecorder wraps a tool source and records the unified diff of every file the agent writes or edits during a turn.
Package diffrecorder wraps a tool source and records the unified diff of every file the agent writes or edits during a turn.
Package guardrails provides policy wrappers around agent tool execution.
Package guardrails provides policy wrappers around agent tool execution.
Package hitl defines transport-neutral human-in-the-loop approval primitives for agent actions that may need review before execution or resume.
Package hitl defines transport-neutral human-in-the-loop approval primitives for agent actions that may need review before execution or resume.
Package mcp wires MCP server-pushed notifications into the runner's inject path.
Package mcp wires MCP server-pushed notifications into the runner's inject path.
Package profile provides agent execution profiles — code-defined skeletons (model, prompt prefix, max iterations) that merge with persisted operator overrides at task start time.
Package profile provides agent execution profiles — code-defined skeletons (model, prompt prefix, max iterations) that merge with persisted operator overrides at task start time.
Package pursue drives an agent run toward a programmatic goal.
Package pursue drives an agent run toward a programmatic goal.
Package retrieval adapts zkit/ai/retrieval primitives to agent-facing prompt and tool surfaces.
Package retrieval adapts zkit/ai/retrieval primitives to agent-facing prompt and tool surfaces.
Package runner implements the core agent loop.
Package runner implements the core agent loop.
runnertest
Package runnertest provides shared test fakes for code that uses zkit/agent/runner: a scriptable Client, a recording EventSink, a minimal Tool stub, and chunk constructors.
Package runnertest provides shared test fakes for code that uses zkit/agent/runner: a scriptable Client, a recording EventSink, a minimal Tool stub, and chunk constructors.
Package sandbox confines shell commands spawned by the agent's tools behind kernel-enforced boundaries: a Landlock filesystem allow-list plus (optionally) an empty network namespace.
Package sandbox confines shell commands spawned by the agent's tools behind kernel-enforced boundaries: a Landlock filesystem allow-list plus (optionally) an empty network namespace.
Package scheduler runs cron-driven task triggers — recurring agent tasks that the runner enqueues on schedule.
Package scheduler runs cron-driven task triggers — recurring agent tasks that the runner enqueues on schedule.
Package sensor runs periodic probes that emit observations on change.
Package sensor runs periodic probes that emit observations on change.
Package shellpolicy parses shell commands into a compact, platform-neutral intermediate representation (ParsedIR) and runs a deterministic policy engine over it.
Package shellpolicy parses shell commands into a compact, platform-neutral intermediate representation (ParsedIR) and runs a deterministic policy engine over it.
Package sourcechain composes reusable tool-source wrappers with the production guardrail stack.
Package sourcechain composes reusable tool-source wrappers with the production guardrail stack.
Package taskscope stores lightweight task metadata on context.Context.
Package taskscope stores lightweight task metadata on context.Context.
tools
program
Package program exposes a provider-neutral programmatic tool that runs a bounded Starlark script over an allowlisted inner tool source.
Package program exposes a provider-neutral programmatic tool that runs a bounded Starlark script over an allowlisted inner tool source.
repeatcap
Package repeatcap provides a tiny per-Run repeat-call counter some "call once, the answer doesn't change" tools wrap themselves in to refuse the model when it starts spamming them.
Package repeatcap provides a tiny per-Run repeat-call counter some "call once, the answer doesn't change" tools wrap themselves in to refuse the model when it starts spamming them.
spawn
Package spawn provides the spawn-agent tool: a registry-compatible tool that lets the running agent kick off a focused sub-task in a fresh runner.Run, returning only its summary as a single tool result.
Package spawn provides the spawn-agent tool: a registry-compatible tool that lets the running agent kick off a focused sub-task in a fresh runner.Run, returning only its summary as a single tool result.
Package workflow provides small, typed graph composition primitives for deterministic agent workflows.
Package workflow provides small, typed graph composition primitives for deterministic agent workflows.

Jump to

Keyboard shortcuts

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