MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / hook_cursor_subagent_start

Function hook_cursor_subagent_start

src/hooks/cursor.rs:47–55  ·  view source on GitHub ↗

Cursor `subagentStart` hook handler. Allows Cursor subagents while preserving legacy hook compatibility.

()

Source from the content-addressed store, hash-verified

45///
46/// Allows Cursor subagents while preserving legacy hook compatibility.
47pub fn hook_cursor_subagent_start() -> i32 {
48 let event = read_hook_event!();
49 let root = cursor_project_root_from_event(&event);
50 record_hook_invoked(root.as_deref(), HintAgent::Cursor, "subagentStart", &event);
51 if let Some(decision) = evaluate_cursor_subagent_start(&event) {
52 println!("{decision}");
53 }
54 0
55}
56
57/// Cursor `postToolUse` hook handler.
58///

Callers 1

handle_hook_commandFunction · 0.85

Calls 3

record_hook_invokedFunction · 0.85

Tested by

no test coverage detected