ablx.directory

kbot Ribbon Rendition

v0.1.0

Open-source terminal AI agent. 35 agents. 600+ tools. 20 providers. Science, finance, security, and more.

isaacsightmanifest author: kernel.chatNo ratings yet
README · rendered from GitHubView source

If kbot is useful to you, consider starring the repo — it helps others discover the project.

Short on time? Start with packages/kbot-finance/. It is the sharpest thing in this repo: a substrate where the AI never produces the number. Content-addressed request envelopes, a hash-chained audit log, rules-as-code with adverse-action reason codes, and signed human approval at material gates. v0.3 adds a ledger substrate — the model's reading of a source document is a claim, a deterministic engine must confirm it against arithmetic and the bank feed, an accountant signs the exact envelope, and only then does a ledger post. Vendor-neutral, replayable, 96 tests. Read ROLE.md for the field it names (provenance engineering), then the ledger section of the README.

New here — or reading this repo through an AI assistant? Start with SHOWCASE.md: the five-minute tour of the work this studio produces and the standing Fable 5 use cases it runs on.

npm install -g @kernel.chat/kbot

This repo ships five packages

PackageWhat it isinstallSource
provenance-substrate (Python, standalone repo)The model proposes, deterministic code disposes, a human signs. The kbot-finance ledger substrate ported to Python and generalized to academia: Lean proof ledger, manuscript claim graph, reproducibility ledger with Zenodo/Croissant export, quantitative-hallucination benchmark, peer-review provenance. Passes the finance v1 conformance suite byte-for-byte (143/143) and ships its own academic v1 suite (167 vectors). MITpip install provenance-substrateisaacsight/provenance-substrate
@kernel.chat/kbotOpen-source terminal AI agent — 100+ skills, multi-provider, BYOK, MITnpm i -g @kernel.chat/kbotpackages/kbot/
@kernel.chat/kbot-financeAudit-grade AI infrastructure for capital markets — content-addressed envelopes, hash-chained audit log, regulatory verifier, MCP server. Reference implementation of provenance engineering. Apache 2.0npm i @kernel.chat/kbot-financepackages/kbot-finance/
@kernel.chat/agent-osPOSIX for AI agents — ten OS-level primitives: signed capability tokens (acap), namespaces, per-agent quotas (ulimit-tok), taint-tracked exec (chexec), content-addressed audit, downscoped handoff, snapshot, credential vault, rubric-graded outcomes. Runs above Modal-class sandboxes, below MCP/A2A. Apache 2.0npm i @kernel.chat/agent-ospackages/agent-os/
@kernel.chat/kbot-orchestratorReference implementation of orchestration engineering — pipelines that route work between agents and humans with audit trails. v0.1 ships the outreach pipeline. MITnpm i -g @kernel.chat/kbot-orchestratorpackages/kbot-orchestrator/

Plus this repo also serves kernel.chatthe magazine of agentic engineering (the software branch of autonomy engineering, the broader field already in working use across defense, aerospace, robotics, and scientific-AI communities). The editorial beat is the whole field; the disciplines this group has coined and shipped reference implementations for are:

  1. Provenance engineering — substrate underneath the agent. packages/kbot-finance/ROLE.md. Declared in ISSUE 381 — On Provenance.
  2. agent-OS — system primitives the agent runs on top of. packages/agent-os/. Positioned as POSIX for AI agents.
  3. Orchestration engineering — pipelines that route work between agents and humans with audit trails. packages/kbot-orchestrator/ROLE.md. Declared in ISSUE 387 — On Orchestration.

The field map is at docs/agentic-engineering.md: six disciplines, three coined and held by kernel.chat, three open to whoever names them first (skill curation, evaluation, operations). ISSUE 386 — On the Field makes the magazine's beat explicit. ISSUE 388 — On the Branch positions agentic engineering inside autonomy engineering and opens the "Agentic Substrates for the Frontier" series (4-6 issues reading the embodied, scientific, and neuro branches through the substrate-discipline lens). The practitioner's note on what agents can actually earn is at docs/agents-and-money.md.

The stack, end-to-end

            @kernel.chat/kbot-orchestrator   (pipelines — orchestration engineering)
                       │
                       │   reads briefings, routes work to specialist agents,
                       │   gates at material approval points, appends audit trails
                       │
            your AI agent  →  @kernel.chat/agent-os  (permissions, quotas, audit, vault)
                                   │
                                   ├─→  @kernel.chat/kbot          (the agent itself)
                                   └─→  @kernel.chat/kbot-finance  (regulated-industry verifier)

agent-os is the OS-level substrate; kbot is one tenant of that OS; kbot-finance is the compliance verifier those tenants call when the work is regulated; kbot-orchestrator is the pipeline layer that drives all of them through real-world multi-step outcomes. Open core throughout, with commercial offerings downstream.


Why kbot?

