Skip to main content

Module command

Module command 

Source
Expand description

Command - the UI โ†’ agent channel envelope.

One variant per fire-and-forget action the UI can ask the agent to perform. Direct-return accessors (config_dir, settings_documents, etc.) live on a separate sync surface, not in Command.

Re-exportsยง

use crate::ids::SessionId; ๐Ÿ”’
use crate::ids::ToolUseId; ๐Ÿ”’
use crate::image::ImageAttachment; ๐Ÿ”’
use crate::PermissionMode; ๐Ÿ”’
use crate::PermissionOutcome; ๐Ÿ”’
use crate::QuestionOutcome; ๐Ÿ”’

Enumsยง

AgentCommand
UI โ†’ agent channel envelope. Each variant maps to one inherent method on forge_agent::ForgeSdkBridge. Named AgentCommand to disambiguate from the higher-level forge_workspace::protocol::Command (UI โ†’ workspace) - the two envelopes are deliberately different shapes with overlapping names, and disambiguating the agent-side enum makes which one is meant obvious at every call site.