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

Function read_codex_subagent_start_counts

src/hooks/codex.rs:328–333  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

326}
327
328fn read_codex_subagent_start_counts(path: &Path) -> BTreeMap<String, u64> {
329 std::fs::read_to_string(path)
330 .ok()
331 .and_then(|content| serde_json::from_str(&content).ok())
332 .unwrap_or_default()
333}
334
335fn codex_subagent_start_context(hint: Option<ToolHint>, no_history: bool) -> String {
336 let mut context = String::new();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected