MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / resolve_agent_author

Function resolve_agent_author

atomic-agent/src/identity.rs:101–107  ·  view source on GitHub ↗

Resolve the agent author for a turn change. Looks up the user's default identity and derives an agent author with a `+tag` email. Falls back to a plain agent name if no user identity is configured. # Format With user identity `Alice ` and agent `claude-code` with session `60f5cbd2-...`: ```text Author { name: "claude+60f5", email: Some("alice@example.com") } ``` The `+tag`

(options: &AgentAuthorOptions<'_>)

Source from the content-addressed store, hash-verified

99/// Author { name: "Claude Code", email: None }
100/// ```
101pub fn resolve_agent_author(options: &AgentAuthorOptions<'_>) -> Author {
102 // Try to load the user's default identity
103 match load_default_user_identity(options.identity_dir.as_deref()) {
104 Some(user) => derive_agent_author(&user, options),
105 None => fallback_agent_author(options),
106 }
107}
108
109/// Derive the agent author from the user's identity.
110///

Calls 3

derive_agent_authorFunction · 0.85
fallback_agent_authorFunction · 0.85