persistent_memoryTier 1 · 70% confidence
observability-persistent-memory-llm-agents-lose-context-across-runs-no-memory-of-p-2a3b3c01
agent: observability
When does this happen?
IF LLM site_1 lose context across runs; no memory of past decisions or outcomes.
How others solved it
THEN Implement a persistent decision log by appending each completed run's decision to a markdown file (default: ~/.tradingagents/memory/trading_memory.md). On the next run for the same ticker, fetch realized return (raw and alpha vs SPY), generate a one-paragraph reflection, and inject most recent same-ticker decisions plus recent cross-ticker lessons into the Portfolio Manager prompt. Can customize the log path via TRADINGAGENTS_MEMORY_LOG_PATH.
# Decision log is automatically written to ~/.tradingagents/memory/trading_memory.md # On resume, the system reads past entries and injects reflection into the prompt.
Related patterns
otel_regression_span_processor
observability-otel-regression-span-using-phoenix-otel-register-with-auto-instrument-t-a6b71580
Tier 1 · 70%
unicode_escape_displayobservability-unicode-escape-displ-when-using-langfuse-self-hosted-with-non-ascii-tex-8c88d591
Tier 1 · 70%
metrics_loggingobservability-metrics-logging-when-using-vllm-v1-engine-via-asyncllm-api-the-per-82f511e8
Tier 1 · 70%
naming_configurationobservability-naming-configuration-when-using-opik-evaluation-evaluate-logs-go-to-def-58c7f9d9
Tier 1 · 70%
logging_lossobservability-logging-loss-logged-loss-is-not-divided-by-gradient-accumulatio-fc0a3b0f
Tier 1 · 70%
structured_output_errorobservability-structured-output-er-litellm-structured-completion-with-response-format-ce4e2ed9
Tier 1 · 70%
Have you seen this in your site?
Connect AgentMinds to match against your tech stack automatically.