pub struct DevIntentMessage {
pub kind: DevIntentKind,
pub trigger: Option<DevIntentTrigger>,
pub uuid: String,
pub session_id: String,
pub extra: Map<String, Value>,
}Expand description
system/dev_intent — the conversation, or the git repository it runs in,
shows a known kind of development work, for hosts that key tooling on it
(Claude Code Desktop opens its iOS Simulator entry point on ios_app).
Sent with trigger as its only other payload. Per conversation per
process, each kind is sent at most once from conversation evidence and at
most once from the project scan: conversation evidence when it first
completes, or at startup when a resumed conversation already has it;
project evidence (print-mode CLIs only, which is how the Agent SDK starts
it) at startup, after each conversation_reset, and at the first message
of a conversation whose earlier scan did not find every kind. Either can
arrive before system/init. A rewind or compaction never retracts it and
only a conversation_reset starts over, so treat each kind as a sticky
fact about the conversation: a client that needs only the kind can ignore
repeats, and one that needs to know what set it off reads trigger
(CLI 2.1.266+; trigger and the project scan from 2.1.273).
Fields§
§kind: DevIntentKindWhat kind of development the evidence shows.
trigger: Option<DevIntentTrigger>The evidence the detection fired on, for a host’s own analytics. From
the conversation it is the first platform-specific evidence seen;
DevIntentTrigger::ProjectScan marks a scan of the session’s git
repository. Absent from CLIs before 2.1.273, which send only
conversation evidence.
uuid: String§session_id: String§extra: Map<String, Value>Trait Implementations§
Source§impl Clone for DevIntentMessage
impl Clone for DevIntentMessage
Source§fn clone(&self) -> DevIntentMessage
fn clone(&self) -> DevIntentMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more