Most terminal AI agents lock you into one provider, one model, one way of working. kbot doesn't.

  • 20 providers, zero lock-in — Claude, GPT, Gemini, Grok, DeepSeek, Groq, Mistral, SambaNova, Cerebras, OpenRouter, and more. Switch with one command.
  • Runs fully offline — Embedded llama.cpp, Ollama, LM Studio, or Jan. $0, fully private.
  • Learns your patterns — Bayesian skill ratings + pattern extraction. Gets faster over time.
  • 35 specialist agents — auto-routes your request to the right expert (coder, researcher, writer, guardian, quant, and 30 more).
  • 600+ tools — files, bash, git, GitHub, web search, deploy, database, game dev, VFX, research, science, finance, security, and more.
  • Programmatic SDK — use kbot as a library in your own apps.
  • MCP server built in — plug kbot into Claude Code, Cursor, VS Code, Zed, or Neovim as a tool provider.

How it compares

kbotClaude CodeCodex CLIAiderOpenCode
AI providers2011675+
Specialist agents350000
Built-in tools600+~20~15~10~15
Science tools1140000
Learning engineYesNoNoNoNo
Offline modeEmbedded + OllamaNoNoOllamaOllama
SDKYesNoYesNoNo
MCP serverYesN/ANoNoNo
Web companionkernel.chatNoNoNoNo
Open sourceMITSource availableApache 2.0Apache 2.0MIT
CostBYOK / $0 local$20+/moBYOKBYOKBYOK

Quick Start

# Install globally
npm install -g @kernel.chat/kbot

# Or run directly (no install)
npx @kernel.chat/kbot

# Or use the install script (auto-installs Node.js if needed)
curl -fsSL https://kernel.chat/install.sh | bash
# Interactive mode
kbot

# One-shot
kbot "explain this codebase"
kbot "fix the auth bug in src/auth.ts"
kbot "create a Dockerfile for this project"

# Pipe mode (for scripting)
kbot -p "generate a migration for user roles" > migration.sql

# Use local models (free, no API key)
kbot local

# Set up your API key
kbot auth

Specialists

kbot auto-routes to the right agent for each task. Or pick one with --agent <name>.

Agents
Corekernel, researcher, coder, writer, analyst
Extendedaesthete, guardian, curator, strategist
Domaininfrastructure, quant, investigator, oracle, chronist, sage, communicator, adapter
Presetsclaude-code, cursor, copilot, creative, developer

600+ Tools

CategoryExamples
Files & Coderead, write, glob, grep, lint, format, type-check
Shellbash, parallel execute, background tasks
Git & GitHubcommit, diff, PR, issues, code search
Websearch, fetch, browser automation, browser agent
ResearcharXiv, Semantic Scholar, HuggingFace, NASA, DOI
DataCSV read/query/write, transforms, reports, invoices
Qualitylint (ESLint/Biome/Clippy), test (Vitest/Jest/pytest), deps audit, formatting
DeployVercel, Netlify, Cloudflare Workers/Pages, Fly.io, Railway
DatabasePostgres, MySQL, SQLite queries, Prisma, ER diagrams, seed data
ContainersDocker build/run/compose, Terraform
Creativep5.js generative art, GLSL shaders, SVG patterns, design variants
VFXGLSL shaders, FFmpeg, ImageMagick, Blender, procedural textures
Game Dev16 tools for Godot, Unity, Unreal, Bevy, Phaser, Three.js, PlayCanvas, Defold
Trainingdataset prep, fine-tuning, evaluation, model export
Socialpost to X, LinkedIn, Bluesky, Mastodon — single posts and threads
SandboxDocker sandboxes, E2B cloud sandboxes, isolated code execution
NotebooksJupyter read/edit/insert/delete cells
Build Matrixcross-platform builds — mobile, desktop, WASM, embedded, server
LSPgoto definition, find references, hover, rename, diagnostics
Memorypersistent memory save/search/update across sessions
MCPmarketplace search/install, 20 bundled servers
IDEMCP server, ACP server, LSP bridge
Forgecreate tools at runtime, publish to registry, install from registry
Metasubagents, worktrees, planner, sessions, checkpoints, self-eval
Science & Mathsymbolic compute, matrix ops, FFT, ODEs, probability, optimization, graph theory, OEIS
Physicsorbital mechanics, circuits, signal processing, particles (PDG), relativity, quantum simulator, beam analysis, fluid dynamics
ChemistryPubChem compounds, reactions, periodic table (118 elements), spectroscopy, stoichiometry, thermodynamics
BiologyPubMed, gene lookup, protein/PDB, BLAST, drug/ChEMBL, pathways, taxonomy, clinical trials
Earth & Climateearthquakes/USGS, climate/NOAA, satellite imagery, geology, ocean, air quality, volcanoes, water resources
Neurosciencebrain atlas, EEG analysis, cognitive models, neural simulation, connectome, psychophysics
Social Sciencepsychometrics, game theory, econometrics, social network analysis, survey design, voting systems
Humanitiescorpus analysis, formal logic, argument mapping, ethics frameworks, historical timelines, stylometry
Health & EpidemiologySIR/SEIR models, epidemiology calculations, disease surveillance, nutrition, vaccination modeling
Financemarket data, technical analysis, paper trading, DeFi yields, wallet & swaps, stock screener, sentiment
Cybersecuritydep_audit, secret_scan, ssl_check, headers_check, cve_lookup, port_scan, owasp_check
Self-Defensememory HMAC, prompt injection detection, knowledge sanitization, forge verification, anomaly detection

