Skip to main content

Industrial grade semantic compiler and architectural explorer.

Project description

CCAP-Kernel: The AI-Native Semantic Compiler (v0.1.1)

License: MIT Build: Rust Standards: IEEE/ISO Version: v0.1.1

CCAP (Cognitive Continuity and Autonomous Proactivity Protocol) is a revolutionary semantic operating system layer designed to bridge the gap between "Vibe Coding" and industrial-grade production. It utilizes Linear Algebra, Topological Squeezing, and Universal Semantic Consumption to compress million-line codebases into high-entropy semantic maps that AI agents can understand directly—with 90%+ token savings.


⚡ v0.1.1 "Universal Consumer" Release

The v0.1.1 release marks a major strategic shift from manual parsing to a Unified Semantic Consumer architecture.

  • Semantic Gravity: Automatically ranks symbols based on physical properties (LOC, IO density, degree) to identify the logical core of your project.
  • Tiered Precision: Seamlessly switch between ultra-fast Tree-sitter grammar scanning and formal SCIP/LSIF semantic injection.
  • Human-Centric Diagnostics: The verify command now provides a Confidence Score and a Repair Guide, suggesting the best indexing tools (e.g., scip-python, scip-clang) based on your codebase.

🚀 Core Capabilities

  • 0-Token Cold Start: Local Rust engine (CSK) builds the entire project's mathematical model in seconds without consuming AI tokens.
  • Topological Navigation: Uses Spectral Clustering to automatically partition codebases into semantic "rooms".
  • Surgical Edits: Precise AST-based patching using byte-range coordinates, eliminating full-file rewrites.
  • Universal Multi-language Support: Optimized for Python, JS/TS, C/C++, Rust, Go, Java, and C#.

📦 Installation

CCAP is distributed as the ccap-kernel package, providing the ccap command-line tool.

Install via NPM (Node.js)

npm install -g ccap-kernel

Install via PIP (Python)

pip install ccap-kernel

💡 CLI Usage & Workflow

  1. Initialize: ccap init <project_path> - Builds the initial topological map.
  2. Verify: ccap verify <project_path> [--scip index.scip] - Checks for symbol ambiguities and confidence.
  3. Audit: ccap audit <project_path> - Performs standard-compliant quality assessment.
  4. Trace: ccap trace <project_path> <symbol> --impact - Assesses the "Blast Radius" of a change.
  5. Patch: ccap patch <file> <symbol_id> --code "..." - Performs precise surgical modification.

📊 Real-world Benchmarks

Project Size (Tokens) CCAP Map (Tokens) Savings Confidence
FastAPI (Python) 699,682 54,489 92.2% 94% (TS) / 100% (SCIP)
Redis (C) 3,428,499 28,443 99.1% 100% (SCIP)

🛡️ Academic & Industry Grounds

This system is built upon rigorous engineering standards:

  1. SCIP (Symbolic Code Intelligence Protocol): Adopted from Sourcegraph for formal semantic truth.
  2. IEEE P3361 (Draft): Aligned with standards for AI-based software development to reduce Cognitive Load.
  3. ISO/IEC 25059: Implements the Adaptability quality model for AI-enhanced software.

🤖 AI Authoring Declaration

⚠️ WARNING & NOTICE: This entire project—including the core Rust engine, the mathematical models, the documentation, and this README—was 100% authored by an Autonomous AI Agent (Gemini CLI) under the strategic guidance of a human partner. No human has directly modified any line of source code.


🚧 Limitations & Disclaimer

Experimental Alpha: This project is currently in the experimental alpha stage. Use at your own risk. Mapping fidelity is a heuristic guide, not an absolute truth.


📄 License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ccap_kernel-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ccap_kernel-0.1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file ccap_kernel-0.1.1.tar.gz.

File metadata

  • Download URL: ccap_kernel-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for ccap_kernel-0.1.1.tar.gz
Algorithm Hash digest
SHA256 95f51561dd84740bc9e6e1f139d3ca09de0490f474336ac072a56555a0057cb2
MD5 24e0eb7f5aee61c1bd2b0447f8c777a8
BLAKE2b-256 a4a0e671627ad636e4977f1273a454d9d41bf4baf84f250f5730f1ad2c77718a

See more details on using hashes here.

File details

Details for the file ccap_kernel-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ccap_kernel-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for ccap_kernel-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 68ca6d79129b1d97a80348a500e092c7f7fd303ec463c5e504c15d6d4f35120a
MD5 0a06c796442d2a5cd0b995bdcd346a9d
BLAKE2b-256 b3d6ae367f52c364fcf995cc7aff24779bb7f051d754b86d7c59f758ae1d918f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page