agentconfig

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Explain added in v0.11.0

func Explain(cfg *config.Config, safe ...SafeCommand) string

Explain renders a Markdown description of the sandbox environment from cfg, for the AI agent to read on demand via `agent-sandbox ai explain`. The prose lives in explain.tmpl; this function only prepares the view data. The caller passes the available `safe` wrappers (from the live command tree) so the explain output points agents at them.

func Pointer added in v0.11.0

func Pointer() string

Pointer returns the short guidance injected into the agent's system prompt at launch. It intentionally carries no allow/drop detail — only a pointer to the live `agent-sandbox ai explain` command — to keep the system prompt small.

Types

type SafeCommand added in v0.12.0

type SafeCommand struct {
	Use   string
	Short string
}

SafeCommand describes one `agent-sandbox safe <tool>` wrapper for the explain output. Use is the subcommand's usage (e.g. "git [args...]"); Short is its one-line description.

Jump to

Keyboard shortcuts

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