Skip to main content

Module agent

Module agent 

Source
Expand description

Shared agent-mode capability declarations and filtering helpers.

Structs§

AgentCapability
Declarative capability group for agent-mode visibility.
AgentModeContext
Shared process-level agent-mode context.
AgentSurfaceSpec
Declarative capability surface for a tool.
CommandSelector
Declarative selector for a command path.
FlagSelector
Declarative selector for a long flag on a command path.
ProcessEnv
Process-edge environment values threaded inward from each binary’s main.

Enums§

AgentDispatch
Shared parse result for agent-aware entrypoints.
AgentSkillError
Error returned when rendering a single agent capability view fails.
AgentSubcommand
Ungated agent-skill subcommand surface.
DescribeFormat
Output format for agent describe.
EmitScope
Installation scope for agent emit-skills --install.
EmitTarget
Target agent runtime for agent emit-skills.
ListFormat
Output format for agent list.

Constants§

AGENT_TOKEN_ENV
Environment variable containing the presented agent token.
AGENT_TOKEN_EXPECTED_ENV
Environment variable containing the expected agent token.

Functions§

apply_agent_surface
Apply the visible agent surface to a clap command tree.
parse_with_agent_surface_from
Parse argv against the normal or agent-filtered surface for a clap CLI.
render_agent_help
Render the visible agent capability surface as structured text.
render_agent_skill
Render the visible contract for one agent capability.
visible_capabilities
Return the capabilities visible in the current agent-mode context.