Add iMessage interface (imessage_bot.py) - #3
Merged
Conversation
A macOS alternative to telegram_bot.py for talking to Aria over iMessage. Reuses
agent_core, memory, skills, and the engine unchanged — only the transport differs.
- imessage_reader.py: poll ~/Library/Messages/chat.db read-only by ROWID; decode
attributedBody (text is NULL on modern macOS).
- imessage_send.py: reply via Messages.app AppleScript (osascript), text passed as
argv so it can't break/inject.
- imessage_bot.py: mirrors telegram_bot's contract — handle allowlist + setup mode,
quick_answer fast path, streamed progress notes, dangling-tool-call repair,
checkpointed threads ("imessage-<handle>"), and the proactivity engine wired with a
notify path that iMessages the user and appends to their thread.
- docs/imessage.md, .env.example IMESSAGE_ALLOWED_HANDLES, offline tests.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
✅ All contributors have signed the CLA. |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
Owner
|
Strong PR — reuses |
This was referenced Jun 15, 2026
ssethia2
approved these changes
Jun 15, 2026
ssethia2
added a commit
that referenced
this pull request
Jul 13, 2026
The personal-Aria core loop, deepened around the real failure modes: - commitment_events (append-only audit trail): created/completed/dropped/ rescheduled/snoozed/nudged/reopened, wired into every mutation. The substrate for slip patterns and honest recovery from mistakes. - reschedule_commitment: "push it to Friday" moves the date in place (history preserved) — no more drop+re-add; warns on push #3+. - snooze_commitment: "stop bugging me until next week" — chase actually honors it (snoozed items never even reach the chase LLM). - reopen_commitment: THE fix for a wrong completion — same id, history intact, never a re-added copy (prompt updated to use it). - Chase v2: skips snoozed, sees times_rescheduled per item, and is told to be frank (pick a real date or drop it) on serial pushes; nudges are logged to the audit trail. - analyze_commitments: names items rescheduled 3+ times ("pick a real date or let it go?") from the event log. - Schema migration idempotent; live DB verified (14 open intact). - tests: lifecycle events, reschedule/snooze/reopen roundtrips, slip counts, serial-slip findings, chase-skips-snoozed. 312 total. Assisted-by: Claude Opus 4.8 <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.
A macOS alternative to telegram_bot.py for talking to Aria over iMessage. Reuses agent_core, memory, skills, and the engine unchanged — only the transport differs.