Skip to content

#1 Persistent memory for AI coding agents based on real-world benchmarks

config: honor computed MAX_TOKENS for agent-sdk fallback

Rohit Ghumarec1caf19cf340
diff --git a/src/config.ts b/src/config.ts
index e89b674b..09bf2290 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -115,7 +115,7 @@ function detectProvider(env: Record<string, string>): ProviderConfig {
return {
provider: "agent-sdk",
model: "claude-sonnet-4-20250514",
- maxTokens: 4096,
+ maxTokens,
};
}