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

Function codex_subagent_start_context

src/hooks/codex.rs:335–348  ·  view source on GitHub ↗
(hint: Option<ToolHint>, no_history: bool)

Source from the content-addressed store, hash-verified

333}
334
335fn codex_subagent_start_context(hint: Option<ToolHint>, no_history: bool) -> String {
336 let mut context = String::new();
337 if no_history {
338 context.push_str("new/no-history subagent: recover only relevant project memory or prior-session context before assuming missing decisions.\n");
339 }
340 context.push_str(CODEX_SUBAGENT_START_CONTEXT);
341 context.push('\n');
342 if let Some(hint) = hint {
343 context.push('\n');
344 context.push_str(&format_tool_hint(&hint));
345 context.push('\n');
346 }
347 context
348}
349
350fn codex_subagent_needs_context(parsed: &Value) -> bool {
351 bool_field(

Callers 1

Calls 2

format_tool_hintFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected