{"id":47810038,"url":"https://github.com/niteshbalusu11/alfred","last_synced_at":"2026-04-03T18:07:10.598Z","repository":{"id":338362091,"uuid":"1157564173","full_name":"niteshbalusu11/alfred","owner":"niteshbalusu11","description":"Batman's loyal butler","archived":false,"fork":false,"pushed_at":"2026-02-22T00:30:43.000Z","size":43863,"stargazers_count":1,"open_issues_count":16,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-05T04:37:10.394Z","etag":null,"topics":["ai","aws","bot","clawdbot","moltbot","openclaw","privacy","trusted-execution-environment"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/niteshbalusu11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-14T01:03:06.000Z","updated_at":"2026-02-21T22:11:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/niteshbalusu11/alfred","commit_stats":null,"previous_names":["niteshbalusu11/alfred"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/niteshbalusu11/alfred","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niteshbalusu11%2Falfred","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niteshbalusu11%2Falfred/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niteshbalusu11%2Falfred/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niteshbalusu11%2Falfred/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niteshbalusu11","download_url":"https://codeload.github.com/niteshbalusu11/alfred/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niteshbalusu11%2Falfred/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31368157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T17:53:18.093Z","status":"ssl_error","status_checked_at":"2026-04-03T17:53:17.617Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","aws","bot","clawdbot","moltbot","openclaw","privacy","trusted-execution-environment"],"created_at":"2026-04-03T18:07:07.061Z","updated_at":"2026-04-03T18:07:10.590Z","avatar_url":"https://github.com/niteshbalusu11.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alfred\n\n\u003e Batman's loyal butler.\n\nAlfred is a privacy-first AI assistant for iOS with a hosted Rust backend.\n\nThe product goal is proactive help over Google data (calendar + email) with strong privacy boundaries, not a generic chat app.\n\n## Active Migration: Automation v2 (Breaking)\n\nThe current execution epic is `#208`: client-defined periodic prompt automations that replace hardcoded proactive worker jobs.\n\nScope tracked in `#209` through `#214`:\n\n1. Automation rule/run schema and repository APIs.\n2. Automation CRUD API endpoints with encrypted prompt envelope input.\n3. Worker scheduler + generic `AUTOMATION_RUN` execution path.\n4. Enclave automation execution with encrypted notification artifact output.\n5. Encrypted APNs payload contract for automation notifications.\n6. iOS Notification Service Extension decrypt/render path.\n\nMigration rules:\n\n1. No feature flags.\n2. No backwards compatibility for legacy hardcoded proactive job behavior.\n3. No host plaintext prompt/output persistence or logging.\n\n## What Exists In Code Today\n\n### Backend (`backend/`)\n\n1. Clerk-authenticated API server (`axum`) with routes for:\n   1. Assistant: `/v1/assistant/attested-key`, `/v1/assistant/query`\n   2. Connectors: Google OAuth start/callback/list/revoke\n   3. Devices: APNs registration and test notification enqueue\n   4. Preferences, audit events, and privacy delete-all\n2. Encrypted assistant query flow:\n   1. Attested key challenge/response\n   2. Encrypted request/response envelopes\n   3. Encrypted session continuity state\n3. Enclave runtime orchestration for assistant and connector-sensitive operations.\n4. Worker pipeline with leased/idempotent jobs for:\n   1. Active v1 runtime includes meeting reminders, morning brief generation, and urgent email alerts.\n   2. These hardcoded paths are being replaced by Automation v2 generic scheduling/execution (`#208`).\n5. LLM-backed assistant routing/orchestration with deterministic fallback and safety validation.\n\n### Assistant Capabilities\n\nThe assistant supports these lanes in code:\n\n1. `calendar_lookup`\n2. `email_lookup`\n3. `mixed`\n4. `general_chat`\n5. `meetings_today`\n\nRouting is planner-driven (semantic plan + policy), with:\n\n1. Clarification flow for low-confidence tool requests\n2. English-first language policy\n3. Deterministic fallback when planner/model output is unavailable or invalid\n\n### iOS App (`alfred/`)\n\nCurrent tab shell and primary UX:\n\n1. `Home`: voice transcription + assistant conversation\n2. `Activity`: audit/event timeline\n3. `Connectors`: Google connect/disconnect flow\n\nAuthentication and API access are Clerk-based. The app uses encrypted assistant query APIs and renders structured assistant response parts (chat text + tool summaries).\n\nNote:\nBackend preferences and privacy delete-all APIs are implemented; current iOS navigation is focused on Home/Activity/Connectors.\n\n## Repository Map\n\n1. iOS app: `alfred`\n2. iOS API package: `alfred/Packages/AlfredAPIClient`\n3. Backend workspace: `backend`\n4. OpenAPI contract: `api/openapi.yaml`\n5. DB migrations: `db/migrations`\n6. Product context: `docs/product-context.md`\n7. Agent/contributor workflow: `AGENTS.md`, `agent/start.md`\n\n## Local Development\n\nRun from repo root:\n\n```bash\njust check-tools\njust check-infra-tools\ncp .env.example .env\njust infra-up\njust backend-migrate\n```\n\nStart services (recommended in separate terminals):\n\n```bash\njust enclave-runtime\njust api\njust worker\n```\n\nOptional combined dev mode (also starts `ngrok`):\n\n```bash\njust dev\n```\n\nStop infra:\n\n```bash\njust infra-stop\n```\n\nDestroy infra volumes:\n\n```bash\njust infra-down\n```\n\n## Build and Verification\n\n```bash\njust backend-check\njust backend-tests\njust backend-verify\njust ios-build\njust ios-test\n```\n\nBackend completion gate for backend-impacting changes:\n\n1. `just backend-fmt`\n2. `just backend-clippy`\n3. `just backend-tests`\n4. `just backend-build`\n\nDeep review gate:\n\n```bash\njust backend-deep-review\n```\n\n## Workflow and Source Of Truth\n\nExecution is issue-driven (`phase-1`, prioritize `P0` before `P1`) with `codex/` branches.\n\nPrimary references:\n\n1. `AGENTS.md`\n2. `agent/start.md`\n3. `docs/engineering-standards.md`\n4. `docs/phase1-master-todo.md`\n5. `docs/ui-spec.md`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniteshbalusu11%2Falfred","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniteshbalusu11%2Falfred","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniteshbalusu11%2Falfred/lists"}