Skip to content

"Vibe-Trading: Your Personal Trading Agent"

Merge PR #1631 into reviewed maintenance batch

Haozhe Wu554ebcbc3a85
diff --cc agent/src/agent/loop.py
index f9098cd1d,a1de61cba..f79d4348c
--- a/agent/src/agent/loop.py
+++ b/agent/src/agent/loop.py
@@@ -76,21 -89,7 +101,6 @@@ from src.tools.redaction import redact_
RUNS_DIR = get_runs_dir()
SESSIONS_DIR = get_sessions_dir()
- KEEP_RECENT = 3
-
- COLLAPSE_PRESERVE_RECENT = 6
- COLLAPSE_TEXT_MIN = 2400
- COLLAPSE_HEAD = 900
- COLLAPSE_TAIL = 500
-
- # The stub ``_fix_tool_pairs`` inserts for a call whose result a layer-3 fold
- # consumed. The other "data is gone" placeholder is layer 1's cleared marker,
- # which is not a constant — it embeds the original payload length, so it is
- # built by ``_cleared_text`` and matched by ``_is_cleared``.
- _STUB_RESULT_CONTENT = "[Result from earlier context — see summary above]"
-
- TAIL_TOKEN_BUDGET = 20_000
- SUMMARY_CHUNK_CHARS = 80_000
-LLM_USAGE_ARTIFACT = "llm_usage.json"
# An LLM may return a transient empty completion (no text, no tool calls);
# retry once with a nudge before failing the run on a second consecutive one.