CLAUDE CODE MARKETPLACES

bolt-cppml

Build and optimize the Bolt C++ ML IDE with neural network module architecture. Use for C++ IDE development with GGML integration, RWKV neural networks, AI code completion, GPU acceleration, and modular component composition following nn patterns.

npx skills add https://github.com/cogpy/bolt-cppml --skill bolt-cppml
SKILL.md

Bolt C++ ML — AI-Powered C++ IDE

Bolt C++ ML is a modular C++ IDE with integrated machine learning capabilities, combining GGML-based inference, RWKV neural networks, and a full-featured editor with split views, multi-cursor editing, code folding, theming, keyboard shortcuts, plugin system, LSP integration, and collaborative editing.

Architecture Overview

The project follows a neural network module composition pattern where each IDE component is treated as a composable module (analogous to nn.Module in Torch7), connected through a sequential pipeline.

Core Module Hierarchy

Module LayerComponentSource Path
AI / InferenceGGML Wrapper, RWKV Wrapper, Direct GGUF Inferencesrc/bolt/ai/
EditorSplit View, Multi-Cursor, Code Folding, Keyboard Shortcutssrc/bolt/editor/
CoreChat Store, Editor Store, File Store, Workbench Storesrc/bolt/core/
GUIImGui Integration, Theme System, Tab Bar, Minimapsrc/bolt/gui/
GitRepository Management, Diff, Stagingsrc/bolt/git/
NetworkCollaboration, Network Optimizationssrc/bolt/network/
SystemLogging, Debugger, Memory Leak Detector, Profilersrc/bolt/system/
PluginPlugin System, Extension APIsrc/bolt/plugin/
LSPLanguage Server Protocol Clientsrc/bolt/lsp/

Key Files

FilePurpose
CMakeLists.txtTop-level build configuration
test/CMakeLists.txtTest framework with CTest integration
src/bolt/ai/ggml_wrapper.cppGGML backend for tensor operations
src/bolt/ai/rwkv_wrapper.cppRWKV time-mixing and channel-mixing layers
src/bolt/ai/direct_gguf_inference.cppDirect GGUF model loading and inference
include/bolt/ai/*.hppAI module headers
include/bolt/editor/*.hppEditor component headers
include/bolt/core/*.hppCore store headers

Quick Start

Prerequisites

  • C++20 compatible compiler (GCC 11+, Clang 14+)
  • CMake 3.15+
  • GGML library (bundled as submodule)

Build

git clone https://github.com/cogpy/bolt-cppml.git
cd bolt-cppml
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)

Test

cd build
ctest --output-on-failure

All 97 tests should pass with 0 warnings. The CTest configuration automatically sets LD_LIBRARY_PATH for shared library resolution.

Neural Network Module Pattern

Each component follows the nn module pattern:

Forward Pass (Data Flow)

Input → [Tokenizer] → [RWKV TimeMixing] → [RWKV ChannelMixing] → [LayerNorm] → [Output Projection] → Completion

RWKV Time-Mixing (WKV Attention)

The RWKV wrapper implements the full WKV attention mechanism:

xk = last_x + (x - last_x) * time_mix_k
xv = last_x + (x - last_x) * time_mix_v
xr = last_x + (x - last_x) * time_mix_r

k = Wk @ xk,  v = Wv @ xv,  r = Wr @ xr

wkv = (last_num + exp(bonus + k) * v) / (last_den + exp(bonus + k))
output = Wout @ (sigmoid(r) * wkv)

RWKV Channel-Mixing (Feed-Forward with Memory)

xk = last_x + (x - last_x) * time_mix_k
xr = last_x + (x - last_x) * time_mix_r

k = Wk @ xk,  r = Wr @ xr
vk = Wv @ (relu(k))^2
output = sigmoid(r) * vk

Test Framework

The project uses a custom lightweight test framework with CTest integration:

Test SuiteTestsDescription
Core7Chat, Memory, Store, String, FileTree, Minimap
Editor5SplitView, MultiCursor, KeyboardShortcuts, Theme, CodeFolding
ErrorHandling7Error recovery, boundary conditions
AI15GGML wrapper, AI models, KoboldCpp provider (13 suites)
Comprehensive E2E27Cross-module, DrawKern VM, Styx, Git, Benchmark, Plugin
Extended E2E11DataProcessor, MathUtils, FileSystem, LineNumbers, VectorDB, OT edge cases
Integration2Full integration tests
System4Debugger, Logging, MemoryLeak, Sanitizer

Running Specific Test Labels

ctest -L Unit          # All unit tests
ctest -L Editor        # Editor component tests
ctest -L AI            # AI/ML tests
ctest -L Integration   # Integration tests

Extending the IDE

Adding New Modules

  1. Create header in include/bolt/<category>/
  2. Create implementation in src/bolt/<category>/
  3. Add source to CMakeLists.txt bolt_lib target
  4. Add test in test/
  5. Register test in test/CMakeLists.txt

Plugin System

Plugins follow the module pattern with lifecycle hooks:

class MyPlugin : public bolt::Plugin {
    void onActivate() override;
    void onDeactivate() override;
    std::string getName() const override;
};

Build Status

  • Errors: 0
  • Warnings: 0
  • Tests: 97/97 passing (100%)
  • CTest: Fully configured with LD_LIBRARY_PATH and labels
  • Labels: Unit, Core, Editor, ErrorHandling, AI, KoboldCpp, Extended, Integration
Installs0
GitHub Stars0
LanguageC++
AddedJun 10, 2026
View on GitHub