mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
Delete all existing .claude/ tracked files and recreate from scratch, adapting patterns from codeflash-agent. Hooks (6, up from 1): - bash-guard: blocks grep/find/cat in Bash, redirects to dedicated tools - require-read + track-read: enforces Read-before-Write/Edit - post-compact: injects git state + project conventions into compaction - post-edit-lint: runs prek on edited Python files (kept) - status-line: shows user, area, branch, dirty state Rules (10, up from 8): - New: sessions, debugging, github (from codeflash-agent) - Rewrote: code-style (absorbed source-code), git (added sizing/hygiene) - Removed: source-code (folded into code-style) Settings: permissions allowlist, attribution, includeCoAuthoredBy, full hook wiring, status line, enableAllProjectMcpServers. .gitignore: whitelist .claude/skills/ for tracking.
753 B
753 B
| paths | |
|---|---|
|
Language Support Patterns
- Current language is a module-level singleton in
languages/current.py— useset_current_language()/current_language(), never pass language as a parameter through call chains - Use
get_language_support(identifier)fromlanguages/registry.py— never import language classes directly - New language support classes must use the
@register_languagedecorator languages/__init__.pyuses__getattr__for lazy imports to avoid circular dependencies- Prefer
LanguageSupportprotocol dispatch overis_python()/is_javascript()guards is_javascript()returnsTruefor both JavaScript and TypeScript (still used in ~15 call sites pending migration)