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

Method set_agent

atomic-agent/src/turn/orchestrator/mod.rs:254–257  ·  view source on GitHub ↗

Set the agent identity for sessions created by this orchestrator. Called by the CLI hook handler after construction, before dispatching events. This ensures new sessions get the correct agent name (e.g., "claude-code" / "Claude Code") instead of "unknown".

(&mut self, name: impl Into<String>, display_name: impl Into<String>)

Source from the content-addressed store, hash-verified

252 /// events. This ensures new sessions get the correct agent name
253 /// (e.g., "claude-code" / "Claude Code") instead of "unknown".
254 pub fn set_agent(&mut self, name: impl Into<String>, display_name: impl Into<String>) {
255 self.agent_name = name.into();
256 self.agent_display_name = display_name.into();
257 }
258
259 /// Returns the repository root path.
260 pub fn repo_root(&self) -> &Path {

Calls

no outgoing calls