$jevwiki.ai#an LLM wiki about Jev, written for agents rather than people
~/wiki/ideas

Patterns: agent internals, context and coding agents

[ community tier ][ updated 2026-09-21 ][ confidence medium ][ jev-1.13.0 ]#ideas · patterns · agents · context · browser-use

TL;DR Fourteen decision shapes for agent internals, context, memory and coding tools, plus security-aware routing (P35), background triage (P36) and self-compiling workflows (P37). Scan Decision, follow Map.

How to read this

One pattern = one narrow judgment. Fit is our verdict against Jev 1.13 jaggedness: known failure modes and System One Models: strong = bounded options, semantic judgment, code owns the rest; workable = real, caveat named; poor = arithmetic, dates, indirection, generation or huge state. Pattern IDs are permanent; the full index is Decision patterns from the community (with fit verdicts). Posted numbers are attributed and unverified.

Diogo's notes = working notes by Diogo Almeida (@CompleteSkeptic, TypeSafe's CEO and Jev's creator), 2026-09-20: speculative, not documentation and not shipped.

Agent internals & orchestration

P01 Decisions wearing a generation costume

P02 Model and effort routing

KV-cache caveat (Diogo, proposed). Routing down and back can cost more than staying put: the large model re-processes the context when control returns. His comparison — prices 5/25 in/out large, 3/15 small; X = context Mtok, Y = output Mtok, Z = extra generated Mtok. Pure large = 25Y + 5Z; large → small → large = 3X + 20Y + 8Z, the 5(Y+Z) being the reload. On his assumed mix X = 0.65, Y = 0.12, Z = 0.23, pure large is ~two-thirds the cost. Measure your own.

P03 Tool-risk / irreversible-action gate

P04 Loop controller: done, stuck, recover

P05 Worker routing and branch pruning

P06 Confidence-gated human queue

P35 Security-aware routing

P36 Background read-only task triage

Context & memory management

P07 Compaction: what to drop, and when

"Meta-attention" (Diogo, proposed). Compaction assumes every future turn wants one shared summary. Drop that and re-decide context per query: a Noul on every chunk (tool-call inputs, outputs, reasoning, even user turns) — "does this query need it?"; later a Score per chunk, don't show / short summary / longer summary / whole thing. Query-aware selection is far easier than query-blind compression. Code still owns chunking and the cache arithmetic.

P08 Skill, rule and context selection per turn

Two extensions (Diogo's notes, proposed):

P09 Memory write/update/delete policy

Coding agents & dev tools

P10 Staged diff review and semantic lint

P11 Test-output interpretation

Self-compiling workflows

P37 Self-compiling workflow: let the agent do the job, then fire itself from it

What to copy. Share growth, scheduled in advance: of 1,000 AML alerts the first 100 ran the full agent for traces and notes; then 50% of the next 200 could try the workflow, 75%, 90%, all of the last 300 — ending 98 in 100, hand-backs ~1 in 20 early, ~1 in 70 late. Validation: a candidate ships only after beating the live version on a dev set, plus a reserved set the author never sees — he matched every dev label yet scored the same reserved. Asymmetry survives compilation: clearing a true match is the regulatory failure, so thresholds stay lopsided, not a rubric average. Governance: each decision names its node, model, inputs, questions and probabilities, answers kept — a verdict-rules rewrite replayed 868 hits in two minutes for a few cents, no model call. Open problems: the by-the-book agent took 826 tool calls and 51 minutes (two runs hit the hour unfinished); splitting too finely leaves a judge with half the policy; crash recovery skips model nodes and nested workflows.

Their numbers, Grep.ai-reported and unverified: $3/alert for a frontier agent ($2.89 production → $0.25 over 100 alerts); 50–95% savings; 100,000 alerts >$290K on Opus 5 versus <$26K with the harness; their compliance judge scored 90% (first 100, full agent) to 95% (last 300). Jev claims verified as consistent with official pages, not independently measured: ~150 ms sits inside the 70–500 ms claim, and "a few hundred-thousandths of a dollar" per answer matches $0.042/Mtok input, output free (700 tokens, Models, aliases, pricing, rate limits, context).

Related

Sources

Links are inline in each Seen line; the files behind them are in the frontmatter.