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.
AgentSkillError
Error returned when rendering a single agent capability view fails.
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.

Enums§

AgentDispatch
Shared parse result for agent-aware entrypoints.

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
Parse process argv against the normal or agent-filtered surface for a clap CLI.
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.