/init update all claude.md files. <role> You are an expert prompt engineer who also…
- User
/init update all claude.md files. You are an expert prompt engineer who also executes the task after improving the prompt for it. You work in two phases: first you strengthen the prompt below, then you carry it out. Do not begin the task itself until the improvement pass (Sections 1–4) is complete.
<operating_rules>
- Work autonomously from start to finish. Do not ask clarifying questions or wait for confirmation at any point.
- When information is missing, make the most reasonable assumption, state it explicitly, and proceed.
- Preserve my original intent exactly. Improve only wording, structure, sequencing, constraints, formatting, and explicit instructions — never expand the scope beyond what I asked. </operating_rules>
<output_format> Respond in exactly these five numbered sections, using these exact headers:
-
Prompt Critique — Identify problems in my request as written: anything unclear, contradictory, overly broad, redundant, or likely to weaken the result. For each, state specifically why it affects output quality. Cover only what matters; do not pad.
-
Missing Information — List what is absent that would have strengthened the request: context, constraints, audience, tone, format, length, source material, success criteria, or edge cases. For each item, say whether you are resolving it by assumption (Section 3) or whether its absence genuinely blocks completion.
-
Assumptions I'm Making — State the concrete decisions you will use to proceed, phrased as choices ("I'll assume X"). Keep each practical and aligned with my likely intent.
-
Improved Prompt — Rewrite my request to be clearer, more specific, better structured, and more likely to produce the right output on the first try, with my intent intact. Present it as a self-contained prompt.
-
Result — Execute the task now, following your improved prompt and stated assumptions. Deliver the complete, finished output — not a plan, outline, summary, or partial draft — in the format, length, and tone the improved prompt calls for. </output_format>
<stop_conditions> Halt after Section 4 and skip Section 5 only if the request is unsafe, genuinely impossible, or depends on specific source material I have not provided that cannot be reasonably assumed or reconstructed. If you halt, name which condition applies and the one thing that would unblock you. In every other case, complete Section 5. </stop_conditions>
- User
init /init update all claude.md files. You are an expert prompt engineer who also executes the task after improving the prompt for it. You work in two phases: first you strengthen the prompt below, then you carry it out. Do not begin the task itself until the improvement pass (Sections 1–4) is complete.
Assistant
I'll start by exploring the current state of the CLAUDE.md files and the codebase structure.
Assistant
Now let me verify the actual codebase against what the docs claim, focusing on the recently-changed areas (
src/shared/ui/,timeMachine) and a few accuracy checks.Assistant
Let me verify a couple of doc claims against the actual code before rewriting.
Assistant
I now have everything I need. The two CLAUDE.md files were renamed from AGENTS.md but still carry the old
# AGENTS.mdheadings (missing the required/initprefix), and the root file has a few stale paths. Thesrc/CLAUDE.mdis already well-aligned with the recentsrc/shared/ui/refactor. Let me apply targeted fixes.Assistant
Now let me reflect the
dq:*npm aliases (the cross-source accuracy pipeline is now wired into scripts) in the verify-dq section.Assistant
Now the
src/CLAUDE.mdheading and a small module-map gap (dbPath.ts/errors.tsare omitted undershared/).Assistant
- User
create coding agent agnostic AGENTS.md files mirroring each CLAUDE.md file
Assistant
I'll ground this in the actual files first, then surface the one decision that branches the approach (per how you like to work).
Assistant
Quick critique, grounded in the two files:
- The body is already agent-agnostic. The only Claude-specific content is the header block (lines 1–3 of each) and the
src/cross-reference toCLAUDE.md. So "make it agnostic" is a header swap, not a content rewrite — good. - "Mirroring" creates a drift problem. You just spent a whole turn fixing doc drift. A literal mirror = 4 files (
CLAUDE.md,src/CLAUDE.md,AGENTS.md,src/AGENTS.md) saying nearly the same thing, which will diverge the next time anything changes. That's the one decision worth pinning down before I build.
The transformation itself is settled; how you want the two names to relate is the real fork:
- The body is already agent-agnostic. The only Claude-specific content is the header block (lines 1–3 of each) and the
Assistant
Got it — AGENTS.md becomes the canonical, agent-agnostic source; CLAUDE.md shrinks to an import. Let me create byte-perfect copies first, then swap headers and replace the CLAUDE.md files with import stubs.
Assistant
Now I'll read the copies to enable header edits.
Assistant
Now swap the headers to agent-agnostic, and fix the
src/cross-reference to point at the rootAGENTS.md.Assistant
Now replace the two
CLAUDE.mdfiles with thin import stubs so Claude Code pulls in the canonical content via@AGENTS.md.Assistant
Let me verify the final state — no stray Claude/CLAUDE references should remain in the canonical AGENTS.md files, and the stubs should be correct.
Assistant
Done. AGENTS.md is now the canonical, agent-agnostic source, and the CLAUDE.md files import it.
What changed
Canonical content → AGENTS.md (agent-neutral header, identical body):
- AGENTS.md — full monorepo guidance
- src/AGENTS.md — hub-package guidance; its scope note now points to the root
AGENTS.mdinstead ofCLAUDE.md
Header on both is now tool-agnostic:
This file provides guidance to coding agents working with code in this repository. It is the canonical, tool-agnostic source; imports it.
- User
/model model claude-sonnet-4-6
- User
commit and push all pending changes
Assistant· claude-sonnet-4-6
Two distinct concerns here — I'll split into two commits (UI refactor + docs), then push.
Assistant· claude-sonnet-4-6
Pushed. Two commits landed on
main:df907e5refactor(ui)— theshared/uimodule split + TimeMachine migration (typecheck + unit tests passed via pre-push hook)00bf2f6docs— AGENTS.md canonical, CLAUDE.md stubs