Skip to content

prune retired runtime + add task_agenda daily digest#4

Open
hele211 wants to merge 7 commits into
mainfrom
claude/general-session-Gs88j
Open

prune retired runtime + add task_agenda daily digest#4
hele211 wants to merge 7 commits into
mainfrom
claude/general-session-Gs88j

Conversation

@hele211

@hele211 hele211 commented Jun 12, 2026

Copy link
Copy Markdown
Owner

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

  • Embeddingsembedder (@xenova/transformers), orphaned semantic-ranker and context-assembler. Search was already BM25 + metadata only.
  • Background indexingwatcher (chokidar) and the ingestion worker.
  • Service + serverservice.ts, the start command, and src/server/ (WebSocket server, token auth, rate limiter) plus rotate-token.
  • Obsidian pluginobsidian-plugin/ (chat UI + ws client), its build script, and the build:plugin/start npm scripts.
  • Dependencies@xenova/transformers, chokidar, ws, @types/ws, esbuild (12 → 9 runtime deps).

Keptcricknote tool/tools/reindex/setup; BM25 search via structured-filter + query-parser; indexer/index-file now BM25 + metadata only. The chunk_embeddings table is retained (historical migration 001, 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_agenda daily digest

A daily "what do I need to do" view over diary tasks (commit a0c4a86).

  • Scans Memory/Daily/* tasks, parses (due: …) deadlines, and buckets pending items into Overdue / Due today / Due in 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).
  • horizon_days parameter adjusts the lookahead window.
  • Wired into the cricknote-daily-review skill as the primary task view.

Verification

  • tsc --noEmit clean.
  • 643 tests passing (incl. 3 new for task_agenda bucketing, 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 on main.

https://claude.ai/code/session_01TDCwS4hBtp8KmiP3rHP8aV

claude added 6 commits June 12, 2026 14:29
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
@hele211 hele211 changed the title prune: remove retired embedding + websocket runtime (agent-native CLI) prune retired runtime + add task_agenda daily digest Jun 12, 2026
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
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.

2 participants