GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - bibekgupta3333/xcoder: XCoder is a local-first coding agent that runs entirely on your machine using Ollama. It provides capabilities similar to Cursor, Claude Code, and Codex CLI but keeps your code and data completely private and free.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
docs
docs
 
 
scripts
scripts
 
 
tests
tests
 
 
xcoder
xcoder
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
Dockerfile
Dockerfile
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
poetry.lock
poetry.lock
 
 
pyproject.toml
pyproject.toml
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

XCoder πŸ€–

A Free Local Personal Coding Agent CLI - Powered by Ollama for autonomous code generation, research, and task execution

Python Version License Code Style

Note: XCoder is currently in active development (Alpha stage). Expect breaking changes.

🎯 What is XCoder?

XCoder is a local-first coding agent that runs entirely on your machine using Ollama. It provides capabilities similar to Cursor, Claude Code, and Codex CLI but keeps your code and data completely private and free.

Key Features

  • πŸ”’ 100% Local & Private - All processing happens on your machine
  • πŸš€ Agentic Code Generation - Multi-step autonomous task execution
  • 🧠 Smart Code Understanding - RAG-powered codebase vectorization
  • πŸ’Ύ Persistent Memory - Remembers context across sessions
  • 🎭 Multi-Agent Roles - Backend, Frontend, DevOps, Testing, and more
  • πŸ”§ Easy Configuration - Project-specific .xcoderules files
  • πŸ“¦ Zero External Dependencies - No API keys, no cloud services

πŸš€ Quick Start

Prerequisites

  • Python 3.11 or higher
  • Ollama installed and running
  • Docker and Docker Compose (for full setup)

Installation

# Clone the repository
git clone https://github.com/yourusername/xcoder.git
cd xcoder

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Install in development mode
pip install -e .

Docker Setup

# Start all services (vector DB, memory DB, etc.)
docker-compose up -d

# Verify services are running
docker-compose ps

First Steps

# Initialize a project
xcoder init

# Vectorize your codebase
xcoder ragify

# Start coding with AI
xcoder agent

# Check memory
xcoder memory list

πŸ“š Usage

Initialize a Project

# Initialize in current directory
xcoder init

# This creates:
# - .xcoderules (project configuration)
# - .xcoder/ (local storage for vectors and memory)

Vectorize Your Codebase

# Index entire codebase
xcoder ragify

# Watch for changes and auto-update
xcoder ragify --watch

# Ragify specific directories
xcoder ragify --path src/

Work with Agents

# Interactive chat mode
xcoder agent

# One-shot task execution
xcoder agent "Create a FastAPI endpoint for user authentication"

# Use specific agent role
xcoder agent --role backend "Add database migration for users table"

# Multi-agent collaboration
xcoder agent --multi "Build a todo app with FastAPI backend and React frontend"

Manage Memory

# List conversation history
xcoder memory list

# Search memory
xcoder memory search "authentication"

# Export memory
xcoder memory export --format json

# Clear old memories
xcoder memory clear --older-than 30d

πŸ—οΈ Architecture

xcoder/
β”œβ”€β”€ xcoder/              # Main package
β”‚   β”œβ”€β”€ cli.py           # CLI entry point
β”‚   β”œβ”€β”€ agents/          # Agent implementations
β”‚   β”‚   β”œβ”€β”€ base.py      # Base agent class
β”‚   β”‚   β”œβ”€β”€ backend.py   # Backend specialist
β”‚   β”‚   β”œβ”€β”€ frontend.py  # Frontend specialist
β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ rag/             # RAG system
β”‚   β”‚   β”œβ”€β”€ vectorizer.py
β”‚   β”‚   β”œβ”€β”€ chunker.py
β”‚   β”‚   └── retriever.py
β”‚   β”œβ”€β”€ memory/          # Memory system
β”‚   β”‚   β”œβ”€β”€ short_term.py
β”‚   β”‚   └── long_term.py
β”‚   β”œβ”€β”€ services/        # External service integrations
β”‚   β”‚   β”œβ”€β”€ ollama.py    # Ollama client
β”‚   β”‚   └── vectordb.py  # Vector database
β”‚   └── utils/           # Utilities
β”œβ”€β”€ tests/               # Test suite
β”œβ”€β”€ docs/                # Documentation
β”œβ”€β”€ scripts/             # Utility scripts
└── docker-compose.yml   # Service orchestration

βš™οΈ Configuration

.xcoderules File

Create a .xcoderules file in your project root:

# Project metadata
project:
  name: "my-awesome-app"
  type: "python"
  description: "A FastAPI-based web application"

# Coding standards
standards:
  style_guide: "PEP 8"
  max_line_length: 100
  use_type_hints: true
  docstring_style: "google"

# Agent behavior
agents:
  default_role: "backend"
  auto_test: true
  auto_format: true
  
  roles:
    backend:
      language: "python"
      framework: "fastapi"
      focus: ["api", "database", "business-logic"]
    
    frontend:
      language: "typescript"
      framework: "react"
      focus: ["ui", "components", "state-management"]

# RAG configuration
rag:
  chunk_size: 1000
  chunk_overlap: 200
  embedding_model: "nomic-embed-text"
  
# LLM configuration
llm:
  default_model: "deepseek-coder:6.7b"
  temperature: 0.2
  context_window: 8192

# File patterns
ignore:
  - "node_modules/**"
  - "venv/**"
  - "*.pyc"
  - ".git/**"
  - "dist/**"

🎭 Agent Roles

XCoder comes with pre-built agent roles:

  • BackendAgent - Python/FastAPI/Django specialist
  • FrontendAgent - React/Vue/HTML/CSS expert
  • DatabaseAgent - SQL/ORM/migrations expert
  • DevOpsAgent - Docker/CI/CD specialist
  • TestingAgent - pytest/unittest expert
  • DocumentationAgent - README/API docs writer
  • ReviewerAgent - Code review specialist
  • DebuggerAgent - Error analysis expert

πŸ› οΈ Development

Setup Development Environment

# Install development dependencies
pip install -e ".[dev]"

# Install pre-commit hooks
pre-commit install

# Run tests
pytest

# Run tests with coverage
pytest --cov=xcoder --cov-report=html

# Format code
black xcoder tests
ruff check --fix xcoder tests

Running Tests

# All tests
pytest

# Specific test file
pytest tests/test_rag.py

# With coverage
pytest --cov=xcoder

# Verbose mode
pytest -v

πŸ“– Documentation

  • Installation Guide
  • Configuration Guide
  • Agent System
  • RAG System
  • API Reference
  • Contributing

πŸ—ΊοΈ Roadmap

See WBS.md for detailed work breakdown structure.

Milestone 1: MVP βœ… (Current)

  • Basic CLI framework
  • Project initialization
  • Code vectorization (ragify)
  • Simple Q&A agent
  • Ollama integration
  • Docker setup

Milestone 2: Core Features

  • Full agent system with roles
  • Long-term memory
  • Task execution engine
  • Code generation capabilities

Milestone 3: Advanced Features

  • Plugin system
  • Multi-agent collaboration
  • Advanced code understanding
  • Comprehensive testing

Milestone 4: Release

  • PyPI package
  • CI/CD pipeline
  • Documentation
  • Community setup

🀝 Contributing

Contributions are welcome! Please read CONTRIBUTING.md first.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Inspired by Cursor, Claude Code, and Codex CLI
  • Built with Ollama for local LLM inference
  • Uses ChromaDB for vector storage
  • CLI powered by Typer

πŸ“ž Support

  • πŸ“– Documentation
  • πŸ› Issue Tracker
  • πŸ’¬ Discussions

Made with ❀️ for the developer community

Keep your code local. Keep it free. Keep coding.

About

XCoder is a local-first coding agent that runs entirely on your machine using Ollama. It provides capabilities similar to Cursor, Claude Code, and Codex CLI but keeps your code and data completely private and free.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.