Skip to content

Commit 49a3ff4

Browse files
authored
notes: renumber Engineering Notes companion 06 → 05 (prefix cache) (#9)
* notes: renumber context-tax companion to Engineering Notes 05 Article 05 is now the prefix-cache note (was planned as 06). Rename the companion note, drop the upcoming marker, and retarget skill/checklist references. * Align context-tax checklist with tightened note 05 Drop mid-session mode-consistency items; the note now drills one point: prefix cache position and precision. * notes(05): retarget example to prefix placement, not request-tail thrift Align the note, checklist, and context-tax-audit skill with the article: volatile time stays out of the system prompt; drill prefix protection. * notes(05): retell via how the agent learns current time Align companion note, checklist and skill with the time→SP→prefix-miss→ MCode placement arc; drop the old 'one small field' abstract lead. * notes(05): sync title and blurb with Feishu time-placement arc Match the polished article: how the agent learns current time; history write-once for <agent-context>; README title aligned. * chore(ronny): bump stack version to 0.2.5 Checklist/skill updates for notes 05 need a marketplace-visible version bump.
1 parent 209bc71 commit 49a3ff4

13 files changed

Lines changed: 50 additions & 46 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ change it. To suggest a change here, open an issue; see
182182
| 02 | [Too many tools will eat your context: from tool search to PTC](notes/02-tool-context.md) | `tool-budget-audit` |
183183
| 03 | [Keeping long sessions sharp: compaction vs. memory](notes/03-compaction-memory.md) | `long-session-check`, `handoff-doc` |
184184
| 04 | [How long should one bash command wait: from foreground blocking to background tasks](notes/04-bash-background.md) | `long-command-check` |
185-
| 06 | [The hidden tax on every turn: what an agent puts into context](notes/06-context-tax.md) *(upcoming)* | `context-tax-audit` |
185+
| 05 | [One small field can break the whole prefix cache](notes/05-prefix-cache.md) | `context-tax-audit` |
186186

187187
## Stacks
188188

‎README_ZH.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ AI 写代码越来越快,真正拉开差距的,是围绕 agent 的那一圈
142142
| 02 | [工具一多,context 就爆:从 tool search 到 PTC](notes/02-tool-context.md) | `tool-budget-audit` |
143143
| 03 | [长会话怎么不变傻:compaction 和 memory 的取舍](notes/03-compaction-memory.md) | `long-session-check`、`handoff-doc` |
144144
| 04 | [一条 bash 命令该等多久:从前台阻塞到后台任务](notes/04-bash-background.md) | `long-command-check` |
145-
| 06 | [每一轮都在交的隐形税:agent 往上下文里塞了什么](notes/06-context-tax.md)(即将发布) | `context-tax-audit` |
145+
| 05 | [一个小字段,拖垮整段前缀缓存](notes/05-prefix-cache.md) | `context-tax-audit` |
146146

147147
## Stacks
148148

‎notes/05-prefix-cache.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# 05 · How does the agent know the current time?
2+
3+
**In one line:** the model has no clock. Stuffing `date` into the system
4+
prompt is the most direct fix — and it breaks the prefix cache every turn.
5+
Put session-stable `# Environment` up front; put per-turn time in
6+
`<agent-context>` that is written into history and never rewritten; keep
7+
precision to the minute. For each injected part, ask what breaks without it,
8+
whether it needs every turn, how precise it must be, and whether its position
9+
breaks the prompt cache.
10+
11+
**Companion skill:** `context-tax-audit` - inventory one real request, then
12+
check necessity, frequency, precision, position and cache impact.
13+
14+
Plain-text checklist: [`checklists/context-tax.md`](../stacks/ronny/checklists/context-tax.md)
15+
16+
**Install:**
17+
18+
```bash
19+
mkdir -p ~/.agents/skills
20+
cp -R ~/mcode-stack/stacks/ronny/skills/context-tax-audit ~/.agents/skills/
21+
```

‎notes/06-context-tax.md‎

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎notes/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ repository holds something you can install and run for it.
1010
| 02 | [Too many tools will eat your context: from tool search to PTC](02-tool-context.md) | `tool-budget-audit` |
1111
| 03 | [Keeping long sessions sharp: compaction vs. memory](03-compaction-memory.md) | `long-session-check`, `handoff-doc` |
1212
| 04 | [How long should one bash command wait: from foreground blocking to background tasks](04-bash-background.md) | `long-command-check` |
13-
| 06 | [The hidden tax on every turn: what an agent puts into context](06-context-tax.md) *(upcoming)* | `context-tax-audit` |
13+
| 05 | [How does the agent know the current time?](05-prefix-cache.md) | `context-tax-audit` |
1414

1515
All companion skills live in [`stacks/ronny/skills/`](../stacks/ronny/skills/).

‎stacks/ronny/.claude-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ronny",
33
"displayName": "Ronny's MCode Stack",
4-
"version": "0.2.4",
4+
"version": "0.2.5",
55
"description": "Daily workflows and self-check skills from the MiniMax Code R&D lead: independent review, subagent split checks, tool and context budget audits, long sessions, long commands, harness experiments, trajectory review, plus everyday engineering practice for code review, review comments, small PRs, change descriptions and emergency changes.",
66
"author": {
77
"name": "Ronny (MiniMax Code team)"

‎stacks/ronny/.codex-plugin/plugin.json‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ronny",
3-
"version": "0.2.4",
3+
"version": "0.2.5",
44
"description": "Daily workflows and self-check skills from the MiniMax Code R&D lead: independent review, subagent split checks, tool and context budget audits, long sessions, long commands, harness experiments, trajectory review, plus everyday engineering practice for code review, review comments, small PRs, change descriptions and emergency changes.",
55
"author": {
66
"name": "Ronny (MiniMax Code team)"
@@ -14,7 +14,10 @@
1414
"longDescription": "Daily workflows and self-check skills from the MiniMax Code R&D lead: independent review, subagent split checks, tool and context budget audits, long sessions, long commands, harness experiments, trajectory review, plus everyday engineering practice for code review, review comments, small PRs, change descriptions and emergency changes.",
1515
"developerName": "Ronny (MiniMax Code team)",
1616
"category": "Developer Tools",
17-
"capabilities": ["Read", "Write"],
17+
"capabilities": [
18+
"Read",
19+
"Write"
20+
],
1821
"websiteURL": "https://github.com/MiniMax-AI/mcode-stack/tree/main/stacks/ronny",
1922
"defaultPrompt": [
2023
"Review this diff from a clean context against the requirement",

‎stacks/ronny/.minimax-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"schemaVersion": 1,
33
"name": "ronny",
4-
"version": "0.2.4",
4+
"version": "0.2.5",
55
"displayName": "Ronny's MCode Stack",
66
"description": "Daily workflows and self-check skills from the MiniMax Code R&D lead: independent review, subagent split checks, tool and context budget audits, long sessions, long commands, harness experiments, trajectory review, plus everyday engineering practice for code review, review comments, small PRs, change descriptions and emergency changes.",
77
"author": "Ronny (MiniMax Code team)",

‎stacks/ronny/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ shown by `mcode plugin marketplace list`, or copy single skills into
4242
| --- | --- | --- |
4343
| [`independent-review`](skills/independent-review/SKILL.md) | Review a diff from a clean context: only diff, requirement and test results; structured findings verified before fixing | 01 |
4444
| [`subagent-split-check`](skills/subagent-split-check/SKILL.md) | Decide whether work goes to a subagent or stays in the main loop; merge existing subagents back step by step | 01 |
45-
| [`harness-experiment`](skills/harness-experiment/SKILL.md) | Run a harness change as an experiment: small eval, one change, repeated runs, flipped tasks | 01, 02, 06 |
45+
| [`harness-experiment`](skills/harness-experiment/SKILL.md) | Run a harness change as an experiment: small eval, one change, repeated runs, flipped tasks | 01, 02, 05 |
4646
| [`tool-budget-audit`](skills/tool-budget-audit/SKILL.md) | Measure what tools cost in context and pick between trimming, tool search and programmatic tool calling | 02 |
4747
| [`long-session-check`](skills/long-session-check/SKILL.md) | Drop, summarize or write to file; when to compact vs. start fresh; review compaction and memory design | 03 |
4848
| [`handoff-doc`](skills/handoff-doc/SKILL.md) | Write a hand-off doc (goal, decisions, ruled out, next step) so a new session can pick up | 01, 03 |
4949
| [`long-command-check`](skills/long-command-check/SKILL.md) | Ten-point audit of how an agent runs long shell commands and background tasks | 04 |
50-
| [`context-tax-audit`](skills/context-tax-audit/SKILL.md) | Inventory what is injected into every request and how it affects the prompt cache | 06 |
50+
| [`context-tax-audit`](skills/context-tax-audit/SKILL.md) | Inventory what is injected into every request and how it affects the prompt cache | 05 |
5151
| [`trajectory-review`](skills/trajectory-review/SKILL.md) | Review how the agent got its result, not only whether it passed | - |
5252

5353
### Engineering practice
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
# Checklist: what you inject into every request
22

3-
From MCode Engineering Notes 06 (upcoming). Skill version: `skills/context-tax-audit`.
3+
From MCode Engineering Notes 05. Skill version: `skills/context-tax-audit`.
44

55
| Item | Ask yourself |
66
| --- | --- |
7-
| Inventory | Can you list everything in a request besides the user message, and how many tokens each part takes? |
7+
| Prefix awareness | Can you point to, in one request, what is the stable prefix and what changes every turn? |
88
| Necessity | If you delete each part, where would the model go wrong? If you cannot say, consider deleting it. |
9-
| Frequency | Does it need to appear in every turn and every request? Could it appear only at the start, at key points, or on change? |
9+
| Position | Is current time (or anything else that changes) in the system prompt? Move it later — e.g. time in per-turn `<agent-context>`, not `# Environment`. |
10+
| Frequency | Does a changing field need every turn / every request? Could it appear only at the start, at key points, or on change? |
1011
| Precision | Does time need seconds? Do numbers need every digit? The more precise, the more it changes every turn. |
11-
| Position | Is anything that changes placed in the system prompt or tool definitions? Move it later. |
1212
| Don't edit history | Are reminders already written into history rewritten in later turns? |
13-
| Request-level reminders | Reminders attached only to the end of a request are paid at full price every time. Is their frequency controlled? |
1413
| Recovery | Does removed information disappear entirely on compaction, session resume or subagents? Who brings it back? |
15-
| Mode consistency | Can the prompt or tool set switch mid-session? |
1614
| Measurement | Before and after a change, do you look at cache hit rate, cost per turn and quality together? Token count alone is not enough. |

0 commit comments

Comments
 (0)