Wire up the rules loader and the subagent CRUD with caching.
- User
Wire up the rules loader and the subagent CRUD with caching.
Assistant
I'll wire up the rules loader and the subagent CRUD.
Assistant
Now apply the TTL cache to
loadProjectRulesandlistSubagents. First rules:Assistant
Subagent create/delete must invalidate the cache. Let me wire that.
Assistant
The local
noteshadows the parameternote. Renaming the local.Assistant
All green — 1207 tests. Let me quickly verify the caches actually reduce disk reads, then commit.
Assistant
The rule + subagent reads are ~11x faster cached. Documenting and committing.
Assistant
Round complete and pushed (
59b065c): 1207 tests pass / 0 fail (10 new), typecheck clean on core and apps, offline smoke 9/9. I benchmarked the caches at ~11× fewer disk reads. This is the third pass on this theme, building on the preferences store and interaction ledger without repeating them. Speed / latency — finishing the hot pathThe system prompt is rebuilt on nearly every turn (its cache key includes the user prompt), so any disk work inside the build runs constantly. Prior rounds cached preferences and the bootstrap injection; this round closes the remaining two hot reads. (reads , , and every file under ) and (reads the bundled and workspace agent directories) now go through a new shared utility with a 15-second TTL — short enough to stay fresh as the agent edits, and / clear the subagent cache immediately. I benchmarked it: (19ms → 1.7ms). The util is a single tested primitive rather than each call site hand-rolling its own memo. Memories / personal feel — project recap
- User
Improve the system and auto-sent prompts to be stronger without growing the token budget.
Assistant
Another prompt-power round. Since the last one, I've added many tools (code_graph, deep_research, media, security, repro sandboxes, css-theme, init_project_doc), so the harness tool-selection table is likely stale. Let me re-measure and re-read the sections.
Assistant
No stale-guarding test exists for the tool table (which is exactly what went stale). Let me add one, then run the full gate.
Assistant
All green — 1210 tests. Let me view the final harness prompt to confirm it reads well, then commit.
Assistant
The harness prompt is now more capable and reads cleanly. Documenting and committing.
Assistant
Round complete and pushed (
e0012f9): 1210 tests pass / 0 fail (3 new guard tests), typecheck clean on core and apps, offline smoke 9/9. The core system prompt sits at ~5.3KB — down from the 8.2KB pre-dedup baseline — while now covering far more capability than it did then. The key finding: the tool table had gone staleSince the last prompt-power round I'd added a lot of tools, and the harness tool-selection table hadn't kept up — it predated , , all the media tools, , the repro sandboxes, , and . So the model was being told to reach for a smaller toolset than it actually has. That's the highest-leverage fix: the table now maps needs to the current tools — structure queries to , broad research to , keyless media to the fetch/generate/forge tools, vulnerability work to the repro sandbox, repo onboarding to , and durable prefs to — plus an explicit line so the model knows those surfaces exist and how they behave. Tighter and more powerful