Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed src/openhuman/inference/provider/claude_code/mod.rs

Steven Enamakelc045d783b51b
diff --git a/src/openhuman/inference/provider/claude_code/mod.rs b/src/openhuman/inference/provider/claude_code/mod.rs
index 97ca67b2ea..c06508e25e 100644
--- a/src/openhuman/inference/provider/claude_code/mod.rs
+++ b/src/openhuman/inference/provider/claude_code/mod.rs
@@ -221,6 +221,16 @@ impl ChatModel<()> for ClaudeCodeProvider {
Some(&self.profile)
}
+ /// Identity for harness response-cache scoping. Names the binary and the
+ /// model, never the API key.
+ fn cache_identity(&self) -> Option<String> {
+ Some(format!(
+ "claude_code:{}:{}",
+ self.bin_path.display(),
+ self.model
+ ))
+ }
+
async fn invoke(
&self,
_state: &(),