CoolFace
Apppublic

KikoCis/elffuss-code

sourceHugging Faceapache-2.0updated 6d agoView on Hugging Face
0likes
App README

๐Ÿง‘โ€๐Ÿ’ป Elffuss Code โ€” a VS Code-style IDE with an AI agent, 100% in your browser

Open a local folder and a full web IDE unfolds around it โ€” real Monaco (the VS Code editor), a file tree, tabs โ€” with an AI agent that reads, searches and edits your project for real. The model runs on your GPU via WebGPU. Your code never leaves your machine.

โš ๏ธ Open it full-screen (direct link) โ€” the File System Access API (opening a local folder) is blocked inside the embedded iframe.

demo

In the demo a small model running entirely in the browser reads calc.py, finds a real bug and fixes it with a minimal edit โ€” genuine tool-calling, not autocomplete.

Why it's different

  • โ€”Your code stays local. The folder is opened via the File System Access API โ€” no upload, no account.
  • โ€”The model runs on your GPU (WebGPU, Gemma-4 E4B via LiteRT-LM; ONNX/transformers.js as fallback).
  • โ€”Real tool-calling: code.tree, code.read, code.search, code.edit, code.write โ€” you watch every call.
  • โ€”Edits, not rewrites: the agent patches the lines that change, even in files of several megabytes.
  • โ€”Long tool results don't break the conversation: they are compacted to fit the model's context instead.
  • โ€”Context retrieval that works beyond English โ€” accents and Cyrillic included (measurements below).
  • โ€”Real editor: Monaco, file tree, tabs, Ctrl+S, and git branch/last commit parsed straight from .git.
  • โ€”Zero install, zero build. Vanilla ES modules.
  • โ€”Your language: the whole IDE follows your browser's language (English, Spanish and more).
  • โ€”External providers (OpenAI, Anthropic, Ollama) are opt-in; keys stay in your browser.
  • โ€”Optional local bridge for real node / npm / python execution โ€” downloaded from the main site.

How it's built

Write-ups on the full stack โ€” model, runtime, agent harness, editor and filesystem access, all in one tab: <https://bitacora.utopiaia.com/#elffuss>

Context management โ€” how it's measured

The context packer isn't chosen by intuition. Numbers measured at the same token budget:

Real agent sessions (25 sessions, 174 probes, fact recall, no LLM judge):

recall
tail truncation7.0 %
previous version15.1 %
current65.3 % ยฑ 8.5

Long-term memory (200 questions, F1 from the benchmark's own repo, a real model answering, ~8 % of the context):

F1
the FULL context, uncompressed22.56
tail truncation6.62
hand-written heuristics6.07
BM25 without IDF20.34
BM2523.59
embeddings23.95
rank fusion (BM25 + embeddings)28.09

Retrieving well beats having everything: 28.09 vs 22.56 using 8 % of the tokens. Irrelevant context isn't neutral ballast โ€” it distracts.

Two more things that were measured, not assumed: turning the heuristics on cost โˆ’3.02 F1, and removing IDF costs โˆ’3.25. Semantic search doesn't replace lexical search, it covers its blind spot: with no vocabulary overlap between question and answer, embeddings win (24.28 vs 18.60); with overlap, BM25 wins (29.33 vs 23.58) โ€” and fusion keeps both.

References: BM25 (Robertson et al., TREC-3 1994) ยท IDF (Spรคrck Jones, 1972) ยท RRF (Cormack et al., SIGIR 2009) ยท MMR (Carbonell & Goldstein, SIGIR 1998) ยท attention sinks (Xiao et al., ICLR 2024) ยท valid time (Snodgrass & Ahn, SIGMOD 1985).

The full story, including what went wrong: <https://bitacora.utopiaia.com/posts/16-beaten-by-doing-nothing.html>

The Elffuss family

  • โ€”๐ŸŒ Full app: <https://code.elffuss.utopiaia.com>
  • โ€”๐Ÿ’ป Source (Apache-2.0): <https://github.com/KikoCis/elffuss-code>
  • โ€”โœณ๏ธ Elffuss Claw โ€” an agentic OS in your browser: <https://claw.elffuss.utopiaia.com> ยท Space
  • โ€”๐Ÿงฌ Shared core: <https://github.com/KikoCis/elffuss>
  • โ€”๐Ÿ—ฃ๏ธ Elffuss Translator โ€” speech-to-speech translation on your device: <https://translator.elffuss.utopiaia.com>
  • โ€”๐Ÿ“ Elffuss Copilot โ€” live call notes that never leave your browser: <https://copilot.elffuss.utopiaia.com>
  • โ€”๐Ÿ“ฐ All apps and the blog: <https://elffuss.utopiaia.com>