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

Developer shares CLI tools that work well with Claude Code
A developer switched from MCPs to CLIs for working with Claude Code, finding that Claude handles CLI commands effectively due to training on shell scripts and documentation. They shared specific CLIs they use daily, including gh, ripgrep, stripe, supabase, vercel, sentry-cli, and neon.

Gemini 3.1 Pro in Multi-Agent Systems: High Design Quality, 20% Tool-Call Failure Rate
Developers building Bobr, an AI presentation generator with a multi-agent architecture, report Gemini 3.1 Pro produces impressive design output but suffers from a ~20% tool-call failure rate and garbled text corruption in production pipelines.

ClawWatcher Reaches 200 Users, Reports $28K+ in Collective OpenClaw API Savings
ClawWatcher, a tool that tracks OpenClaw API costs in real-time, has reached 200 users. According to its creator, users have collectively saved over $28,000 in API costs, with an average cost reduction of 45%.

HostMyClaudeHTML: One-Click Sharing for Claude HTML Artifacts
A developer built hostmyclaudehtml.com, a free tool that lets you share Claude-generated HTML artifacts as live URLs by dragging and dropping the .html file. No account is required for uploaders or viewers.