Feature Request: Document [LEARNED:] Marker in CLAUDE.md #70
-
|
ELF Version: v0.3.13 ProblemThe # Format: [LEARNED:domain] description
learning_pattern = r'\[LEARN(?:ED|ING)?:?([^\]]*)\]\s*([^\n]+)'
matches = re.findall(learning_pattern, content, re.IGNORECASE)This feature works correctly but is completely undocumented. Claude doesn't know it exists, so it never uses it. Current State
But: This is not mentioned in:
Proposed SolutionAdd the following to the ELF section of the default CLAUDE.md template: ### Recording Learnings During Work
When you discover something important during a task, you can mark it for automatic extraction:
**Format:** `[LEARNED:domain] description`
**Examples:**
- `[LEARNED:typescript] Always use jsonrepair() before JSON.parse() on LLM output`
- `[LEARNED:office-js] The paragraph.pageNumber property doesn't exist - use getPageNumberForParagraph()`
- `[LEARNED:api-design] Retry logic should distinguish between transient and permanent errors`
**Keywords that trigger heuristic creation:**
If your description contains "always", "never", "should", "must", "avoid", or "prefer", it will be saved as a heuristic (confidence 0.5). Otherwise, it's saved as an observation.
**When to use this:**
- You discovered a non-obvious solution to a problem
- You found a pattern that should be remembered
- You identified a common mistake to avoidImplementation
ImpactThis is a zero-code change that enables an existing feature. The learning extraction code already works - it just needs to be activated through documentation. PriorityHigh - This is low-effort, high-impact. A documentation change enables automatic heuristic discovery. References
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Documented in ~/.claude/CLAUDE.md. The [LEARNED:] marker format:
Claude instances are instructed to use this marker during work, and the post-session review extracts them into the building. |
Beta Was this translation helpful? Give feedback.
-
|
Excellent catch! The auto-learning feature existed in the codebase but wasn't documented anywhere, so nobody knew to use it. Just merged comprehensive documentation: What [LEARNED:] Markers DoMark discoveries inline during work to auto-record learnings: [LEARNED:domain] The lesson or pattern discovered Examples:
How It Works
Documentation Added
Why This MattersSubagents can now capture insights while working without interrupting the workflow. The infrastructure was always there—it just needed documentation so people would discover it. Thanks for pushing on this! 🔍 |
Beta Was this translation helpful? Give feedback.
-
Also Merged: Contributors SectionAdded a special shoutout in the README to recognize the humans making ELF better:
Thanks for being an amazing partner in building this! 💙 |
Beta Was this translation helpful? Give feedback.
Excellent catch! The auto-learning feature existed in the codebase but wasn't documented anywhere, so nobody knew to use it.
Just merged comprehensive documentation:
What [LEARNED:] Markers Do
Mark discoveries inline during work to auto-record learnings:
[LEARNED:domain] The lesson or pattern discovered
Examples:
[LEARNED:react] Always use refs for callbacks in useEffect[LEARNED:api] Validate input at system boundaries[LEARNING:backend] Database queries should use prepared statementsHow It Works