X-Copilot
X-Copilot is a Python 3.11+ command-line agent for Windows and Linux. It provides project memory, skills, checkpoints, permissions, context budgeting, and shell/file/search/web tools.
Requirements
- Python 3.11 or newer
- Git
- Docker 20.10 or newer (optional)
- Node.js 18 or newer is only needed for the separate JavaScript wrapper in
package.json
Install From Source
git clone https://github.com/tnvmac-web/X-Copilot.git
cd X-Copilot
python -m venv .venv
Activate the virtual environment:
# Linux/macOS
source .venv/bin/activate
# Windows PowerShell
.venv\Scripts\Activate.ps1
Install the package and its development tools:
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
Verify the installation:
xcopilot --help
xcopilot --version
The Windows installer script is available at installers/install.ps1. Run it
from a checked-out copy of the repository:
Set-ExecutionPolicy -Scope Process Bypass
.\installers\install.ps1
Run X-Copilot
Start the interactive agent in the current directory:
xcopilot start
Use test mode when no model API is configured:
xcopilot start --test-mode
Select a project and permission mode with the global options before the command:
xcopilot --project path/to/project --mode standard start
Available permission modes are standard, auto-ask, plan, bypass, and
dont-ask. Use bypass only in a trusted environment.
Useful commands:
xcopilot memory Show memory status
xcopilot skills List installed skills
xcopilot skills-marketplace Browse marketplace skills
xcopilot skills-marketplace --install NAME
xcopilot graph Build the project knowledge graph
xcopilot checkpoints List checkpoints
xcopilot tree Show the checkpoint tree
xcopilot rewind CHECKPOINT_ID Restore a checkpoint
xcopilot fork CHECKPOINT_ID BRANCH Create a checkpoint branch
xcopilot compact --mode fast Compact conversation history
xcopilot context Show token budget usage
xcopilot permissions Show permission modes
xcopilot update Check for updates
Docker
Build the image locally:
docker build -t x-copilot:local .
Show the CLI help:
docker run --rm x-copilot:local --help
Run against a local project directory:
docker run --rm -it \
-v "$(pwd):/workspace" \
-w /workspace \
x-copilot:local --project /workspace start --test-mode
Development
Run the test suite and coverage gate:
pytest tests/ -v --tb=short
pytest tests/ --cov=src/xcopilot --cov-report=term --cov-fail-under=65
Run the same static checks used by CI:
ruff check src/ tests/
mypy src/
ruff format --check src/ tests/
Build the Python package:
python -m pip install build
python -m build
CI/CD And Publishing
The workflow is .github/workflows/ci-cd.yml.
- Pushes to
mainand pull requests run tests, coverage, lint, type checks, formatting, and package build. - Pushes to
developpublish to TestPyPI. - Publishing a GitHub release publishes to PyPI and pushes the Docker image.
- A weekly schedule checks for dependency updates.
workflow_dispatchprovides manualpublish_test,publish_prod, andpublish_dockerinputs.
Configure these repository secrets before publishing:
TEST_PYPI_TOKEN
PYPI_TOKEN
DOCKERHUB_USERNAME
DOCKERHUB_TOKEN
The PyPI and TestPyPI environments may also require environment approval in GitHub repository settings.
Run the complete release path manually with GitHub CLI:
gh workflow run ci-cd.yml \
-f publish_test=true \
-f publish_prod=true \
-f publish_docker=true
Check the run:
gh run list --workflow ci-cd.yml --limit 5
gh run watch
Production publishing is intentionally opt-in for manual runs. A normal push
to main does not publish to PyPI or Docker.
Architecture
- Memory: session, episodic, semantic, procedural, and project memory
- Learner: observes signals and stores reusable patterns
- Skills: loads and creates
SKILL.md-based skills - Planner: learns project and user preferences
- Evaluator: scores output against configurable criteria
- Checkpoints: snapshot, rewind, fork, and inspect project state
- Permissions: deny, ask, and allow decisions for tool actions
- Tools: shell, file, search, and web operations
License
This project is licensed under the MIT License. See LICENSE.
Metadata
Release files for x-copilot 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| x_copilot-0.1.1.tar.gz | 51.0 kB | Without provenance | Details for x_copilot-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| x_copilot-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for x_copilot-0.1.1-py3-none-any.whl |
Total release size: 118.6 kB
Release files / x_copilot-0.1.1.tar.gz
| Download URL | x_copilot-0.1.1.tar.gz |
|---|---|
| Size | 51.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82fa5c78e492aa281a1aff8d7ed38c92093f5b052ebc5766050e3ae05922c516
|
|
BLAKE2b-256 checksum How to use checksums |
e1b69bd0a59c0406f8ae3e6d7a870616ad7f64884ad8a19e85eca897e14228c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / x_copilot-0.1.1-py3-none-any.whl
| Download URL | x_copilot-0.1.1-py3-none-any.whl |
|---|---|
| Size | 67.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a3a99e9665988659daeb892aa2b62f7100ca7b9013fc6f1dd2a18ea5d9b1ed2
|
|
BLAKE2b-256 checksum How to use checksums |
d0ceb3021109dce2dd200331b8161cb5dda1c0c720ea838fbb28964f04ce497e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for x-copilot 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.