# MYELIN: Budget Prompting for Persistent Memory Agents: v1.5 → v1.6

From v1.5 (2 Jun) to v1.6 (2 Jun): 12,285 words to 12,346 words, 75 words in new or rewritten paragraphs and 14 taken out, 14 paragraphs changed.

## Change note of v1.6

**Savings claim lowered to 2-3x today, 3-5x projected**

The headline number is lowered. The abstract now claims 2 to 3 times lower cost today, and 3 to 5 times only once the unbuilt techniques ship. The technique table explains why it has 21 rows for 20 techniques: one row is the output side of another.

- Spelling switched to American English.

## Changed paragraphs

Marks: [-removed-] {+added+}.

### Abstract

This paper presents **Budget Prompting** — a family of 20 techniques that [-collectively-] {+together+} reduce the per-turn cost of persistent memory agents by [-3–5×-] {+2–3× in production today (3–5× projected once the remaining designed techniques ship),+} with no degradation in agent intelligence or personality coherence that we have been able to observe. We organize these techniques into five categories: **model routing** (sending cheap work to cheap models), **context economics** (minimizing what enters the context window), **output economics** (minimizing what the model generates), **temporal amortization** (spreading expensive operations across many turns), and **billing arbitrage** (exploiting pricing structure discontinuities).

### 3. Taxonomy of Budget Prompting Techniques

| # | Technique | Category | Status | Est. Savings | |---|-----------|----------|--------|--------------| | A1 | Model routing by complexity | Model Routing | [Y] | 25–40% automated | | A2 | Extended thinking control | Model Routing | [Y] | $5–10/day equiv. | | A3 | Cross-model delegation | Model Routing | [Y] | Variable | | B1 | System prompt caching | Context Econ. | [Y] | $8–10/day | | B2 | Aggressive session management | Context Econ. | [Y] | 2–4× per turn | | B3 | Memory search over bulk loading | Context Econ. | [Y] | 80–95% context | | B4 | Context compaction | Context Econ. | [Y] | 60–80% context | | B5 | Frozen snapshot injection | Context Econ. | [ ] | CHR 65%→90%+ | | B6 | Surgical tool output pruning | Context Econ. | [ ] | 30–40% context | | B7 | Iterative summary compression | Context Econ. | [ ] | 5–15K tokens | | B8 | Rolling window + vector retrieval | Context Econ. | [ ] | Fixed context cap | | B9 | Mid-context reinjection | Context Econ. | [ ] | Indirect | | C1 | Silent reply (NO_REPLY) | Output Econ. | [Y] | $5–8/day | | C2 | Thinking control (output) {+— *output-side view of A2*+} | Output Econ. | [Y] | (see A2) | | D1 | Cron priority tiers | Temporal Amort. | [Y] | 15–20% automated | | D2 | Background review agent | Temporal Amort. | [ ] | 80% reflection | | D3 | Dual-account staggering | Temporal Amort. | [Y] | Eliminates outages | | D4 | Token bucket pacing | Temporal Amort. | [Y] | Prevents lockouts | | E1 | Batch API for non-interactive | Billing Arbitrage | [Y] | 50% on batch work | | E2 | Sub-agent fresh context | Billing Arbitrage | [Y] | $1–3/delegation | | F1 | Security scanning on mem writes | Security | [ ] | Indirect |

### 3. Taxonomy of Budget Prompting Techniques

[-Each technique is described with its mechanism, expected savings, implementation status, and interaction effects.-]

### 3. Taxonomy of Budget Prompting Techniques

{+Each technique is described with its mechanism, expected savings, implementation status, and interaction effects. The table lists 21 rows but 20 distinct techniques: C2 is the output-cost view of A2 (extended thinking control), broken out separately so the output-economics category reads completely. Counting it once, 13 of the 20 are implemented and 7 are designed.+}

### 4.2 Budget Pressure Cascade

When [-utilisation-] {+utilization+} rises, the system progressively activates more aggressive cost reduction. The following pseudocode [-formalises-] {+formalizes+} the cascade:

### 4.2 Budget Pressure Cascade

