Agent Memory
Platform

Workspace settings

Tune retrieval, consolidation, screening, retention, learning and promotion per workspace or per organization, and how setting values are resolved.

Most of Agent Memory's behaviour can be tuned without a deployment. Settings are changed in the web console under Settings, at one of two scopes:

  • Workspace settings apply to one project.
  • Tenant settings apply to the whole organization.

How a value is resolved

For each setting, the first value found wins:

  1. a workspace override,
  2. a tenant override,
  3. the deployment's configuration key (self-hosted operators set these — listed below),
  4. the built-in default.

Numeric values are kept inside a fixed range, so an override can tune behaviour but not disable a guardrail.

Retrieval

SettingScopeDefaultRange / valuesEffect
retrieval.tokenBudgetworkspace4000256–32,000Token budget of the compiled context. A request's tokenBudget overrides it.
retrieval.modeworkspacedeterministicassisted, deterministicWhether recall may call the LLM to decompose queries and rerank.
retrieval.scoringVersionworkspacev3v1, v2, v3Scoring configuration.
retrieval.minVectorSimilarityworkspace0.250–1Minimum cosine similarity for a vector match.
retrieval.minProcedureSimilarityworkspace0.250–1Minimum similarity for a procedure to be recalled.
retrieval.hideSupersededworkspaceonHide replaced memories from every retrieval path.
retrieval.valueAware.enabledworkspaceoffBlend learned utility into ranking.
retrieval.utilityWeightworkspace0.50–1How strongly utility re-weights value-aware ranking.
retrieval.valueAwareTopNworkspace101–100How many top results value-aware re-ranking considers.

See Retrieval.

Ingestion and screening

SettingScopeDefaultEffect
screening.enabledworkspaceonScreen appended content for prompt injection and exfiltration; flagged content is quarantined.
screening.pii.enabledworkspaceonDetect personal data on write; flagged memories are never promoted to tenant conventions and are redacted in exports.
dedup.enabledworkspaceonMerge near-duplicate appends into the existing memory.
inferenceOnAppend.enabledworkspaceonDerive facts and inferences automatically when memories are appended.
ingestion.asyncEmbeddingworkspaceoffEmbed through a durable, retried background effect after the append commits, instead of inline. When on, a memory may not be semantically searchable the instant the append returns — check the ingestion receipt.

Consolidation

SettingScopeDefaultRangeEffect
consolidation.maxEntriesPerRunworkspace5001–10,000Session entries a consolidation extracts facts from; the rest are recorded as episode events only.
consolidation.maxFactsPerEntryworkspace201–100Facts kept per entry.
consolidation.maxDerivativeSentencesworkspace20010–2,000Sentence fragments embedded per episode.

See Runs and consolidation.

Blocks and profiles

SettingScopeDefaultRangeEffect
blocks.maxValueCharsworkspace2000200–10,000Maximum characters per memory block.
userProfile.maxCharsworkspace2000200–10,000Maximum characters per user profile.
userProfile.autoEnrichworkspaceoffAppend preference facts found at consolidation to the user's profile.

Learning

SettingScopeDefaultRangeEffect
learning.enabledtenanton in the shipped API configurationRecord which memories each run saw and update their utility from outcomes.
learning.utilityAlphatenant0.10.01–1Step size of the utility update per outcome.

See Learning loop.

Promotion and governance

SettingScopeDefaultRangeEffect
promotion.workspaceCandidates.enabledworkspaceoffHold consolidated facts as review candidates, hidden from recall until a tenant admin approves them.
promotion.candidateTtlDaystenant141–365Days an unreviewed promotion candidate waits before it is marked expired (kept, not deleted).
governance.floorSemanticThresholdtenant0.750.5–0.95Similarity above which content counts as overlapping a tenant floor.
trust.authority.<kind>tenant1.00–1Source-authority component of the trust score for memories whose sourceKind is <kind> (agent, user, document, import, system, derived). Affects trust only, never ranking.

Retention

SettingScopeDefaultRangeEffect
retention.memoryDaysworkspacenot active1–3,650Age after which the daily sweep deletes memories (with the full erasure cascade). Only runs when overridden or configured.
retention.episodeDaysworkspacenot active1–3,650Age after which an ended episode's verbatim events and sentence fragments are removed; the summary stays. Only runs when overridden or configured.
retention.requestLogDaysworkspace301–3,650How long activity-log entries are kept.
retention.webhookDeliveryDaysworkspace301–365How long webhook delivery attempts are kept.

Model provider

SettingScopeDefaultEffect
llm.providertenantanthropicLLM provider for extraction, inference and summarization: anthropic or openai.
llm.modeltenantprovider defaultModel name for the selected provider.

Organizations can store their own provider API key in the console (Settings → secrets) so LLM work for their tenant uses it. Keys are encrypted at rest and never returned. On air-gapped deployments a tenant override cannot route LLM calls outside the network.

Security

SettingScopeDefaultEffect
security.requireMfatenantoffRequire MFA-verified sign-ins for console access to the organization.

Configuration keys for self-hosting

Each setting's deployment-wide default comes from a configuration key, settable as an environment variable with __ in place of ::

SettingConfiguration key
retrieval.tokenBudgetMemory:Retrieval:TokenBudget
retrieval.modeMemory:Retrieval:Mode
retrieval.scoringVersionMemory:Retrieval:ScoringVersion
retrieval.minVectorSimilarityMemory:Retrieval:MinVectorSimilarity
retrieval.minProcedureSimilarityMemory:Retrieval:MinProcedureSimilarity
retrieval.hideSupersededMemory:Retrieval:HideSuperseded
retrieval.valueAware.enabledMemory:Retrieval:ValueAware:Enabled
retrieval.utilityWeightMemory:Retrieval:UtilityWeight
retrieval.valueAwareTopNMemory:Retrieval:ValueAwareTopN
screening.enabledMemory:ContentScreening:Enabled
screening.pii.enabledMemory:ContentScreening:Pii:Enabled
dedup.enabledMemory:Dedup:Enabled
inferenceOnAppend.enabledMemory:InferenceOnAppend:Enabled
ingestion.asyncEmbeddingIngestion:AsyncEmbedding
consolidation.maxEntriesPerRunMemory:Consolidation:MaxEntriesPerRun
consolidation.maxFactsPerEntryMemory:Consolidation:MaxFactsPerEntry
consolidation.maxDerivativeSentencesMemory:Consolidation:MaxDerivativeSentences
blocks.maxValueCharsMemory:Blocks:MaxValueChars
userProfile.maxCharsMemory:UserProfile:MaxChars
userProfile.autoEnrichMemory:UserProfile:AutoEnrich
learning.enabledMemory:Learning:Enabled
learning.utilityAlphaMemory:Learning:UtilityAlpha
promotion.workspaceCandidates.enabledMemory:Promotion:WorkspaceCandidates:Enabled
promotion.candidateTtlDaysMemory:Promotion:CandidateTtlDays
governance.floorSemanticThresholdMemory:FloorConflict:SemanticThreshold
trust.authority.<kind>Memory:Trust:Authority:<Kind>
retention.memoryDaysMemory:RetentionDays
retention.episodeDaysMemory:EpisodeRetentionDays
retention.requestLogDaysRequestLog:RetentionDays
retention.webhookDeliveryDaysWebhooks:DeliveryRetentionDays
llm.providerLlm:Provider
llm.modelLlm:Model
security.requireMfaSecurity:RequireMfa

See Configuration for the rest of the deployment configuration.

On this page