Skip to content
Akash Dubey
ProjectsWritingAboutContactResume
Akash Dubey icon

Akash Dubey

If you want to talk about research, robotics, startups, math, or a project worth building together, there are a few easy ways to reach me.

EmailLinkedInXGitHubYouTubeKhan AcademyPortfolio
Email
akash.dubey@rutgers.edu
LinkedIn
Professional updates ↗
GitHub
Code, experiments, repositories ↗
Around The Site
ProjectsWritingSitesWikiCVTimelineResumeContact
# KRAIL - Local-First Knowledge Runtime

URL: https://akashdubey.me/projects/knowledge
Date: Thu Jun 18 2026 00:00:00 GMT+0000 (Coordinated Universal Time)
Tags: AI, Infrastructure, Research

Summary: A repo-backed knowledge runtime for auditable agent work, with capture, search, think envelopes, markdown graphs, workflows, integrity records, and MCP tools.

Sections: What It Provides | Core Capabilities | Technical Stack
Links: none listed
← All projects

2026AIInfrastructureResearch2 min read

KRAIL - Local-First Knowledge Runtime

A repo-backed knowledge runtime for auditable agent work, with capture, search, think envelopes, markdown graphs, workflows, integrity records, and MCP tools.

KRAIL - Local-First Knowledge Runtime cover
On this page
  1. What It Provides
  2. Core Capabilities
  3. Technical Stack
Hero

KRAIL is a local-first knowledge runtime for projects where agents need more than chat memory. It gives a repository durable context: captured notes, source pointers, knowledge packs, task records, workflow outputs, markdown graphs, vector search, and evidence-backed think envelopes. The core idea is simple: if an agent uses knowledge to make a decision, the source trail should stay inspectable.

View on GitHub


What It Provides

KRAIL treats a project folder as a living knowledge workspace. You can capture notes or files, search raw evidence, build markdown-frontmatter graphs, ask deterministic think queries, dispatch local CLI agents as auditable workers, and expose the same functions through MCP tools for Codex, Claude Code, Cursor, Gemini, or other agent surfaces.

The project is intentionally headless. There is no required hosted database or bundled frontend. The runtime starts local, with optional API adapters and MCP tools when a project needs to connect to custom interfaces.


Core Capabilities

  • Capture notes, URLs, files, and stdin into a predictable inbox
  • Search local evidence with deterministic file search and SQLite vector retrieval
  • Think through an answer envelope with citations, gaps, conflicts, and next actions
  • Graph markdown-frontmatter entities, edges, and topic documents
  • Task and workflow records for repo-backed work orders and agent sessions
  • Integrity artifacts for promoted outputs and verification runs
  • MCP tools for search, think, capture, tasks, workflows, and integrity

Technical Stack

  • Python 3.11+
  • SQLite vector storage
  • Markdown and YAML project records
  • CLI and SDK interfaces
  • FastAPI adapter
  • MCP server
  • Optional DuckDB, ontology, and embedding extras

KRAIL is pilot-ready rather than polished production software. That is also what makes it interesting: it is infrastructure for making long-running AI-assisted research more durable, sourced, and reviewable.

Next project →Economic Drivers of Puerto Rican MigrationA data-driven interactive web experience analyzing Puerto Rican migration patterns from 1950 to 2024, combining quantitative census data with literary narratives.

Related projects

AI · ResearchSLM Optimization & Post-Training (GSM8k)Fine-tuning and deploying small language models (SLMs) on the Rutgers High Performance Computing (Amarel) cluster for optimal math reasoning capabilities.AI · RoboticsTrace-Supervised Dual-Arm TAMPA research system for dual-arm task and motion planning where traces train feasibility, scheduling, and duration guidance while motion checking remains the final verifier.AI · InfrastructureRAIL - Rutgers Agentic Intelligence LabsAn open-source, repo-native platform for agent-assisted economic and policy research, with ontology-backed analysis, data hydration, MCP tools, and an operator command center.

How it works

Interactive explainers for ideas behind this project.

AI infrastructureEvidence-Backed Think EnvelopesA think envelope turns an agent answer into a reviewable object with citations, gaps, conflicts, and next actions.AI infrastructureMarkdown Frontmatter Knowledge GraphsMarkdown becomes a lightweight knowledge graph when notes carry typed metadata and relationships with enforceable meaning.AI infrastructureMCP Tools for Agent WorkflowsMCP standardizes how AI hosts connect to servers that expose tools, resources, and prompts; the host still owns workflow policy and safety.

Browse all 29 projects →