Repository navigation
Read an optional learned-style knowledge file when picking clips and writing titles - #287
Merged
Merged
Conversation
Clip picking and title writing read a fixed list of knowledge files, so a file holding what someone keeps and how they title could not reach either. Add 14-learned-style.md to both lists. A missing file is skipped, so nothing changes unless it exists. The suggestion cache key already hashes the loaded knowledge text, so editing the file re-picks instead of replaying old suggestions.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 41 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 23, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Clip picking (
claude_suggest.KB_FILES) and title writing (content_generator.CONTENT_KB_FILES) read a fixed list of knowledge files. This adds14-learned-style.mdto both, so an app or a person can write a short profile of what they keep and how they title, and the picker and title writer will follow it.The file is optional. A missing file is skipped by
load_kb_context, so nothing changes for anyone who does not have one.kb_signature()hashes the loaded text, so editing the file re-picks instead of replaying cached suggestions.CLAUDE.mdlists the new file.How I tested it
14-learned-style.md, both the picker list and the title list load it. After deleting the file, the style text is gone and the other files still load.main(claudeinstall path assumptions and missing optional modules on my machine). The failing test names are identical.Checklist
npx tsc --noEmitandnpm testpass (pluspytest tests/if you touched the backend)Only Python under
backend/andCLAUDE.mdchanged, so I did not run the TypeScript checks. pytest is not in the runtime, so the backend suite ran withpython -m unittest discover.