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

Method detect_presence

atomic-agent/src/hooks/mod.rs:244–247  ·  view source on GitHub ↗

Detect whether this agent is present in the repository. Checks for agent-specific markers (e.g., `.claude/` directory for Claude Code, `.gemini/` directory for Gemini CLI). Default implementation returns `false`.

(&self, repo_root: &Path)

Source from the content-addressed store, hash-verified

242 ///
243 /// Default implementation returns `false`.
244 fn detect_presence(&self, repo_root: &Path) -> bool {
245 let _ = repo_root;
246 false
247 }
248
249 /// Returns the hook verbs (CLI subcommand names) this agent uses.
250 ///

Callers

nothing calls this directly

Implementers 15

gemini_cli.rsatomic-agent/src/hooks/gemini_cli.rs
mod.rsatomic-agent/src/hooks/mod.rs
copilot.rsatomic-agent/src/hooks/copilot.rs
cline.rsatomic-agent/src/hooks/cline.rs
hermes.rsatomic-agent/src/hooks/hermes.rs
codex.rsatomic-agent/src/hooks/codex.rs
pi.rsatomic-agent/src/hooks/pi.rs
agy.rsatomic-agent/src/hooks/agy.rs
kiro.rsatomic-agent/src/hooks/kiro.rs
kilo.rsatomic-agent/src/hooks/kilo.rs
opencode.rsatomic-agent/src/hooks/opencode.rs
grok.rsatomic-agent/src/hooks/grok.rs

Calls

no outgoing calls

Tested by

no test coverage detected