Elffuss BraidHub

utopia-ia/elffuss-claw public

main · 6.5 KiBRenderedRawPermalink
1# ✳️ Elffuss Claw — an agentic OS that lives in your browser
2
3**Apps don't exist here: they get created.** Elffuss Claw is a chat-first agentic
4"operating system" — the chat *is* the interface, and when you need an app you just ask
5for it. The agent generates it as self-contained HTML and it appears instantly in the
6viewer. Nothing to install, no mandatory backend, and the model runs **inside your
7browser** (WebGPU) — everything stays on your machine.
8
9**[▶️ Live demo](https://claw.elffuss.com)** ·
10**[🧑‍💻 Elffuss Code (sibling project)](https://github.com/utopia-ia/elffuss-code)** ·
11**[🧬 Shared core](https://github.com/utopia-ia/elffuss)** ·
12**License: Apache-2.0**
13
14> Elffuss Claw now lives in the UtopiaIA organization on GitHub, at github.com/utopia-ia/elffuss-claw. It moved from github.com/KikoCis/elffuss-claw on 23 October 2026; the old address redirects.
15
16<p align="center">
17 <a href="https://claw.elffuss.com">
18 <img src="https://utopiaia.com/demos/elffuss/elffuss-claw-demo.gif" alt="Elffuss Claw — ask for a notes app and it's generated and rendered on the spot" width="820">
19 </a>
20</p>
21
22> In the demo above I ask for a notes app — the model (running **100% in the browser**)
23> generates it as HTML and it renders live in the viewer on the right. No install, no
24> server.
25
26---
27
28## Why it's different
29
30- **The chat is the whole interface.** No menus, no dashboards — you talk, things happen.
31- **Apps are generated on demand**, as self-contained HTML in a sandboxed iframe, and
32 saved locally so you can reopen them.
33- **The model runs on *your* machine** via WebGPU — it never reaches for an external API
34 on its own.
35- **It has memory, tasks and secrets** — persistent memory, scheduled reminders, and an
36 encrypted vault, all in your browser.
37- **Zero install, zero build.** Vanilla ES modules. Open the URL and you're in.
38
39## What it does today
40
41| Pillar | How |
42|---|---|
43| **Apps that get created** | The agent generates self-contained HTML → sandboxed iframe in the viewer. Saved to IndexedDB and reopened from the *Apps* tab. |
44| **Local by default** | Brains that run in YOUR browser: **LiteRT-LM** (Gemma-4 E2B) and **ONNX/WebGPU** (transformers.js + Qwen2.5-0.5B `q4`), plus a **Basic** rule-based mode (zero download). It **never** pulls an external model on its own. |
45| **External models (advanced)** | ⚙️ tab: connect **OpenAI**, **Anthropic (Claude)**, **local Ollama** — opt-in. Keys stay in your browser; calls go straight to the provider. |
46| **Message queue** | Queue several messages; they're processed in order and **persist in IndexedDB** — a refresh mid-answer loses none of them. |
47| **Memory + history** | Conversation history persists in IndexedDB (a refresh erases nothing; 🧹 = new conversation), and `memory.*` stores facts permanently — they enter the CONTEXT of every turn. |
48| **ACE-lite context** | Relevance-based history eviction (BM25-lite + IDF) with a token budget + a live "CONTEXT NOW" system snapshot + the browser's language. |
49| **Permissions** | Every scope (files, apps, vault, tasks, internet) asks the first time; revocable in the *Permissions* tab. |
50| **Your folders** | File System Access API (Chrome/Edge): authorize a folder and Elffuss lists/reads/writes inside it (**.xlsx read for real**, via SheetJS). |
51| **Data → charts** | "visualize sales.xlsx" → reads the Excel/CSV and generates a bar-chart app in the viewer (works even in Basic mode). |
52| **Folder automation** | "watch the *inbox* folder and drop processed files in *outbox*" → you drop a file, Elffuss picks it up, processes it (Excel→CSV; else copy) and leaves it in the other folder, pinging you in chat. |
53| **Vault** | Secrets encrypted with AES-256-GCM, key derived via PBKDF2 (310k iters) from your master password. Auto-locks after 5 min. Nothing leaves your machine. |
54| **Scheduled tasks** | "Remind me in 20 minutes…" → the prompt auto-fires in the future (while the tab is open). |
55| **Internet** | `web.fetch` with a direct fetch (CORS) and a `/proxy?url=` server fallback. `/proxy` is an open GET relay to public web pages: it cannot tell the app from any other client (there are no accounts, and anything the page sends a script can send too), so it is bounded instead: public `http`/`https` destinations on ports 80 and 443 only (never private, loopback or the server's own addresses), a size cap, a deadline, and per-client, global and concurrency limits. |
56
57## Run locally
58
59```bash
60python3 server/serve.py # → http://localhost:8642
61```
62
63Chrome/Edge recommended (WebGPU + File System Access). **Basic** mode works with no
64download; models are fetched from the CDN/HF the first time and cached afterwards.
65
66Try: *"make me a clock"*, *"authorize a folder"*, *"remind me in 1 minute to stretch"*,
67*"save the secret gmail: hunter2"*, *"open https://example.com"*.
68
69## Architecture
70
71```
72web/
73 index.html OS shell: chat (left) + viewer (right)
74 js/kernel.js boot, model switching, scheduler
75 js/agent.js agentic loop: model → tool-call JSON → result → model
76 js/permissions.js per-scope permissions (modal + localStorage)
77 js/tools/ fs · apps · vault · tasks · web ← the only things touching the world
78 js/providers/ rules (no model) · onnx (transformers.js) · litert (LiteRT-LM)
79server/serve.py dev server, and in production the /proxy backend (see the Internet row)
80```
81
82No framework, no build step. The agent talks to the tools with
83` ```tool {"tool":…,"args":…} ``` ` blocks — the same protocol across all providers.
84
85## Known limits / roadmap
86
87- Tasks only fire while the tab is open (future: Service Worker + Periodic Background Sync).
88- Reading the user's email needs OAuth (Gmail API) or an IMAP proxy — the browser can't
89 speak IMAP. First iteration: `web.fetch` + proxy.
90- Basic mode is deterministic (regex); true free-form language kicks in once a model loads.
91
92## License
93
94[Apache-2.0](LICENSE).
95
96## Gestión de contexto
97
98El empaquetador de contexto (BM25 con IDF endógena contra la pregunta viva, sin heurísticas) está medido: recuerdo de hechos **15,1 % → 65,3 %** al mismo gasto de tokens, y **recuperar bien bate a no comprimir** (F1 28,09 contra 22,56 del contexto completo, con el 8 % de los tokens).
99
100Tablas completas, ablaciones y referencias en el **[core compartido](https://github.com/utopia-ia/elffuss#cómo-se-mide-el-gestor-de-contexto)** · la historia con lo que salió mal en la **[bitácora](https://bitacora.utopiaia.com/posts/16-beaten-by-doing-nothing.html)**.