Skip to content

Repository files navigation

Black Code

Black Code

Black Code is a premium offline AI coding assistant. This repository contains the complete source code for both the VS Code extension and the high-performance Rust inference engine.


Project Structure

DirectoryDescription
/frontendVS Code Extension UI (generates the .vsix file)
/backendHigh-performance Rust inference server
/coreShared logic, codebase indexing, and AI protocols
/packagesInternal shared packages and utilities
/models(Local only) Directory for your GGUF model files

AI Model Setup

The models/ folder is NOT included in this repository. It contains large GGUF files (several GB each) excluded by .gitignore. You must download a model before running the backend.

Option A — Automatic Download (Recommended)

chmod +x download_model.sh
./download_model.sh

This downloads qwen2.5-coder-7b-instruct.gguf (~4.7 GB) into the models/ directory automatically.

Option B — Manual Download

Download any compatible GGUF from Hugging Face and place it in models/:

blackcode/
└── models/
└── your-model.gguf

Recommended models:

EditionModelSize
DefaultQwen2.5-Coder-7B-Instruct Q4_K_M~4.7 GB
ProQwen2.5-Coder-7B Q8~7.7 GB
LiteQwen2.5-Coder-0.5B~0.5 GB

Quick Start

1. Clone the Repository

git clone https://github.com/anoneurx/blackcode.git
cd blackcode

2. Download a Model

./download_model.sh

3. Build the Project

Ensure you have Rust, Cargo, and Node.js installed, then run:

./build.sh

4. Run the Backend

cd backend
cargo run --release -- --model ../models/qwen2.5-coder-7b-instruct.gguf

5. Install the Extension

Install the extension from the marketplace: Black Code Extension


Configuration

In VS Code settings (blackcode.*):

SettingDefaultDescription
blackcode.backendUrlws://127.0.0.1:7777URL of the backend server
blackcode.modelBlack Code Beta DefaultActive AI model edition
blackcode.betaPathmodels/qwen2.5-coder-7b-instruct.ggufPath to Default model
blackcode.proPathmodels/qwen2.5-coder-7b-pro.ggufPath to Pro model
blackcode.litePathmodels/qwen2.5-coder-0.5b-lite.ggufPath to Lite model

License

This project is licensed under the Apache License 2.0 — see the LICENSE file for details.

Copyright © 2026 Black Code. All Rights Reserved By Anoneurx.

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages