Skip to content

Read an optional learned-style knowledge file when picking clips and writing titles - #287

Merged
nmbrthirteen merged 1 commit into
mainfrom
learned-style-context
Nov 23, 2026
Merged

nmbrthirteen merged 1 commit into
mainfrom
learned-style-context

Conversation

@nmbrthirteen

Copy link
Copy Markdown
Owner

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 adds 14-learned-style.md to 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.md lists the new file.

How I tested it

  • With a temp knowledge folder holding 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.
  • Full Python suite with unittest (1170 tests): the same 3 failures and 6 errors as main (claude install path assumptions and missing optional modules on my machine). The failing test names are identical.

Checklist

  • npx tsc --noEmit and npm test pass (plus pytest tests/ if you touched the backend)
  • Docs updated if commands or behavior changed
  • No secrets, personal config, or generated output committed

Only Python under backend/ and CLAUDE.md changed, so I did not run the TypeScript checks. pytest is not in the runtime, so the backend suite ran with python -m unittest discover.

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.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 75fe5f5c-9bbf-4de6-a3fb-349bff398c00
Commits

Reviewing files that changed from the base of the PR and between 6c5a57c and 44e49ca.

Files selected for processing: 3

  • CLAUDE.md
  • backend/services/claude_suggest.py
  • backend/services/content_generator.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@nmbrthirteen
nmbrthirteen merged commit bb9c3d7 into main Nov 23, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant