Expand description
Shared agent-mode capability declarations and filtering helpers.
Structs§
- Agent
Capability - Declarative capability group for agent-mode visibility.
- Agent
Mode Context - Shared process-level agent-mode context.
- Agent
Surface Spec - Declarative capability surface for a tool.
- Command
Selector - Declarative selector for a command path.
- Flag
Selector - Declarative selector for a long flag on a command path.
- Process
Env - Process-edge environment values threaded inward from each binary’s
main.
Enums§
- Agent
Dispatch - Shared parse result for agent-aware entrypoints.
- Agent
Skill Error - Error returned when rendering a single agent capability view fails.
- Agent
Subcommand - Ungated agent-skill subcommand surface.
- Describe
Format - Output format for
agent describe. - Emit
Scope - Installation scope for
agent emit-skills --install. - Emit
Target - Target agent runtime for
agent emit-skills. - List
Format - 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
clapcommand 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.