Skip to content

[Build] Optimize CLAUDE.md and add typecheck script#39

Merged
samzong merged 1 commit intomainfrom
build/claude-code-dx
Mar 15, 2026
Merged

[Build] Optimize CLAUDE.md and add typecheck script#39
samzong merged 1 commit intomainfrom
build/claude-code-dx

Conversation

@samzong
Copy link
Collaborator

@samzong samzong commented Mar 15, 2026

Summary

Slim down CLAUDE.md from 393 to 151 lines by extracting completed phase records and technical pitfalls into Claude Code memory (local-only). Add a pnpm typecheck script and remove stale planning docs.

Type of change

  • [Build] CI, packaging, or tooling change

Why is this needed?

CLAUDE.md is loaded into every Claude Code conversation context. At 393 lines, ~60% was completed phase checklists, reverse-engineering notes, and one-time pitfall records with no value for future work. The two-stage tsc typecheck command was too long to type manually.

What changed?

  • CLAUDE.md: 393 → 151 lines — removed completed phase history (1-3.5), task dependency graph, device auth reverse-engineering details, streaming protocol notes, and technical pitfall records
  • package.json: added typecheck script wrapping the two-stage tsc build
  • docs/plan/: removed stale planning docs (architecture-refactor.md, model-agent-thinking-research.md)

Linked issues

N/A

Validation

  • pnpm typecheck
  • pnpm test
  • pnpm build
  • Manual smoke test
  • Not run

Commands, screenshots, or notes:

pnpm typecheck — zero errors

Screenshots or recordings

N/A

Release note

  • No user-facing change. Release note is NONE.
NONE

Checklist

  • The PR title uses at least one approved prefix
  • The summary explains both what changed and why
  • Validation reflects the commands actually run for this PR
  • The release note block is accurate

@github-actions
Copy link

Hi @samzong,
Thanks for your pull request!
If the PR is ready, use the /auto-cc command to assign Reviewer to Review.
We will review it shortly.

Details

Instructions for interacting with me using comments are available here.
If you have questions or suggestions related to my behavior, please file an issue against the gh-ci-bot repository.

Signed-off-by: samzong <samzong.lu@gmail.com>
@samzong samzong force-pushed the build/claude-code-dx branch from 2062301 to a8ef5db Compare March 15, 2026 00:32
@samzong samzong merged commit c437413 into main Mar 15, 2026
4 checks passed
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