fainir/most-capable-agent-system-prompt

890 stars · Last commit 2026-11-27

A copy-paste system prompt that has your coding agent (Claude Code, Codex, Cursor) build a self-improving agent system for any computer work. Try the lead follow-up demo at the website link.

README preview

# Most Capable Agent System Prompt

[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

A copy-paste system prompt for people who use coding agents like Claude Code, Codex, or Cursor: paste it in, and your agent starts building a durable, self-improving agent system for general computer work.

Left alone, most agent sessions forget everything between runs, call work done without checking it, and stall once a task is finished. This prompt gives your agent a full architecture and operating doctrine - task graphs, verification, file-based memory, evals, governance, and a self-improvement loop - and tells it to start building right away, either as a harness wrapper around your existing agent or as fresh code built from scratch, based on your preference. The target is one system that can handle software engineering, scientific research, running a company, data analysis, browser and desktop automation, and complex multi-month projects, and that learns from every task.

**What the agent is told to do:**

- Inspect your workspace, ask only the questions it cannot answer itself, and write a runtime capability matrix and an implementation contract.
- Set up a file-based project operating system (`AGENTS.md`, `plan.md`, `tasks.md`, `knowledge.md`, `FAILURE.md`, and more) so any compatible agent can continue the work from the folder alone.
- Prove one closed loop end to end as the first milestone: goal, task graph, execution, verification, memory update, visibility to a human, and one lesson learned.
- Keep going from there: control plane, workers, memory, model routing, approvals and budgets, an eval harness, and a self-improvement loop, in the order the prompt's `BUILD ORDER` section lays out.

![Most Capable Agent System Architecture](most_capable_agent_system_architecture.svg)

> **Want a ready-made version today?** [agent-harness](https://github.com/fainir/agent-harness) packages the operating rules this prompt asks your agent to build (done means verified with evidence, ledgers that keep long work going, one owner action at a time) as installable skills and hooks for Claude Code and Codex. Use this prompt to have your agent build its own system; use agent-harness to start from a working one.

[Request a free setup review](https://aiyourwork.chat/services?utm_source=github&utm_medium=readme&utm_campaign=agent-harness-setup#implementation-request) to plan a harness installation in one repository. Share the coding agent you use and one workflow you want to verify. We agree on scope and price before any paid work.

View full repository on GitHub →