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

Method repo_root_hints

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

Returns directories to search for the repository root, derived from the parsed event, if the agent's hooks do not run with the workspace as the process working directory. Most agents execute hooks in the workspace, so the default (`None`) means "resolve from the current directory". Antigravity executes plugin hooks with the plugin's install directory as cwd, so its adapter returns the event's `wo

(&self, event: &TurnEvent)

Source from the content-addressed store, hash-verified

279 /// adapter returns the event's `workspacePaths` instead. The first
280 /// directory containing a repository (or sandbox pointer) wins.
281 fn repo_root_hints(&self, event: &TurnEvent) -> Option<Vec<std::path::PathBuf>> {
282 let _ = event;
283 None
284 }
285}
286
287// AgentRegistry

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