Repository navigation
feat(ambient): MVP ambient daemon — git+terminal sources, rule-based triggers (#743) - #917
Merged
AmitoVrito merged 2 commits intoAug 16, 2026
Conversation
…triggers, Windows toast (#743) Scopes issue #743 down to a shippable slice: one daemon polling git status and PowerShell history, a rule table for risky commands against a dirty repo, Windows Toast notifications via plyer, an audit trail, and a privacy opt-out file. Editor/browser/screen sources, the ML classifier, macOS/Linux notifiers, and the privacy dashboard UI are deferred as follow-ups. Co-Authored-By: Claude Sonnet 5 <[email protected]>
…atting Satisfies the async-blocking gate (open() in async poll() must be offloaded via asyncio.to_thread) and ruff format --check.
Abhay-Mmmm
marked this pull request as ready for review
August 13, 2026 14:07
AmitoVrito
added a commit
that referenced
this pull request
Aug 16, 2026
Background daemon watching a git repo + terminal for risky commands, firing Windows toasts. Includes review fixes: offload toast/audit/status IO off the event loop, pid-liveness in stop()/status(), secret redaction in the audit log, and a shell-history disclosure notice. Closes #917. Part of #743. # Conflicts: # src/synapsekit/cli/main.py
Collaborator
|
Merged into Applied a few review fixes on the way in (all with regression tests):
Closes the MVP slice of #743; the deferred sources/notifiers/ML-classifier remain tracked there. Shipped in the v2.1 |
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
Scopes down issue #743 ("v2.1: Ambient Agent — system daemon that proactively offers help based on observed activity") to a shippable MVP that proves the core mechanism end-to-end: a background daemon that watches a git repo for dirty state and a terminal for risky commands, and fires a Windows notification when both line up.
synapsekit.ambientpackage:AmbientDaemonmirroringMeshDaemon's start/stop/status lifecycle (signal handling, PID-based cross-process stop)git(pollsgit status --porcelain --branch),terminal(tails PSReadLine history, best-effort — after-the-fact, not true pre-exec)git reset --hard/ force-push-or-clean, gated on the repo being dirtyplyer(new optional extra:pip install -e ".[ambient]")AuditLog(jsonl backend), privacy opt-out file (~/.synapsekit/ambient.ignore)synapsekit ambient start|stop|status|logExplicitly out of scope (follow-ups, not oversights)
The full issue asks for 5 source plugins, an ML intent classifier + labeled false-positive-rate test set, 3-OS notification adapters, systemd/launchd units, and a privacy dashboard UI — a multi-week epic. This PR deliberately ships only the slice needed to demonstrate the issue's canonical example. Deferred:
editor,browser,screensource plugins$PROFILEhook)Test plan
pytest tests/ambient tests/cli/test_ambient.py -q— 33 passedpytest tests/plugins tests/cli/test_mesh.py -q— no regressionssynapsekit ambient --help/start --help— CLI wiring verifiedpip install -e ".[ambient]", runsynapsekit ambient startin a dirty repo, run a risky command in the same PowerShell session, confirm a real toast fires (needs an interactive Windows session — not run in this sandbox)🤖 Generated with Claude Code