The AI Filesystem Kernel - Route queries to agents like a filesystem routes to files
Project description
KmBiT Kernel
The AI Filesystem - Route queries like a filesystem routes files.
┌────────────────────────────────────────┐
│ KmBiT KERNEL │
│ (non-conversational) │
│ │
│ Query → Pattern Match → Path │
│ │
│ No reasoning. No LLM calls. │
│ Just routing. Fast. Deterministic. │
└────────────────────────────────────────┘
The Insight
A filesystem doesn't store files - it stores the index to files.
KmBiT doesn't store knowledge - it stores the index to knowledge.
Traditional OS: AI OS:
/home/user/docs/file.txt /agents/claude (for complex code)
/bin/program /agents/gemini (for vision)
/etc/config /memory/vector (for recall)
Installation
pip install kmbit-kernel
Quick Start
from kmbit_kernel import Kernel
# Initialize the kernel
kernel = Kernel()
# Route queries to the right agent
path = kernel.resolve("review this code for bugs")
# → "/agents/claude"
path = kernel.resolve("what's in this image?")
# → "/agents/gemini"
path = kernel.resolve("quick validation check")
# → "/agents/kit"
# Explain routing decisions
print(kernel.which("analyze this complex problem"))
The AI Filesystem
/ # root
├── /agents # who can do what
│ ├── claude # complex reasoning, code
│ ├── gemini # vision, research
│ ├── codex # analysis (no code gen)
│ ├── kit # local, fast, cheap
│ └── sentinel # security, validation
│
├── /memory # where knowledge lives
│ ├── vector/ # embeddings
│ ├── graph/ # relations
│ └── session/ # temporary
│
├── /trust # TIBET provenance
│ ├── actors/ # who did it
│ ├── actions/ # what was done
│ └── chains/ # full provenance
│
└── /routes # routing rules
CLI Interface
# Where does this query route?
kmbit which "review my code"
# List agents
kmbit ls /agents
# Show filesystem tree
kmbit tree
# Kernel statistics
kmbit stats
Core Operations
All operations complete in < 10ms. No LLM calls. No external requests.
# Resolve query to path
kernel.resolve("query") # → "/agents/..."
# Filesystem operations
kernel.ls("/agents") # → ["claude", "gemini", ...]
kernel.stat("/agents/claude") # → {metadata}
kernel.tree("/") # → tree view
# Custom routing
kernel.add_route(
pattern=r"deploy.*production",
destination="/agents/sentinel",
priority=100
)
# Index operations
kernel.index_add("api_key", "/memory/secrets")
kernel.lookup("api_key") # → "/memory/secrets"
Performance
The kernel is designed for speed:
| Operation | Target | Actual |
|---|---|---|
| resolve() | < 10ms | ~2ms |
| lookup() | < 1ms | ~0.1ms |
| ls() | < 1ms | ~0.05ms |
Philosophy
This is not a chatbot. This is the operating system underneath.
- Non-conversational: No chat, no reasoning, just routing
- Deterministic: Same input → same output
- Fast: Milliseconds, not seconds
- Auditable: Every route decision is traceable
The conversation happens in Claude/Gemini/GPT. The kernel is silent and fast.
Part of HumoticaOS
KmBiT Kernel is the core of HumoticaOS:
- KmBiT Kernel: This package - the routing layer
- TIBET: Trust and provenance
- AInternet: Agent networking (.aint domains)
- Sentinel: Hardware validation
- REFLUX: Out-of-band communication
License
MIT License - Part of HumoticaOS
One Love, One fAmIly! 💙
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kmbit_kernel-0.1.0.tar.gz.
File metadata
- Download URL: kmbit_kernel-0.1.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c48b0b94af1dcb2729d4ce692f8da089a55de5c87154d493e9031f13dab56475
|
|
| MD5 |
d00d0d28657cd4ad0cda5552859254ae
|
|
| BLAKE2b-256 |
fa672792dab9f4b94902c7e55f9aeb36b63e2c420eec407855d6d9061c271d1e
|
File details
Details for the file kmbit_kernel-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kmbit_kernel-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
343e73ddacb80a6aee11dbb4c59c1e7aa390c6403ffc08a20eb05adc9c263777
|
|
| MD5 |
edad0ee64264c26345965b8223c1c868
|
|
| BLAKE2b-256 |
16cb2b0672f5ce0749e4e8c7d45a78a476792d4e0bb65bc4a3bafa5f71a833f7
|