prune retired runtime + add task_agenda daily digest#4
Open
hele211 wants to merge 7 commits into
Open
Conversation
semantic-ranker and context-assembler had zero importers — search.ts uses BM25 via structured-filter/query-parser only. Also drop the now-orphaned buildChunkCandidateQuery (fed only the semantic ranker) and reword its stale comment. Part of the agent-native CLI prune. https://claude.ai/code/session_01TDCwS4hBtp8KmiP3rHP8aV
…d service Delete the @xenova/transformers embedder, chokidar watcher, the ingestion worker, and the service/start runtime that drove them. indexNote now writes BM25 + metadata only (chunk_embeddings table retained but unwritten). The 'start' command is removed; the agent-native CLI (tool/tools/reindex/setup) needs no long-running process. Tests updated to drop the embeddings field and the embedder spy while keeping search/index coverage. https://claude.ai/code/session_01TDCwS4hBtp8KmiP3rHP8aV
Delete src/server/ (the ws server the Obsidian plugin connected to, its token auth, and per-connection rate limiting) plus the rotate-token command and the setup auth-token/server-config/plugin-install steps. Trim the now-unused server and embeddingModelPath fields from CrickNoteConfig. setup.ts no longer installs the plugin; remaining plugin assets are removed in the final layer. https://claude.ai/code/session_01TDCwS4hBtp8KmiP3rHP8aV
Delete obsidian-plugin/ (chat UI + ws client), its build script and test, and the build:plugin/start npm scripts (build is now just tsc). Drop the four dependencies the retired runtime pulled in: @xenova/transformers, chokidar, ws, plus @types/ws and the plugin-only esbuild. Dependencies: 12 to 9. https://claude.ai/code/session_01TDCwS4hBtp8KmiP3rHP8aV
README now documents the CLI tool/tools + reindex workflow with no long-running service or Obsidian plugin. Drop the obsidian-plugin tsconfig exclude. Mark the prune plan executed. https://claude.ai/code/session_01TDCwS4hBtp8KmiP3rHP8aV
task_agenda scans diary tasks, parses (due: ...) deadlines, and buckets pending items into overdue / due today / due in the next N days (default 7) / no deadline. Returns the agenda as data for an agent to read out, or with write=true persists a 'Today's Agenda' dashboard to Memory/Agenda.md via the safe edit flow (plain bullets, outside Memory/Daily, so it never pollutes the task scan). Wire it into the daily-review skill as the primary task view. https://claude.ai/code/session_01TDCwS4hBtp8KmiP3rHP8aV
installAgentAssets previously overwrote the vault-root agent guides unconditionally, destroying a user's own CLAUDE.md on setup. Now: write the guide if absent, refresh it in place only when it's CrickNote-managed (detected by the '# CrickNote Vault — Agent Guide' heading), and otherwise leave the user's file untouched and drop CrickNote's guidance in a CrickNote-<doc> sidecar they can @-import. setup reports which path was taken. Covered by tests for the fresh, refresh, and sidecar cases. https://claude.ai/code/session_01TDCwS4hBtp8KmiP3rHP8aV
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.
This PR does two things on the agent-native CLI: (1) prunes the retired embedding/websocket runtime, and (2) adds a daily task agenda.
Part 1 — Prune the retired runtime
Completes the agent-native pivot (cf. #3
feat/agent-native-bridge). CrickNote becomes a lean, embedding-free set of CLI tools an AI agent drives directly — no local model, no background worker, no long-running WebSocket service, no Obsidian chat plugin.Removed
embedder(@xenova/transformers), orphanedsemantic-rankerandcontext-assembler. Search was already BM25 + metadata only.watcher(chokidar) and the ingestionworker.service.ts, thestartcommand, andsrc/server/(WebSocket server, token auth, rate limiter) plusrotate-token.obsidian-plugin/(chat UI + ws client), its build script, and thebuild:plugin/startnpm scripts.@xenova/transformers,chokidar,ws,@types/ws,esbuild(12 → 9 runtime deps).Kept —
cricknote tool/tools/reindex/setup; BM25 search viastructured-filter+query-parser;indexer/index-filenow BM25 + metadata only. Thechunk_embeddingstable is retained (historical migration001, simply no longer written).Plan:
docs/superpowers/plans/2026-06-12-prune-retired-runtime.md. Done in 5 layered commits, each tsc-clean and test-green.Part 2 —
task_agendadaily digestA daily "what do I need to do" view over diary tasks (
commit a0c4a86).Memory/Daily/*tasks, parses(due: …)deadlines, and buckets pending items into Overdue / Due today / Due in next N days (default 7) / No deadline.write=truepersists a "Today's Agenda" dashboard toMemory/Agenda.mdvia the safe edit flow (plain bullets, outsideMemory/Daily/, so it never pollutes the task scan).horizon_daysparameter adjusts the lookahead window.cricknote-daily-reviewskill as the primary task view.Verification
tsc --noEmitclean.task_agendabucketing, the write path, and the horizon window). The only 2 failures are pre-existing and environmental (running as root: a forced-write-failure test and a~-expansion path test) — they fail identically onmain.https://claude.ai/code/session_01TDCwS4hBtp8KmiP3rHP8aV