Context
The Neo.mjs agent swarm ecosystem requires marathon sessions involving large AGENTS.md, startup workflows, and deep skill trees.
The Problem
The Codex Desktop harness currently enforces a default context window clamp of ~258k tokens. This ceiling is insufficient for sustained marathon architecture sessions given the size of the injected system prompts and persistent context requirements, resulting in amnesia or forced truncation before the objective is complete.
The Architectural Reality
Codex limits are governed by the local harness configuration (~/.codex/config.toml or similar) rather than the model's actual hard limits (which can scale to 1M or 2M tokens). Attempting to bypass this via /compact mode aggressively truncates conversational history, leading to an unacceptable loss of context that the semantic graph cannot always perfectly recover. Furthermore, while Codex can spawn sub-agents for isolated tasks, those sub-agents also inherently lack the global session context required for nuanced architectural work.
The Fix
Override the local Codex Desktop configuration to unlock the model's full context capacity for Neo.mjs workstreams.
Acceptance Criteria
Out of Scope
- Modifying the Memory Core or Native Edge Graph APIs (this is purely a harness configuration fix).
- Removing the
/compact command entirely.
Avoided Traps / Gold Standards Rejected
- Aggressive
/compact mode: Rejected because it mechanically deletes the immediate conversational context trail, which leads to "needle in a haystack" failures for nuanced problem-solving.
- Pure Sub-agent Delegation: While powerful, spawning stateless Codex sub-agents for heavy reads deprives the main orchestrator of the emergent context needed for cohesive architectural direction.
Origin Session ID: 240ae149-d3ba-4d68-9b4f-be2a359937e7
Context
The Neo.mjs agent swarm ecosystem requires marathon sessions involving large
AGENTS.md, startup workflows, and deep skill trees.The Problem
The Codex Desktop harness currently enforces a default context window clamp of ~258k tokens. This ceiling is insufficient for sustained marathon architecture sessions given the size of the injected system prompts and persistent context requirements, resulting in amnesia or forced truncation before the objective is complete.
The Architectural Reality
Codex limits are governed by the local harness configuration (
~/.codex/config.tomlor similar) rather than the model's actual hard limits (which can scale to 1M or 2M tokens). Attempting to bypass this via/compactmode aggressively truncates conversational history, leading to an unacceptable loss of context that the semantic graph cannot always perfectly recover. Furthermore, while Codex can spawn sub-agents for isolated tasks, those sub-agents also inherently lack the global session context required for nuanced architectural work.The Fix
Override the local Codex Desktop configuration to unlock the model's full context capacity for Neo.mjs workstreams.
Acceptance Criteria
model_context_window(and related compaction token limits) inside~/.codex/config.toml.model_catalog_json) to enforce the highermax_context_window.Out of Scope
/compactcommand entirely.Avoided Traps / Gold Standards Rejected
/compactmode: Rejected because it mechanically deletes the immediate conversational context trail, which leads to "needle in a haystack" failures for nuanced problem-solving.Origin Session ID: 240ae149-d3ba-4d68-9b4f-be2a359937e7