Skip to content

algospider/Xed-Editor

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4,614 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Xed-Editor Icon

Xed-Editor

An AI-powered code editor for Android
Cursor / Windsurf β€” but open source and runs on your phone.

Android CI Downloads Discord Telegram License


Overview

Xed-Editor is a full-featured code editor for Android that brings desktop-class development to your phone. Built on a modern Kotlin + Jetpack Compose stack, it packs in a proper terminal, language server support, and a multi-agent AI system β€” all running locally with zero telemetry.

Forked from Rohit Kushvaha's original work, actively maintained by algospider (Mohan Sharma).


Features

πŸ€– AI Agents

  • Native vibe-coding agent β€” multi-pipeline architecture (GenerationHandler, transformer chain, 30+ tools, security hooks, context memory)
  • Multi-provider β€” OpenAI-compatible APIs, Google AI, Claude, Gemini CLI, OpenCode, Codex CLI, Antigravity
  • MCP bridge β€” external agents can hook into the same editor tooling via the Model Context Protocol
  • On-device β€” no data leaves your phone unless you configure otherwise

πŸ–₯️ Terminal

  • Full Termux-based terminal with proot/Ubuntu chroot support
  • Session management, extra keys, customizable keybinds
  • Working directory integration with the editor

πŸ“ Code Intelligence (LSP)

  • Diagnostics, completions, go-to-definition, hover documentation
  • Languages: Python, TypeScript/JavaScript, HTML, CSS, JSON, XML, Markdown, Bash
  • Dynamic file-type registration and extensible server management

✏️ Editor (SoraX Engine)

  • Syntax highlighting, minimap, multi-cursor editing, code folding, bracket matching
  • Drag-and-drop split panes, smart toolbar, full-screen mode
  • Custom fonts for editor, terminal, and UI

πŸ” Search

  • Index-based code search via Room DB (persistent, fast)
  • Find/replace across files, command palette
  • Git status and file information in properties panel

🎨 Customization

  • Material 3 theming with dynamic colors
  • Custom fonts, icon packs, keybinds, auto-closing brackets
  • Plugin system with extension repository and detail screens

πŸ”’ Privacy

  • Zero telemetry β€” no Firebase, no analytics, no tracking
  • Your code stays on your device. No phone-home.

Tech Stack

Layer Technology
Language Kotlin 2.3.0
UI Jetpack Compose + Material 3
Editor Engine SoraX (TextMate grammars, Tree-sitter, Monarch)
Build AGP 8.13.1, Gradle 8.x, KSP
Networking Ktor, OkHttp (with SSE)
Persistence Room, DataStore Preferences
AI/LLM OpenAI-compatible APIs, Gemini, Claude, Anthropic
Protocol Model Context Protocol (MCP) Kotlin SDK
Terminal Termux (emulator + view)
Git JGit
Min SDK 26 (Android 8.0)

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3

Getting Started

  1. Download the latest APK (requires Android 8.0+)
  2. Open the AI sheet from the toolbar
  3. Add an API key for your preferred AI provider
  4. Start coding β€” just type what you want done

Nightly debug builds are available via GitHub Actions. Grab them if you're feeling adventurous.


Project Structure

Xed-Editor/
β”œβ”€β”€ app/                          # Main application module
β”œβ”€β”€ core/
β”‚   β”œβ”€β”€ main/                     # Core app logic
β”‚   β”œβ”€β”€ ai/                       # AI integration layer
β”‚   β”œβ”€β”€ vibe-coding/              # Vibe-coding agent system
β”‚   β”‚   β”œβ”€β”€ ai-core/              # Core AI abstractions
β”‚   β”‚   β”œβ”€β”€ ai-models/            # LLM model definitions
β”‚   β”‚   β”œβ”€β”€ ai-providers/         # Provider implementations
β”‚   β”‚   β”œβ”€β”€ ai-service/           # AI service orchestration
β”‚   β”‚   β”œβ”€β”€ ai-streaming/         # Streaming response handling
β”‚   β”‚   β”œβ”€β”€ ai-integration/       # Integration glue
β”‚   β”‚   β”œβ”€β”€ ai-mcp-client/        # MCP client bridge
β”‚   β”‚   β”œβ”€β”€ ai-persistence/       # AI session & context storage
β”‚   β”‚   β”œβ”€β”€ agent-runtime/        # Tool execution engine
β”‚   β”‚   └── agent-tools-search/   # Code search tooling
β”‚   β”œβ”€β”€ components/               # Shared UI components
β”‚   β”œβ”€β”€ resources/                # Resources & theming
β”‚   β”œβ”€β”€ extension/                # Plugin/extension system
β”‚   β”œβ”€β”€ terminal-emulator/        # Terminal emulation
β”‚   β”œβ”€β”€ terminal-view/            # Terminal UI
β”‚   └── termux-shared/            # Termux integration
β”œβ”€β”€ soraX/                        # SoraX editor engine (submodule)
β”œβ”€β”€ plugin-sdk/                   # Plugin development SDK
β”œβ”€β”€ baselineprofile/              # Baseline profile module
β”œβ”€β”€ benchmark/                    # Benchmarking module
β”œβ”€β”€ docs/                         # Documentation
└── scripts/                      # Utility scripts

Release Workflow

Releases are triggered manually from GitHub Actions (Android Release CI workflow):

  1. Go to Actions β†’ Android Release CI β†’ Run workflow
  2. Enter the version name (or leave blank to use version.properties)
  3. Optionally add changelog notes β€” defaults to CHANGELOG.md
  4. The workflow builds a signed APK, creates a GitHub release, and auto-bumps versionCode

Local version bumping

./scripts/bump-version.sh patch     # 3.2.9 β†’ 3.2.10
./scripts/bump-version.sh minor     # 3.2.9 β†’ 3.3.0
./scripts/bump-version.sh major     # 3.2.9 β†’ 4.0.0
./scripts/bump-version.sh manual 3.5.0   # specific version

Before running the release, add notes to CHANGELOG.md under the new version header.


How the AI Works

The native vibe-coding agent uses a pipeline architecture:

  • GenerationHandler β€” manages multi-step LLM interactions (model calls, tool call loops, compaction, doom-loop detection)
  • Transformer chain β€” input/output transformers for placeholders, prompt injection, think tags, base64 images, lorebook documents
  • Tool system β€” 30+ tools for reading/writing files, search, command execution, git, LSP queries, web fetching
  • Security hooks β€” blocks dangerous patterns (eval, pickle, SQL injection) before writes
  • Context memory β€” tracks project structure, recent edits, and tool history across the session

Under the hood it talks to any OpenAI-compatible API, Google AI, Claude, or custom providers you configure. The MCP bridge allows external agents to hook into the same editor tooling.


Why Another Editor?

Because nothing on Android had all of these in one package:

Feature Xed-Editor Others
AI agents βœ… Native + multi-provider ❌ Rare or proprietary
Full terminal βœ… Termux-based ❌ Limited or none
LSP support βœ… Multi-language ❌ Often missing or basic
Open source βœ… GPLv3 ❌ Usually closed
Privacy βœ… Zero telemetry ❌ Analytics galore
Active dev βœ… Regular releases ❌ Abandoned

Community & Support


License

GPL v3 β€” see LICENSE.

Copyright (C) 2025 Rohit Kushvaha β€” Fork maintained by algospider (Mohan Sharma)
Made with ❀️ by the Xed-Editor Community

Packages

 
 
 

Contributors

Languages

  • Kotlin 65.7%
  • Java 32.7%
  • Shell 1.1%
  • C++ 0.4%
  • C 0.1%
  • Makefile 0.0%