Skip to content
TQSY114514Public

About

High-conviction AI engineering workbench. Local-first, zero slop. Prefix-cache-safe routing, binary Plan/Act gates, and invisible AutoMemory.

Topics

Resources

Contributing

Security policy

Stars

6 stars

Watchers

1 watching

Forks

Repository files navigation

Aether — System Operator. Full-body character art; optional sidebar Desktop Pet.

Aether

High-conviction AI engineering. Local-first, zero slop.

A post-digital minimalist AI engineering workbench connecting empirical model evaluation, project workspace context, and controlled agent execution.

Prefix-cache-safe dual-layer routing, Plan/Act/YOLO execution gates with Soft-CWD & instant pre-write rollbacks, and zero-disturbance invisible memory. Local-first storage, pluggable providers, and strict anti-AI-slop design.

release downloads npm downloads npm ci license platform

English · 简体中文 · 日本語


Overview

Aether is a local-first desktop AI development workbench built with Electron, React/TypeScript, and SQLite. Its central idea is to connect the critical stages of AI-assisted engineering: evaluating models on real tasks, carrying project context across sessions, and executing work through a reviewable, capability-gated agent workflow.

It is built around five complementary capabilities:

  1. Task-based model evaluation (Arena 2.0): Compare multiple models on identical coding tasks with concurrent streaming, empirical ELO leaderboards, and 1-click winner patch disk apply (arena:apply-patch).
  2. Soft-CWD Workbench, Free File Jumping & Live Composer: Terminal-style Soft-CWD starting context (no folder-jail lockouts, free cross-directory file tree & message path jumping), priority-sorted chat sidebar (needsInput → running → attention → pinned), CodeMirror 6 inline ghost text & Tab completion, live streaming subagent/plan views, and optional sidebar desktop companion (Aether-chan, ux.mascotCompanion) — organized cleanly across Chat, Arena, and Settings.
  3. Prefix-Cache-Safe Two-Layer Tool Routing: 10 fixed top-level schemas (read_file, edit_file, write_file, grep_search, glob_files, run_command, ask_user, session_plan, dispatch_subagent, call_extended_tool) that eliminate stage-switch prompt cache misses (~100% prefix cache reuse), backed by specialized subagent pools and secondary gateway calls (call_extended_tool).
  4. Plan / Act / YOLO Execution Gate, Soft-CWD & Pre-Write Snapshots: Clean three-mode control. Plan enforces read-only exploration and structured plans; Act auto-executes normal reads/writes/commands across workspace and normal user directories (Soft-CWD) backed by pre-write Git-tree/incremental snapshots, inline red/green Diff cards, and 1-click revert (prompting only on sensitive credential files .env*, *.pem, *.key and destructive shell commands); YOLO skips confirmation prompts altogether for trusted autonomous runs while keeping critical system-wipe & pre-push guards.
  5. AutoMemory Zero-Disturbance Invisibility: SQLite WAL + FTS5 < 2ms zero-roundtrip prefetch. Unobtrusive [Memory · X hits] capsule in assistant headers, explainable Why-Injected popovers with 1-click AGENTS.md pinning (symlink traversal safe), and inline suggestions to distill recurring workflows into SKILL.md.
Aether — Evidence-driven AI Development Workbench: Arena 2.0, Plan/Act gate, pre-write rollback, AutoMemory

Aether is local-first: sessions, memories, evaluation data, and encrypted provider credentials are stored in the local SQLite database. When you use a hosted model provider, prompts, code, or context sent to that provider are still subject to its data-handling policies.


Getting Started

Recommended Edition: Aether's primary engineering focus and full feature set (side-by-side visual Arena, interactive Diff approval cards, Knowledge Graph visualization, and settings) live in the Windows Desktop application. For the complete experience, we strongly recommend downloading the Windows Desktop edition.

1. Windows Desktop Installation (Primary Edition · Recommended)

Download the latest release from GitHub Releases:

  • aetherai-setup-x.y.z.exe: Standard installer (includes desktop shortcuts and auto-update support; recommended for most users).
  • aetherai-x.y.z.exe: Portable single-file executable (zero installation).

Note on Windows SmartScreen: Aether is maintained by an independent developer without a commercial code-signing certificate. If Windows Defender displays "Windows protected your PC" on first launch, click More info → Run anyway.

2. Terminal TUI, Headless CLI & SDK (Companion Automation · Node.js ≥ 22)

Aether distributes a clean headless runtime, Ink v5 terminal TUI, and Electron-free SDK via npm (aetherai):

# Install CLI and TUI globally
npm install -g aetherai

# Launch interactive terminal TUI workbench (with history, diff previews & rollbacks)
aether tui

# Resume an existing conversation in the terminal
aether tui --session 42

# Execute a one-shot task from the command line
aether "run test suite and fix failing unit tests" --model deepseek

# Evaluate a prompt across models
aether eval "write a binary search in rust" --models claude-3-7-sonnet,deepseek-reasoner

# Start headless JSONL RPC server for external scripts and subagents
aether --mode rpc

3. Configuring LLM Providers

On first launch, open Settings → Providers in the sidebar to configure one or more API endpoints. Aether supports native OpenAI, Anthropic, and Gemini wire formats:

Provider Option Wire Format Base URL Example Typical Use Case
DeepSeek API OpenAI-compatible https://api.deepseek.com/v1 Low-cost, reliable daily coding and debugging
OpenRouter OpenAI-compatible https://openrouter.ai/api/v1 Access Claude, GPT, Gemini, and Qwen with a single key; ideal for Arena comparisons
Ollama / LM Studio OpenAI-compatible http://127.0.0.1:11434/v1 100% offline local GPU inference with zero API cost

4. Building from Source

git clone https://github.com/TQSY114514/Aether.git
cd Aether

# Windows: installs dependencies, builds frontend, and launches Electron
start.bat

# macOS / Linux: defaults to Terminal TUI; pass --desktop for Electron GUI
./start.sh
./start.sh --desktop

Core Subsystems

1. AutoMemory · Structured Long-Term Memory & Project Brain

Instead of storing memories in a flat YAML/JSON file that requires full-file rewrites or manual memory_search tool calls, Aether implements a two-pass Prefetch + Async Sync pipeline backed by SQLite WAL, FTS5 full-text indexing, and a relational Knowledge Graph (kg_nodes / kg_edges):

  • Zero-Roundtrip Prefetch (< 2ms): Before sending a turn to the LLM, Aether queries the local FTS5 index and entity graph in memory, injecting relevant facts directly into the system prompt without spending an extra LLM tool-call roundtrip.
  • Debounced Background Sync: After each turn completes, a background pass extracts new entities, technical decisions, and preferences, deduplicating entries via Jaccard similarity before persisting to SQLite.

Memory Types & Scoping

Type (type) Scope & Injection Policy Examples
project (Project Brain) Scoped to the active workspace directory; always pinned at the top of context Repository architecture rules, build/test commands, module boundaries
preference Global scope; injected on keyword/topic match Code formatting rules, verbosity preferences, preferred libraries
fact Global or workspace-scoped; retrieved via FTS5 keyword matching Port numbers, environment conventions, verified domain rules
context Cross-session summary index Milestones from prior sessions, compacted long-conversation conclusions
review Conflict resolution queue Newly extracted statements that contradict existing memories

