Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6k
Description
Hi! First of all, thank you so much for creating this amazing plugin - the continuous learning system is really impressive! 🙏
I encountered an issue with the/instinct-import command and wanted to share my findings in case it helps.
Issue Summary
When importing instinct files usinginstinct-cli.py import, only the frontmatter metadata is preserved. The actual content (Action, Evidence, Examples sections) after the closing--- is lost.
Steps to Reproduce
- Create an instinct file with full content:
---id:my-instincttrigger:"when doing something"confidence:0.9domain:git---# My Instinct Title## ActionDo this specific thing...## Evidence-Observed 10 times
Run
/instinct-import path/to/instinct.yamlCheck the imported file in
~/.claude/homunculus/instincts/inherited/
Expected Result
The imported file should contain the complete content including Action, Evidence, and Examples sections.
Actual Result
The imported file only contains the frontmatter, missing everything after the second---:
---id:my-instincttrigger:"when doing something"confidence:0.9domain:gitsource:inherited---
Analysis
I traced the issue toparse_instinct_file() inskills/continuous-learning-v2/scripts/instinct-cli.py (around line 43-86).
The current logic appends the instinct immediately when the frontmatter ends (second---), before any content has been collected. The content that follows gets collected intocontent_lines, but by thencurrent has already been reset to{}.
I believe the fix would be to defer appending the instinct until thenext--- is encountered (start of a new instinct) or at EOF, rather than at the end of frontmatter.
Workaround
For now, I'm manually copying the full instinct files:
cp project/.claude/instincts/*.yaml~/.claude/homunculus/instincts/inherited/
Environment
- Plugin version: 1.2.0
- macOS
Thanks again for all your work on this plugin! Happy to help test a fix if needed.