Agent Kernel: Three Markdown Files for Stateful AI Agents

What Agent Kernel Does
Agent Kernel is a minimal implementation that makes AI coding agents stateful using three markdown files and a git repository. Instead of requiring databases, vector stores, or custom frameworks, it leverages the existing mechanism where agents read project instructions from files like AGENTS.md, CLAUDE.md, or .cursorrules.
Core Components
The kernel consists of three markdown files:
AGENTS.md– The kernel itself (generic, don't edit)IDENTITY.md– Defines who the agent is (maintained by the agent)KNOWLEDGE.md– Index of knowledge files (maintained by the agent)
Two directory structures handle different types of memory:
knowledge/– Contains state information: facts about how things are right now. The agent updates these when reality changes.notes/– Contains narrative information: daily session logs that record decisions, actions, and open items. These are append-only and never modified after the day ends.
Setup and Usage
Basic setup with any coding agent:
git clone https://github.com/oguzbilgic/agent-kernel.git my-agent
cd my-agent
opencode # or claude, codex, cursor, etc.With kern-ai (a runtime built for agent-kernel that adds daemon mode, Telegram, and Slack integration):
npx kern-ai init my-agent
npx kern-ai tuiWhen an agent first reads the kernel, it recognizes it's new and asks who you want it to be. Once configured, it remembers across sessions.
Multiple Agents and Architecture
Each agent runs in its own repository. To create another agent:
git clone https://github.com/oguzbilgic/agent-kernel.git another-agent
cd another-agent
opencode # or claude, codex, etc.This allows running multiple specialized agents (homelab, investing, health) with the same kernel but different identities and knowledge bases.
How It Works
The approach works because AI agents already read files like AGENTS.md as project instructions. The kernel teaches the agent how to remember by providing a file that says "you are stateful, here's how" and using the git repository to store memory in plain markdown files.
📖 Read the full source: HN AI Agents
👀 See Also

Clawion: OpenClaw wrapper with Claude Max support and GitHub integration
Clawion is an OpenClaw wrapper that supports Claude Max without requiring an API key. Setup involves picking a template, connecting Telegram, and deploying a code companion with GitHub integration for automated PR creation.

SquarePact Word Add-In Connects to OpenClaw Gateway for Agentic Document Editing
SquarePact's Word add-in connects to your own OpenClaw gateway over websocket. The agent proposes edits shown as approval cards, with stale edit detection and retry logic for malformed JSON from smaller models.

LLMock: HTTP-based mocking server for deterministic LLM testing across processes
LLMock is a real HTTP server that mocks OpenAI, Claude, and Gemini APIs, allowing developers to run deterministic tests across multiple processes without hitting real APIs. It supports SSE streaming, tool calls, predicate routing, and request journaling with zero dependencies.

Ollama Update Adds OpenClaw Support for Kimi k2.5 Cloud Model
Ollama has released an update that integrates OpenClaw support for cloud models, including free access to the Kimi k2.5 model with web search functionality, running on NVIDIA data centers.