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

Markdown as Protocol for Agentic UI with Streaming Execution
A prototype uses Markdown as a unified protocol for AI agents to stream text, executable code, and data in a single response. It features streaming execution where code runs statement-by-statement as it arrives and a mount() primitive for creating React UIs with data flow between client, server, and LLM.

apple-music-play OpenClaw skill published on ClawHub for Apple Music search and playback
The apple-music-play skill published on ClawHub enables searching Apple Music's online catalog and playing tracks directly in the macOS Music app, without requiring songs to be in your local library.

Kubeez MCP Server Connects Claude to 70+ AI Media Models
Kubeez has released an MCP server that connects Claude to over 70 AI models for image, video, music, and voice generation. The server supports OAuth authentication and provides async generation with Claude polling for status and returning CDN URLs.

Workaround for ChatGPT Project Migration Gap: Export Scripts and Prompts
A developer created Python scripts and Claude prompts to migrate conversations from ChatGPT to Claude when ChatGPT's data export lacks project membership information. The solution extracts conversations using titles captured from the interface.