Aegis Runtime
Local-first assistant runtime demo with personal context retrieval, screen awareness, permission checks, audit logging, and latency profiling.
Ready.
{{}}
from __future__ import annotations import json from pathlib import Path import uvicorn from fastapi import FastAPI from fastapi.responses import HTMLResponse from pydantic import BaseModel from runtime import AssistantRuntime DATA_DIR = Path("data") DATA_DIR.mkdir(exist_ok=True) runtime = AssistantRuntime(DATA_DIR / "aegis.db") app = FastAPI(title="Aegis Runtime") EXAMPLES = [ "What did I discuss with Priya about the launch?", "Summarize what is on my screen", "Open the Aegis runtime spec document", "Remind me to reply to Alex after my meeting", "Summarize my runtime architecture notes from yesterday", ] class AskRequest(BaseModel): message: str @app.get("/", response_class=HTMLResponse) def index() -> str: options = "".join(f"" for prompt in EXAMPLES) return f"""
Local-first assistant runtime demo with personal context retrieval, screen awareness, permission checks, audit logging, and latency profiling.
Ready.
{{}}