Isolation & Safety Controls

  1. Automatic AGENTS.md Discovery: When pointed at a project directory, Aether automatically detects and injects root AGENTS.md or AETHER.md files.
  2. Zero-Disturbance Invisibility & Transparent Provenance: Memory management is completely invisible and zero-distraction. An unobtrusive [Memory · X hits] capsule appears in the assistant response header. Clicking it opens a lightweight popover displaying the exact injected memories and match reasons (Why Injected), with quick [Remove] and [Pin to AGENTS.md] actions (protected by canonical path realpath validation). When repetitive patterns are detected, an inline suggestion bar allows instant distillation into a SKILL.md.
  3. Fail-Closed Workspace Isolation (getMemoriesScoped): Project memories recorded in Repository A are strictly isolated from Repository B.
  4. Untrusted Memory Sandboxing (<untrusted_memory>): Memories originating from web fetches or external tools are tagged with origin='external', capped in count, and wrapped in <untrusted_memory> tags so the model treats them as data rather than executable instructions.
  5. Memory-to-Skill Distillation (memorySkillBridge): Clusters recurring project memories into reusable draft SKILL.md templates.

2. Soft-CWD Workbench, Ghost Composer & Decluttered UI

Aether adopts a terminal-style Soft-CWD model (no heavy workspace lock-ins) while keeping project awareness fast and distraction-free:

  • 3-Item Primary Navigation: Streamlined into Chat (Main conversation + live streaming <SubagentDeck> & <AgentPlanTrace> + inline Diff & 1-click Rollback), Arena (empirical multi-model comparison), and Settings (unified Providers, Feature Flags & MCP).
  • Soft-CWD & Free Cross-Directory File Jumping (CwdNavigator.tsx / FileTree.tsx): Pick or change your starting cwd anytime (favorites, Explorer reveal, cd copy) while freely browsing parent/arbitrary user directories and clicking file paths in chat or tool cards to jump straight to them.
  • Priority-Sorted Virtualized Sidebar & Live Status: Sessions surface automatically in priority order — needsInput (pending question/approval) → running (active streams) → attention (errors/unread completions) → pinned → date groups — backed by @tanstack/react-virtual and full-text FTS5 global search (Ctrl+K).
  • CodeMirror 6 Inline Ghost Text & Tab Completion: Native Decoration.widget ghost hints with IME composition safety, discrete slash argument chaining (/mode, /effort, /role), @/#/! references, and opt-in idle next-prompt prediction (composer.nextPromptPrediction).
  • Unified 4-Control Composer HUD & Optional Desktop Companion: Per-turn controls sit cleanly below the composer ([Plan / Act / YOLO Mode], [Model Selector], [EffortControl], [Session Tokens & Rollback]), with an optional Aether-chan sidebar desktop companion (ux.mascotCompanion in Settings).

3. Arena 2.0 · Empirical Multi-Model Evaluation & Winner Patch Apply

The built-in Arena allows side-by-side evaluation on your actual workload, closing the loop from blind comparison to production disk apply:

Feature Mechanism
Concurrent Blind Streaming Dispatch a single prompt to 2–4 models (or compare different temperatures / system prompts on the same model) with real-time side-by-side streaming.
Intent-Categorized ELO Prompts are classified by intent (Coding, Reasoning, Translation). Votes update separate local ELO leaderboards per category.
Objective & Agent Arena Suites Built-in automated evaluation suites (objectiveArena.js / agentArena.js) covering algorithmic reasoning, system design, and debugging tasks to systematically score latency, token costs, and accuracy.
Winner Patch Disk Apply After evaluating candidates in blind competition, click once to apply the winning model's diff cleanly into your local repository (arena:apply-patch).
Report Export Export side-by-side comparison results as structured Markdown reports or summary cards.

4. Plan / Act / YOLO Execution Gate, Soft-CWD & Pre-Write Snapshots

Aether replaces complex permission matrices with a decisive Plan / Act / YOLO execution model, Soft-CWD (CWD as starting context rather than a folder jail), and instant pre-write rollbacks:

Mode Enforcement Behavior Typical Scenario
Plan (Read-Only Planning) Blocks all file modifications and state-mutating shell commands. Allows codebase reading, grep/glob search, read-only Git exploration, and outputs structured session_plan milestones. Architecture review, task scoping, dependency discovery
Act (Default Action Mode) Automatically executes reads, edits, writes, and test commands across the workspace and normal user directories (Soft-CWD) without modal interruptions. Captures pre-write snapshots (git stash create or .aether/snapshots/<turnId>), renders inline red/green Diff cards, and provides 1-click [Revert]. Active feature development, bug fixes, refactoring
YOLO (Full Autonomous Opt-In) Bypasses high-risk confirmation popups for maximum velocity while preserving critical system-wipe protection, sensitive system directory guards, and pre-push credential checks. Trusted local automation and rapid prototyping

High-Risk Interception Gates (Act Mode)

Act mode flows uninterrupted across normal user paths, halting to prompt for explicit confirmation only on genuinely high-risk operations:

  1. Sensitive Credentials: Modifying credential files (.env*, *.pem, *.key).
  2. Destructive Shell Commands: Executing dangerous commands (e.g. rm -rf, git reset --hard, git push --force, or unverified script pipe execution).
flowchart LR
  Input["User Input"] --> Router["Prefix-Cache-Safe Router<br/>(10 Fixed Schemas, ~100% Cache Hit)"]
  Router --> ModeCheck{"Plan / Act / YOLO Gate"}
  ModeCheck -- "Plan Mode" --> ReadOnly["Read & Search Tools<br/>+ Structured session_plan"]
  ModeCheck -- "Act Mode" --> RiskCheck{"High-Risk Checks<br/>(Secrets / Destructive Shell)"}
  ModeCheck -- "YOLO Mode" --> Snap["Pre-Write Snapshot<br/>(Git Tree / Incremental)"]
  RiskCheck -- "High Risk Detected" --> Confirm["Manual Confirmation Card"]
  RiskCheck -- "Safe / Soft-CWD" --> Snap
  Confirm -- "Approved" --> Snap
  Snap --> Exec["Execution Backend<br/>(Local / Docker / SSH)"]
  Exec --> InlineDiff["Inline Diff Preview<br/>+ 1-Click [Revert] Button"]
  InlineDiff --> Sanitize["toolResultMiddleware<br/>(Secret Redaction + Disk Spill)"]
  Sanitize --> Loop["Next Turn Loop"]
Loading

5. Adaptive Thinking Depth, Hashline Edits & Runtime Resilience

  • 5-Tier Adaptive Thinking Depth (Thinking Budget): Per-turn control over reasoning budgets (minimal 1k, low 2k, medium 8k, high 16k, max 32k tokens), natively supporting token-budget models (Claude 3.7 Sonnet, DeepSeek R1, Qwen-Reasoner) and boolean-toggle models (enable_thinking).
  • Hashline Hash-Anchored Code Editing: Incorporates content-hash line anchoring into patchEngine.js, preventing line drift and merge collisions across concurrently edited files.
  • Prefix-Cache-Safe Two-Layer Tool Router: Instead of dynamically mutating tool schemas across phases (which invalidates API prompt prefix caches on every turn), Aether pins 10 fixed top-level tool schemas to guarantee near 100% prefix cache reuse. Specialized roles (Explorer, Implementer, Verifier) receive targeted subagent pools via dispatch_subagent, and auxiliary tools are dispatched through call_extended_tool with a compact catalog index.
  • Orphan Tool-Call Self-Healing: Automatically sanitizes unclosed tool_calls on session reload so a previously interrupted tool execution never poisons subsequent turns with HTTP 400 errors.
  • Live Cost & Iteration Circuit Breaker: The status bar displays current iteration count, estimated turn tokens, cumulative USD cost, and stops execution automatically if a user-defined budget cap is reached.

6. Extensibility: Skills, MCP, and Execution Backends

  • Skills (SKILL.md): Import or author modular skills with declarative permissions: frontmatter (filesystem, network, shell) enforced by the permission engine.
  • MCP (Model Context Protocol): Connect external stdio MCP servers with automatic server__tool namespacing to prevent tool name collisions. All MCP outputs pass through toolResultMiddleware.
  • Pluggable Execution Backends: Switch command execution between Local Host (local), Docker Container Sandbox (docker), and Remote SSH (ssh).

7. Native Multimodal Support & SQLite Attachment Persistence

Aether provides first-class support for multimodal workflows without external cloud storage dependencies:

  • Instant Paste & Drag-and-Drop: Paste images directly from the clipboard or drag image files into the prompt composer.
  • Local SQLite Persistence: Attachments are stored within the SQLite message.attachment column with automatic startup schema migration (addCol).
  • Rich In-Bubble Previews: Single or multiple image attachments render directly inside user message bubbles with responsive thumbnails and aspect-ratio preservation.
  • 100% Session Fidelity: Attachments remain fully accessible across session switches, forked conversations (forkSession), and application restarts.

Acknowledgements

Aether stands on the shoulders of these open-source projects and engineering pioneers (traced to the codebase modules they inspired):

Agent Runtime & Coding Harnesses

  • Claude Code (Anthropic) — Cascading AGENTS.md instruction discovery (projectInstructions.js), post-compaction file rehydration (compaction.js), verification loop (debugAgent.js), 10-point lifecycle hooks (hooks.js), progressive permission ladder (trustEngine.js), Ctrl+T task checklist, ask_user prompts, and inline Diff previews (toolImpact.js).
  • OpenAI Codex CLI — Evidence-based test/diff verification (toolLoop.js), cascading project instruction loading, compact TUI elapsed timers, single-key permission shortcuts (y/s/a/n), and checkpoint rewind UX.
  • pi (pi-mono) (Mario Zechner) — AgentMessage UI-to-wire decoupling, unified event-stream telemetry (agentEvents.js), mid-execution steering (steering.js), and large-output disk spill to $TMPDIR with tail preview (toolResultMiddleware.js).
  • OpenCode — Terminal TUI keyboard state machine & timed leader keys (keyHandlers.js), windowed DialogSelect lists, compile-time prompt cache policy (cachePolicy.js), and context budget manager (contextBudget.js).
  • oh-my-pi (omp) & robomp (Can Bölük / Stencil Labs, omp.sh) — Terminal AI coding harness, automated triage & PR workflows (robomp), omp-edit hash-anchored edits (patchEngine.js Hashline Edits) preventing concurrent clobbering and line drift, tools.commands / prefix-cache schema trimming & advisor turn reviewer (toolLoop.js), pi-mnemopi-inspired memory ergonomics, symbol-aware LSP/DAP code intelligence, and isolated multi-worktree subagent orchestration.
  • Aider — <<<<<<< SEARCH ... >>>>>>> REPLACE fault-tolerant patch parser (patchEngine.js), Git workflow integration, and compaction handoff framing.
  • ZCode (Z.ai) — 8-tier cascading fuzzy edit matchers (editMatchers.js), read-before-write file mtime freshness guard (sessionContext.js), background task branchGeneration isolation & notification coalescing (backgroundTasks.js), built-in agent & workflow profiles (.aether/agents, .aether/workflows), and GitHub URL / owner/repo skill installer (skills.js).
  • Gemini CLI & aichat — Token budget estimation (contextBudget.js), approval mode cycling, and 50ms event-stream debounce coalescing (runSession.js).
  • Cline, Roo Code & Continue — Context output folding/pruning (compaction.js), visible sub-step task tracking, and declarative configuration-as-code schema (.aether/config.json).
  • Cursor & Trae — Native clipboard image paste (Ctrl+V), multi-image drag-and-drop ingestion, and responsive in-bubble media preview ergonomics (MessageBubble.tsx).
  • Crush (Charmbracelet) — Out-of-the-box LSP semantic radar (lsp_definition, lsp_references, lsp_diagnostics with ripgrep/regex fallback in registry.js), zero-dependency in-memory fastSyntaxCheck post-write syntax guard, structured process crash signal extraction (processTap.js), and low-noise terminal output ergonomics.
  • Search (driceroland/Search) — Multi-granularity local repository search & context-aware code retrieval ergonomics (registry.js, repoMap.js).
  • Warp Agent CLI — Declarative task-level model routing rules (routingRules in projectConfig.js, chat-send.handler.js) and user-defined custom regex secret redaction (redactPatterns in toolResultMiddleware.js).