``` ALGORITHM: [-BudgetPressureCascade(utilisation,-] {+BudgetPressureCascade(utilization,+} task) ----------------------------------------------------- Input: [-utilisation-] {+utilization+} in [0, 1] (7-day rolling average across all accounts) task: {type, priority, model_preference, thinking_budget} Output: routed_task: {model, thinking, should_execute}

### 4.2 Budget Pressure Cascade

if [-utilisation-] {+utilization+} < 0.50: # GREEN — full capability routed_task.model ← task.model_preference routed_task.thinking ← task.thinking_budget routed_task.should_execute ← true

### 4.2 Budget Pressure Cascade

elif [-utilisation-] {+utilization+} < 0.70: # YELLOW — conserve background if task.type = "cron" AND task.priority = "background": routed_task.model ← HAIKU routed_task.thinking ← OFF else: routed_task.model ← task.model_preference routed_task.should_execute ← true

### 4.2 Budget Pressure Cascade

elif [-utilisation-] {+utilization+} < 0.85: # ORANGE — skip low-priority if task.priority = "background": routed_task.should_execute ← false; return if task.type = "cron": routed_task.model ← HAIKU; routed_task.thinking ← OFF else: routed_task.model ← min(task.model_preference, SONNET)

### 4.2 Budget Pressure Cascade

elif [-utilisation-] {+utilization+} < 0.95: # RED — degrade interactive routed_task.model ← SONNET if task.type = "interactive" else HAIKU routed_task.thinking ← LOW if task.type = "interactive" else OFF routed_task.should_execute ← task.priority >= "standard"

### 4.2 Budget Pressure Cascade

This cascade is monotonic — each level includes all actions from lower levels. The [-utilisation-] {+utilization+} metric is a 7-day rolling average computed per-account, with the gateway selecting the account with the lowest [-utilisation-] {+utilization+} for each request. Recovery happens when [-utilisation-] {+utilization+} drops (e.g., account reset, sustained lower usage).

### 4.2 Budget Pressure Cascade

![Figure 2. The five-level budget pressure cascade. As 7-day rolling [-utilisation-] {+utilization+} climbs from GREEN (<50%) to CRITICAL (>95%), the system progressively downshifts model tier, disables extended thinking, and skips lower-priority work. Each level inherits every restriction below it; critical cron jobs run at all levels, background jobs are the first to be dropped.](images/fig-cascade.png)

### 7.6 Process Supervision and Reasoning Economics

Lightman et al. (2023) showed that process-level supervision (verifying each reasoning step) can improve LLM accuracy. This is directly relevant to our thinking token economics (A2, C2): extended thinking generates verifiable reasoning steps, but at 3–5× the cost of input tokens. Budget Prompting's contribution is [-recognising-] {+recognizing+} that reasoning budget should be explicitly managed per-task rather than left to model defaults — a cost-aware extension of the process supervision principle.

### Appendix A: Technique Summary Table

| # | Technique | Category | Status | Est. Savings | |---|-----------|----------|--------|--------------| | A1 | Model routing by complexity | Model Routing | [Impl.] | 25–40% automated | | A2 | Extended thinking control | Model Routing | [Impl.] | $5–10/day equiv. | | A3 | Cross-model delegation | Model Routing | [Impl.] | Variable | | B1 | System prompt caching | Context Econ. | [Impl.] | $8–10/day | | B2 | Aggressive session management | Context Econ. | [Impl.] | 2–4× per turn | | B3 | Memory search over bulk loading | Context Econ. | [Impl.] | 80–95% context | | B4 | Context compaction | Context Econ. | [Impl.] | 60–80% context | | B5 | Frozen snapshot injection | Context Econ. | [Designed] | CHR 65%→90%+ | | B6 | Surgical tool output pruning | Context Econ. | [Designed] | 30–40% context | | B7 | Iterative summary compression | Context Econ. | [Designed] | 5–15K tokens | | B8 | Rolling window + vector retrieval | Context Econ. | [Designed] | Fixed context cap | | B9 | Mid-context reinjection | Context Econ. | [Designed] | Indirect | | C1 | Silent reply (NO_REPLY) | Output Econ. | [Impl.] | $5–8/day | | C2 | Thinking control (output) {+— *output-side view of A2*+} | Output Econ. | [Impl.] | (see A2) | | D1 | Cron priority tiers | Temporal Amort. | [Impl.] | 15–20% automated | | D2 | Background review agent | Temporal Amort. | [Designed] | 80% reflection | | D3 | Dual-account staggering | Temporal Amort. | [Impl.] | Eliminates outages | | D4 | Token bucket pacing | Temporal Amort. | [Impl.] | Prevents lockouts | | E1 | Batch API for non-interactive | Billing Arbitrage | [Impl.] | 50% on batch work | | E2 | Sub-agent fresh context | Billing Arbitrage | [Impl.] | $1–3/delegation | | F1 | Security scanning on mem writes | Security | [Designed] | Indirect |