20 Providers

ProviderCostLocal?
Embedded (llama.cpp)FreeYes
OllamaFreeYes
LM StudioFreeYes
JanFreeYes
DeepSeek$0.27/M inCloud
SambaNova$0.50/M inCloud
Cerebras$0.60/M inCloud
Groq$0.59/M inCloud
NVIDIA NIM$0.80/M inCloud
Together AI$0.88/M inCloud
Fireworks AI$0.90/M inCloud
Google (Gemini)$1.25/M inCloud
Mistral$2.00/M inCloud
OpenAI (GPT)$2.00/M inCloud
Cohere$2.50/M inCloud
Anthropic (Claude)$3.00/M inCloud
xAI (Grok)$3.00/M inCloud
Perplexity$3.00/M inCloud
OpenRoutervariesCloud
kbot localFreeYes

Set any provider's env var and kbot auto-detects it. Or run kbot auth for interactive setup.

SDK

import { agent, tools, providers } from '@kernel.chat/kbot'

const result = await agent.run("fix the auth bug", { agent: 'coder' })
console.log(result.content)

for await (const event of agent.stream("explain this code")) {
  if (event.type === 'content_delta') process.stdout.write(event.text)
}

Architecture

graph TD
    A[User Message] --> B{Local-first check}
    B -->|file, git, grep| C[Instant response — $0]
    B -->|Needs AI| D{Complexity detection}
    D -->|Simple| E[Bayesian Router → Specialist]
    D -->|Multi-step| F[Autonomous Planner]
    E --> G[Provider API + Tool Loop]
    F --> G
    G --> H{600+ Tools}
    H --> I[File ops, bash, git, GitHub, search, deploy, DB, game dev...]
    G --> J[Learning Engine]
    J --> K[Patterns + Solutions + User Profile]
    G --> L[Checkpointing]
    L --> M[Resume from last tool call]

MCP Server

kbot MCP server

Use kbot as a tool provider inside any MCP-compatible IDE:

{
  "mcp": {
    "servers": {
      "kbot": { "command": "kbot", "args": ["ide", "mcp"] }
    }
  }
}

Or run via Docker:

docker run -i --rm kernelchat/kbot ide mcp

Works with Claude Code, Cursor, VS Code, Windsurf, Zed, Neovim.

Commands

CommandWhat it does
kbotInteractive REPL
kbot "prompt"One-shot execution
kbot authConfigure API key
kbot localUse local AI (Ollama, embedded, LM Studio, Jan)
kbot serveStart HTTP REST + SSE streaming server
kbot audit <repo>Security + quality audit of any GitHub repo
kbot contribute <repo>Find good-first-issues and quick wins
kbot shareShare conversation as GitHub Gist
kbot pairFile watcher with auto-analysis
kbot teamMulti-agent TCP collaboration
kbot recordTerminal session recording (SVG, GIF, asciicast)
kbot voiceText-to-speech output mode
kbot watchReal-time file analysis on change
kbot bootstrapOuter-loop project optimizer (visibility scoring)
kbot pluginsSearch, install, update community plugins
kbot modelsList, pull, remove, catalog local models
kbot changelogGenerate changelog from git history
kbot completionsShell completions (bash, zsh, fish)
kbot cloudSync learning data to kernel.chat
kbot ide mcpStart MCP server for IDEs
kbot doctor10-point health check

Power-User Flags

kbot --architect "design the auth system"    # Architecture mode — plan before code
kbot --thinking "solve this hard problem"    # Extended reasoning with thinking budget
kbot --self-eval "write a parser"            # Self-evaluation loop — scores and retries
kbot --computer-use "fill out this form"     # Computer use — controls mouse and keyboard
kbot -p "query" > output.txt                 # Pipe mode — clean output for scripting

Security

  • API keys encrypted at rest (AES-256-CBC)
  • Destructive operations require confirmation
  • Shell commands sandboxed with blocklist
  • Tool execution timeout (5 min) with middleware pipeline
  • Config files restricted to owner (chmod 600)
  • 0 P0/P1 security issues (audited March 2026)

Development

cd packages/kbot
npm install
npm run dev          # Run in dev mode
npm run build        # Compile TypeScript
npm run test         # Run tests (vitest)

Web Companion — kernel.chat

kbot has a web companion at kernel.chat — same agents, persistent memory, and a visual interface. Free to use (20 messages/day).

Community

License

MITkernel.chat group

Rate this extension

One rating per account; you can change it any time.

No ratings yet — be the first

Comments

Sign in to join the discussion.Sign in

No comments yet.