Skip to content

Trim CLAUDE.md, move status log to docs/status.md - #12

Merged
hugooc merged 1 commit into
mainfrom
docs/trim-claude-md
Jul 29, 2026
Merged

hugooc merged 1 commit into
mainfrom
docs/trim-claude-md

Conversation

@hugooc

@hugooc hugooc commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Originally written 2026-07-28, rebased onto current main on 2026-07-29 after six intervening commits.

What it does

CLAUDE.md is auto-loaded into every Claude Code session in this repo, so its length is a per-session tax. This moves the status log, next-session candidates, and the 2026-05-06 surface mapping into docs/status.md, and the live-verification backlog into WISHLIST.md.

31,279 → 13,183 characters, a 58% cut, with nothing deleted — only relocated.

What stays in CLAUDE.md is what you need while writing code: architecture, conventions, key endpoint facts, and the live-testing workflow.

Rebase notes

The original commit predated a day of work that touched the same two files, so the conflict needed resolving rather than picking a side. Specifically preserved:

  • The verified send-chain facts added to "Key endpoint facts" (GetComposeId's bare-string response, GetViewers being required, the five-key recipient object, SaveDraft's object response)
  • The rule that Kaiser returns application errors as HTTP 200
  • The warning that (inferred) response shapes are guesses, not facts
  • How to confirm the running server process is newer than your edit
  • Gating debug probes on PYTEST_CURRENT_TEST
  • The removal of a real provider's name from WISHLIST.md

A naive resolution would have taken the older file wholesale and silently reverted all six, including the PHI fix.

Brought current while rebasing

The moved content was a 2026-07-28 snapshot, so it described a world where send_message's commit path had never been verified. Corrected in place:

  • docs/status.md — the send_message entry now records the 2026-07-29 live verification and points at the postmortem. Its chain description omitted GetViewers entirely; removed rather than left to mislead. Test count 591 → 599. Header now carries a "last updated" line distinguishing the verbatim split from later edits.
  • WISHLIST.md — the "live-verify the send_message commit path" backlog item is struck through and done, with a note that the same inferred-shape risk applies to every remaining item on that list, request_refill first.
  • CLAUDE.md — the summary now states plainly that the two write tools differ in maturity and shouldn't be treated alike.

Verified

  • 599 tests pass, ruff and mypy clean
  • scripts/phi-scan.py passes on the rebased tree
  • All six of today's CLAUDE.md additions confirmed present after the merge resolution

🤖 Generated with Claude Code

CLAUDE.md is auto-loaded into every Claude Code session in this repo, so
everything in it costs context on every turn. It had grown to 28k chars
(~7k tokens), and two thirds of that was a dated status log rather than
the durable guidance the file is for.

Moved out, verbatim:

- "Current state (2026-06-05)" -> docs/status.md. Per-tool changelog with
  live-verification findings. Genuinely useful history, just not something
  that needs to be resident every session.
- "Next session: start here" -> superseded. WISHLIST.md already carried a
  fuller writeup for all four candidates (list_documents, reply_to_message,
  send_message polish, list_immunizations).
- "New surfaces mapped 2026-05-06" -> superseded by the endpoint docs
  (billing.md, documents.md, upcoming_orders.md) and the BFF header warning
  already in medications.md.

The five live-verification loose ends existed nowhere else, so they moved
to a new "Live-verification backlog" section in WISHLIST.md rather than
being dropped.

Kept in CLAUDE.md: the endpoint gotchas, code conventions, region scope,
dev and live-testing workflow, the do-not-copy-upstream rule, and style.
Those are the things a session cannot re-derive from the code.

CLAUDE.md: 28,045 -> 10,017 chars (~7,010 -> ~2,500 est. tokens/session).
No content was deleted; every line survives in CLAUDE.md, docs/status.md,
WISHLIST.md, or the endpoint docs it now points to.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@hugooc
hugooc merged commit 739952b into main Jul 29, 2026
3 checks passed
@hugooc
hugooc deleted the docs/trim-claude-md branch July 29, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant