We Pair Code · Local-first AI workflow

Navigate Your Development
Universe

WePairCode is a high-performance, local-first AI coding agent. Privacy focused, context-aware, and compatible with any local OpenAI-compatible server (llama.cpp, Ollama, LM Studio).

Demo

Solve your tasks with completely open source tool running locally.

bash
(.venv) username@hostname wepaircode % python3 main.py --dir ~/Code/temp/ --prompt "Create button component in react that accept onClick callback and children. use css modules" --profile gemma-e4b
🔧 settings
WePairCode
Target : /Users/username/Code/temp
Model : http://localhost:8081/v1 (gemma-4-E4B-it-f16.gguf)
Prompt : Create button component in react that accept onClick callback and children. use css modules
⚠️ Skipped 1 file(s) due to context limit:
   - package-lock.json

📂 Context: 4 files | ~375 tokens

💡 Summary: Created a reusable React button component using CSS Modules, including its corresponding styles.
Files to change: 2
✨ CREATE: src/components/Button/Button.module.css
New File Content
1 .button {
2   padding: 10px 20px;
3   border: none;
4   background-color: #007bff;
5   color: white;
6   cursor: pointer;
7   font-size: 16px;
8   border-radius: 5px;
9 }
10
11 .button:hover {
12   background-color: #0056b3;
13 }
✨ CREATE: src/components/Button/Button.jsx
New File Content
1 import React from 'react';
2 import styles from './Button.module.css';
3
4 /**
5 * A reusable button component.
6 * @param {object} props - Component props.
7 * @param {function} props.onClick - Callback function executed on click.
8 * @param {React.ReactNode} props.children - Content to display inside the button.
9 */
10 const Button = ({ onClick, children }) => {
11   return (
12     <button className={styles.button} onClick={onClick}>
13       {children}
14     </button>
15   );
16 };
17
18 export default Button;

Apply these changes? [y/n]: y

Core Features

First-version content, with icon treatment aligned to the second and third versions.

Privacy First

Runs entirely on your machine. Your code never leaves your local environment, ensuring maximum security and compliance.

Rich Aesthetics

Designed for developers who care about visual excellence. A premium CLI experience with syntax highlighting and clear diffs.

Intelligent Context

Advanced XML-based codebase analysis provides the AI with perfect context, resulting in highly accurate code edits.

Model Profiles

Seamlessly switch between models and providers. Native support for llama.cpp, Ollama, and LM Studio via dedicated configuration profiles.

Safety Drills

Always see a full preview of changes before they are applied. Built-in git integration ensures you can rollback anytime.

Local Speed

Optimized for local execution. Enjoy low-latency interactions while keeping your data and code entirely on your own hardware.

Ready to Code?

Get WePairCode from GitHub and run it locally with a simple setup.
Python 3.12 or later required.

# Clone and install locally
                                    $ git clone https://github.com/ostefani/wepaircode

                                    # Run the agent
                                    $ python3 main.py --prompt "Fix it"