feat(watch): auto-ingest watcher for folders and AI transcripts (Phase 1) - #48
Draft
therahul-yo wants to merge 1 commit into
Draft
feat(watch): auto-ingest watcher for folders and AI transcripts (Phase 1)#48therahul-yo wants to merge 1 commit into
therahul-yo wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
This was referenced Jul 6, 2026
REVAMP_PLAN Phase 1: `superton watch` keeps the palace current without manual adds. - New superton/watcher.py: polling scanner (mtime + size signatures), JSON state in <home>/watch_state.json, watchlist file managed via `superton watch add|remove|list`. - Watches the user watchlist plus AI transcript roots the importers already understand (~/.claude/projects, ~/.cursor, ~/.amp); changed sessions are re-imported with replace so appended turns land. - Semantics: new files ingest, changed files refresh (stale chunks dropped first), deleted files KEEP their drawers — the palace is memory, not a mirror. - `superton watch --once` runs one cron-friendly pass; `--interval` tunes the polling loop; `--no-transcripts` scopes to the watchlist. - 14 new tests: watchlist round trips, refresh-without-duplicates, deletion-keeps-drawers, state persistence across restarts, transcript append pickup, CLI passes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0145446GXbqRfpA4NF5Tn89E
therahul-yo
force-pushed
the
claude/watch-daemon
branch
from
July 6, 2026 17:47
4c17d33 to
442e9f2
Compare
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.
Implements REVAMP_PLAN Phase 1 (see #47): the palace now keeps itself current.
What's new
superton/watcher.py— polling scanner using mtime + size signatures, persisted to<home>/watch_state.jsonso restarts stay quiet. Watchlist lives in<home>/watchlist(one path per line,#comments).~/.claude/projects,~/.cursor,~/.amp) — every Claude Code / Cursor / Amp session lands in the palace as it happens.--no-transcriptsscopes to the watchlist only.replace— the importers skip already-indexed sources, so appended turns would otherwise never land. This is the detail that makes "always current" true for long-running sessions.Design notes
--onceis trivially cron-able and testable. Native events (watchfiles) can slot in later behind the samescan_once()seam, as canwatch installfor launchd/systemd.Validation
tests/test_watcher.py: watchlist round trips, refresh-without-duplicates, deletion-keeps-drawers, state persistence across restarts, transcript append pickup, CLI passes — 275 passing total, ruff + mypy clean.--onceingests → second--oncereports "palace already current".🤖 Generated with Claude Code
https://claude.ai/code/session_0145446GXbqRfpA4NF5Tn89E
Generated by Claude Code