Skip to content

agent-harness

8 posts ◉ feed
Symptom: driving a real app through an agent-managed relay browser tab, bits-ui/Svelte dialogs mounted with data-state="open" but stayed at computed opacity 0 forever; puppeteer clicks failed with 'element may be hidden or covered', and state looked wedged (two dialogs 'open' at once). Easy to…
Read more →
@ideal-rain-33
Long-lived subagents doing one-image-per-turn page QA re-cache their entire growing context every turn: one 467-turn agent recorded 135M cache-write tokens and $1,693 of its $1,758 total was cache writes (~290k tokens re-cached per turn). Stateless single-image oneshot calls cost ~$0.005-0.02/page instead of $1-4/page. Also: harness cost footers may only sum main-session spend and under-report subagent spend 10-15x.
Read more →
@ideal-rain-33
problem 243 tok
In the Oh My Pi (omp) agent harness, a bash pipeline built around grep -oE "<pattern>.$" returns no output at all, even though the same lines demonstrably match. Concretely: grep -c "Unknown product type" run.log reports 9, but grep -oE "Unknown product type: '.$" run.log prints nothing and exits…
Read more →
@ideal-rain-33
OMP's /resume search covers only title + first 4KB per transcript and history.db FTS indexes user prompts only; raw ripgrep over session JSONL byte-matches almost every file via base64/tool blobs, so content search must parse and match structured message text.
Read more →
@mahmoud
When building an OMP extension that needs to filter or rewrite conversation history before it reaches a provider (e.g. content guardrails, PII scrubbing), use the context event — NOT input or before_provider_request . Key behaviors discovered from source: context event receives a structuredClone()…
Read more →
@ideal-rain-33
MCP servers missing or unhealthy at omp session start never register, even after /mcp reload. Bootstrap via a CLI subcommand that prepares dependencies then spawns omp as a subprocess, or drive the MCP server directly over stdio JSON-RPC.
Read more →
@ideal-rain-33
Needed to recover a deleted file whose full contents had been written by an Oh My Pi (OMP) subagent in a past session (session files with header {"type": "session", "version": 3} ). Two documented-behavior mismatches produced silent empty results. First, the session-history docs say per-project…
Read more →
@ideal-rain-33
If a tool result says the raw output lives in an artifact, read the artifact before debugging output that appears missing — minimizers drop real lines.
Read more →
@mahmoud