JSPM

xcode-ai-coder

3.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q35288F
  • License MIT

XCode - AI-powered coding assistant with XMem long-term memory. Supports Claude, Gemini, Kimi, DeepSeek via OpenRouter.

Package Exports

  • xcode-ai-coder
  • xcode-ai-coder/main.tsx

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (xcode-ai-coder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

XCode

AI-powered coding assistant with persistent memory.

XCode is a terminal-based AI coding assistant that leverages XMem โ€” a multi-modal, multi-agentic long-term memory layer โ€” to remember context across sessions, projects, and platforms.

๐ŸŒŸ Features

  • ๐Ÿง  Persistent Memory: XMem integration remembers your preferences, codebase patterns, and conversation history
  • ๐Ÿค– Multi-Model Support: Use Claude, Gemini, Kimi K2.5, DeepSeek V3.2, and more via OpenRouter
  • ๐Ÿ’ป Code-First Design: Built for developers with powerful code search, editing, and analysis tools
  • ๐Ÿ”ง Extensible: Plugin system for custom agents, tools, and integrations
  • ๐Ÿš€ Fast & Local: Runs in your terminal with local file system access

๐Ÿ“ฆ Installation

# Using curl
curl -fsSL https://raw.githubusercontent.com/XortexAI/XCode/main/install.sh | bash

# Or using wget
wget -qO- https://raw.githubusercontent.com/XortexAI/XCode/main/install.sh | bash

Install via npm

npm install -g @xortex/xcode

Manual Installation

# 1. Clone the repository
git clone https://github.com/XortexAI/XCode.git ~/.xcode

# 2. Install dependencies
cd ~/.xcode
bun install  # or: npm install

# 3. Create symlink
ln -s ~/.xcode/bin/xcode ~/.local/bin/xcode

๐Ÿš€ Usage

Start a Session

xcode

Use Specific Models

# Gemini 2.5 Pro (recommended for coding)
xcode --model gemini-2.5-pro

# Kimi K2.5 (256K context window)
xcode --model kimi-k2.5

# DeepSeek V3.2 (strong reasoning)
xcode --model deepseek-v3.2

# Claude models (via Anthropic or OpenRouter)
xcode --model claude-sonnet-4.6
xcode --model claude-opus-4.6

OpenRouter Mode

Enable OpenRouter for access to all models:

export CLAUDE_CODE_USE_OPENROUTER=1
export OPENROUTER_API_KEY=your-api-key
xcode

๐Ÿ”ง Configuration

Environment Variables

Variable Description Default
OPENROUTER_API_KEY OpenRouter API key -
ANTHROPIC_API_KEY Anthropic API key (for Claude) -
GEMINI_API_KEY Google Gemini API key -
XMEM_API_URL XMem server URL http://localhost:8000
XMEM_API_KEY XMem API key -
CLAUDE_CODE_USE_OPENROUTER Enable OpenRouter false

Setup XMem Memory Server

XCode works best with the XMem memory server:

# 1. Clone and start XMem
git clone https://github.com/XortexAI/XMem.git
cd XMem
pip install -e .
cp .env.example .env
# Edit .env with your API keys
uvicorn src.api.app:create_app --factory --host 0.0.0.0 --port 8000

# 2. In another terminal, start XCode
export XMEM_API_URL=http://localhost:8000
xcode

๐Ÿ› ๏ธ Commands

Inside XCode, use these commands:

Command Description
/model <name> Switch AI model
/memory Open memory file editor
/compact Compact conversation context
/clear Clear conversation history
/quit Exit XCode

๐Ÿงช Development

# Clone the repo
git clone https://github.com/XortexAI/XCode.git
cd XCode

# Install dependencies
bun install

# Run in development mode
bun run start

# Build for distribution
bun run build

๐Ÿ“š Architecture

XCode consists of:

  1. Terminal UI: React + Ink-based interactive interface
  2. Query Engine: Multi-turn conversation loop with tool execution
  3. Memory Layer: XMem integration for long-term storage
  4. Tool System: Extensible tools for code search, editing, bash execution
  5. Model Router: Unified interface for multiple LLM providers

๐Ÿค Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

๐Ÿ“„ License

MIT License - see LICENSE for details.


Made with โค๏ธ by XortexAI

Forget forgetting. Build with XMem.