context compression for agentic coding, and a corpus that already caps its outputs

#1
by Sumama-Jameel - opened

hey Lucas, saw ordo-3b, agentic coding with context filtering and episodic memory on Coder-3B. compression is the unglamorous part that decides whether these things run at all.

my set deals with the same problem from the data side. 66 sessions of an agent fixing real bugs in real repos, sample-side tool output capped at 8,000 chars head and tail with truncated flags and original counts, while the raw log keeps every character. real errors and retries kept, tests green at the end. built to improve coding, tool calling, agentic execution and recovery from failure.

it's continued pretraining text, MIT, you have to clean this data if using for fine tuning. repo already ships a chat re-formatting tools for most of the fine tuning tools.

the first 100 are free, all 66 free today:
https://github.com/Sumama-Jameel/megabit-trajectories

curious whether the capped shape helps or hurts your filter.
Sumama

Hey Sumama, thanks for reaching out, and good timing.

To your question: a plain head+tail cap tends to hurt a filter like Ordo when the root cause sits in the middle of a long log (a deep stack frame, the first failing test in a long suite). That's why the Ordo CLI doesn't cut blindly: when input exceeds the budget it keeps the error blocks first, then a short tail and head, and marks what was omitted. That said, capped outputs with the full raw log next to them are useful as hard test cases: they let us check whether the model reports the cause when it falls in the truncated part, or at least flags that it can't see it.

Some context on where Ordo is going: I'm rebuilding it as v2. The CLI is now open source (github.com/devlucascfarias/ordo) and keeps the full original output retrievable (ordo show ). I also built a contamination-free benchmark from real tool runs, and it showed v1's published numbers were too optimistic. Training data is now generated from real test runs on open-source repos, with deterministic, verified targets.

Real agent trajectories with retries and recoveries are exactly what's hardest to synthesize for the memory/compaction mode, so I'll take a look at the repo, especially the license, how sessions are structured, and whether they'd fit as evaluation cases.

Thanks again,
Lucas

hey Lucas, agreed on the mid-log cause, error-blocks-first plus marked omission is the right call.

my cap is head+tail at 8k chars with a truncated:true flag, and the raw log keeps every character beside it, so your hard test case works as-is: feed the capped sample, see if the model names the mid-log cause or admits it can't see it, then diff against the raw. your three checks: MIT on the packaging, upstream code keeps its own license, provenance per episode carries repo, commits, license, model. structure is OpenAI chat messages plus a tools catalog, a raw log and a sample per episode, splits with reasons, failures and retries in order.

happy to cut a slice of the long-output episodes, capped plus raw, if you want to run Ordo's filter against them. tell me what breaks.
Sumama

Sign up or log in to comment