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

Method stdout_response

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

Returns the response body the agent expects on hook stdout, if any. Most agents ignore hook stdout (or display it to the user), so the default is `None` — stay quiet. Some agents read a JSON object from stdout as part of their hook contract (e.g., Antigravity's `PostToolUse` expects `{}`); adapters for those agents return the body to print after the event is dispatched.

(&self, hook_type: HookType)

Source from the content-addressed store, hash-verified

265 /// `PostToolUse` expects `{}`); adapters for those agents return the
266 /// body to print after the event is dispatched.
267 fn stdout_response(&self, hook_type: HookType) -> Option<&'static str> {
268 let _ = hook_type;
269 None
270 }
271
272 /// Returns directories to search for the repository root, derived from
273 /// the parsed event, if the agent's hooks do not run with the workspace

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