Add daily journal feature with FTS5 unified search#1
Open
Sean-Koval wants to merge 1 commit intomainfrom
Open
Conversation
Adds a freeform daily journal for capturing thoughts, decisions, and ideas
throughout the day, with full-text search across all content types.
New: tools/journal.py (7 MCP tools + Pydantic models)
Modified: models.py (Journal/JournalEntry tables + FTS5 virtual table),
operations.py (JournalOps + FTSOps), markdown.py (journal file ops),
indexer.py (dual-storage coordination), config.py (journals dir),
mcp_server.py (7 tool registrations), cli.py (9 subcommands)
CLI: sb journal add/body/summary/show/list/edit/delete/search/stats
MCP: create_journal_entry, update_journal, get_journal, get_journals,
update_journal_entry, delete_journal_entry, search_all_content
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
Journal+JournalEntrymodels) for capturing thoughts, decisions, and ideas throughout the daycontent_fts) for unified full-text search across journal entries, notes, and work log entriessb journal add/body/summary/show/list/edit/delete/search/stats) and 7 MCP toolsChanges
tools/journal.pydb/models.pyJournal+JournalEntrytables, FTS5 table ininit_dbdb/operations.pyJournalOps(CRUD) +FTSOps(FTS5 search/backfill)storage/markdown.pystorage/indexer.pyconfig.pyjournals_dirproperty +ensure_directories()mcp_server.pycli.pyjournalClick group with 9 subcommandsTest plan
sb journal add "test" --tags testcreates entry in DB + markdownsb journal showdisplays entries with timestampssb journal body/summaryupdates day-level metadatasb journal listshows table of recent journalssb journal edit/deletemodifies/removes entriessb journal search "query"returns FTS5 results across content typessb journal statsshows tag frequency and project breakdowndata/journals/YYYY-MM-DD.mdwith proper frontmatter🤖 Generated with Claude Code