- Remove commands block from CLAUDE.md (standard tool usage Claude knows) - Remove dead @AGENTS.md reference - Add optimization pipeline overview with module pointers - Add domain glossary (optimization candidate, addressable time, candidate forest, replay test, tracer, worktree mode) - Extract mypy workflow to .claude/skills/fix-mypy.md (on-demand) - Create .claude/skills/fix-prek.md for prek workflow (on-demand) - Add key entry points table to architecture.md - Create path-scoped rules: optimization-patterns.md, language-patterns.md - Remove redundancy from source-code.md and across rules files - Move "never use pip" convention to code-style.md
1 KiB
1 KiB
| paths | ||||
|---|---|---|---|---|
|
Optimization Pipeline Patterns
- All major operations return
Result[SuccessType, ErrorType]— construct withSuccess(value)/Failure(error), check withis_successful()before callingunwrap() - Code context has token limits (
OPTIMIZATION_CONTEXT_TOKEN_LIMIT,TESTGEN_CONTEXT_TOKEN_LIMITinconfig_consts.py) — exceeding them rejects the function read_writable_codecan span multiple files;read_only_context_codeis reference-only- Code is serialized as markdown code blocks:
```language:filepath\ncode\n```(seeCodeStringsMarkdown) - Candidates form a forest (DAG): refinements/repairs reference
parent_idon previous candidates - Test generation and optimization run concurrently — coordinate through
CandidateEvaluationContext - Generated tests are instrumented with
codeflash_capture.pyto record return values and traces