Context, Memory & Safety Mechanisms

  • OpenClaw — Context compaction planning (compaction.js), malformed tool-call auto-repair (toolCallRepair.js), read-only tool caching (toolCache.js), semantic loop hash detection (toolResultHash.js), and secret-redacting tool result middleware (toolResultMiddleware.js).
  • Hermes Agent — Iteration budget control & graceful wrap-up (iterationBudget.js), SQLite + FTS5 long-term memory (autoMemory.js), entity-relationship Knowledge Graph (knowledgeGraph.js), trajectory compression (trajectory.js), and long-term skill acquisition (habitLearner.js).
  • Wish (WindustH) — Zero-token MCP/Skill CLI bridge architecture for prompt cache protection, Windows Win32 Job Object kernel process tree lifecycle governance, and fetch-based resilient stream state machine.
  • DeepSeek Harness (DSH) — Loopback binding & HTTP Host header validation lessons (QVD-2026-57410 defense) and badge row visual conventions.
  • Open Math Harness (SAIR Foundation) — Microkernel architectural invariant guards & headless isolation (architecture.rs principles inspiring check-architecture.js static gates and Electron-free database.js decoupling).

Evaluation, Code Review & Multi-Agent Orchestration

  • Qwen Code & Qwen-Coder (Alibaba Cloud) — Agent Arena multi-model competitive execution & Git worktree isolation (/arena inspiring shadowGit.js and arena:apply-patch), qwencoder-eval benchmarking methodology, and thinking parameter adaptation (enable_thinking in reasoning.js).
  • LMSYS Chatbot Arena & SWE-bench — Built-in local model arena (arena.handler.js), pairwise blind ELO ranking system, and coding capability evaluation harnesses.
  • Paperclip — Agent control-plane governance (AgentSettings.tsx), role-isolated multi-agent verification (Hunter != Verifier in securityAudit.js, agentRoles.js), and autonomous plan step progression (planning.js).
  • OpenHands (All-Hands AI) — Multi-backend execution abstractions (backend.js, dockerBackend.js, sshBackend.js) and persistent subagent sandbox workflows.
  • Jules (Google Labs), Grok Build, Amp & Devin Desktop (Windsurf) — Asynchronous background coding agents, specialized sub-agent role profiles (agentRoles.js), background task execution state machine (backgroundTasks.js), and run timeline drawer concepts.
  • Kiro — Adaptive reasoning level controls (reasoning.js / EffortControl.tsx) and inline subagent execution visualization (SubagentDeck.tsx).
  • DS4 (Salvatore Sanfilippo) & Evolver — Pre-execution hierarchical task decomposition (planning.js) and Genome Evolution Protocol (GEP) strategy reflection.
  • CodeRabbit, Sourcery & Greptile — Automated PR-level line-by-line review, deserialization defensive guards (normalizeLoadedMessages), AST-aware unsafe API interception (.coderabbit.yaml), real-time code quality & refactoring advice, and repository-wide architectural semantic graph regression defense.
  • Amazon Q Developer, Kilo Code & GitHub CodeQL — Automated PR cross-session data integrity & runtime edge-case verification, deep semantic code analysis, and continuous SAST vulnerability scanning.

Core Infrastructure & UI Ecosystem


Contributing & License

About

High-conviction AI engineering workbench. Local-first, zero slop. Prefix-cache-safe routing, binary Plan/Act gates, and invisible AutoMemory.

Topics

Resources

Contributing

Security policy

Stars

6 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages