MCPcopy Index your code
hub / github.com/chenhunghan/oxpilot

github.com/chenhunghan/oxpilot @v0.3.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.1 ↗ · + Follow
43 symbols 77 edges 16 files 8 documented · 19%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

oxpilot - rusty AI copilot

oxpilot is a CLI powered by LLM[^1] written in Rust 🦀. It's built on top of candle, with aims to be minimalist, fast, and accessible (in terms of computing resource).

A rusty programming copilot

Install

Mac

Install using brew

brew install chenhunghan/homebrew-formulae/oxpilot

Upgrade to the latest

brew update
brew upgrade oxpilot

Linux and Windows

Go to releases for binaries.

Commands

Chat

Who doesn't want to chat with AI?

ox hi in Japanese

AI Commmit with LLM

I am very lazy at drafting a comprehensive commit message, why not make LLM genereate one for me according to git diff? Don't worry, ox will ask your confirmation before commit the changes/messages.

git add .
ox commit # proxy to `git commit` with generated message

ox

It will try to generate a commit message following Conventional Commits spec, however, LLM isn't perfect and you can always edit before commit.

Fun fact: most of commits in this repo are generated by ox itself.

Start the copilot server

Start a Github copilot-compatible server, see the this on how to configure the Copilot extensions in your editor to pointing to the copilot-compatible server.

ox serve

Goal of this project

The primary goal of this project is to teach (myself, and everyone else) idiomatic Rust, similar to mini-redis, therefore the code is overly heavily documented, there is an article introducing the core concepts I made a Copilot in Rust 🦀 , here is what I have learned, I recommend to read first, and PRs description are packed with design patterns used in the code base.

Release

git commit -am "release: version 0.1.0" --allow-empty
git push
git tag v0.1.0
git push --tags # will then trigger CI

[^1]: Currently Mistral-7B-Instruct-v0.2

Core symbols most depended-on inside this repo

update
called by 9
src/utils/spinner.rs
tokenizer_repo_id
called by 4
src/llm.rs
model_repo_id
called by 4
src/llm.rs
model_file_name
called by 4
src/llm.rs
success
called by 3
src/utils/spinner.rs
commit_then_exit
called by 3
src/utils/commit.rs
app
called by 2
src/main.rs
tokenizer_repo_revision
called by 2
src/llm.rs

Shape

Class 14
Function 13
Method 13
Enum 3

Languages

Rust100%

Modules by API surface

src/llm.rs18 symbols
src/types.rs6 symbols
src/utils/spinner.rs5 symbols
src/main.rs4 symbols
src/cli.rs2 symbols
src/utils/mistral.rs1 symbols
src/utils/diff.rs1 symbols
src/utils/commit.rs1 symbols
src/token.rs1 symbols
src/state.rs1 symbols
src/routes/completion.rs1 symbols
src/process.rs1 symbols

For agents

$ claude mcp add oxpilot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page