The canonical specification and JSON Schema for the Brainfile task management protocol.
Brainfile is a protocol-first task management system designed for AI-assisted development. It uses a simple YAML-based format in brainfile.md files that both humans and AI agents can understand.
The JSON Schema is available at:
- Canonical URL:
https://brainfile.md/v1 - GitHub:
brainfile.schema.json(this repo) - Formats: JSON (
v1.json), YAML (v1.yaml)
In your brainfile.md file:
---
schema: https://brainfile.md/v1
title: My Project
# ... rest of your config
---Add these instructions to your agent configuration file (AGENTS.md, CLAUDE.md, .cursorrules, etc.):
# Task Management Rules
- review and follow rules in @brainfile.md
- update task status in @brainfile.md as you work (todo → in-progress → done)
- reference `schema` in the file for how to create tasks
- your existing tools do not modify this file, you need to edit it directlyRecommended: Keep only these minimal instructions in your agent config file, and use brainfile.md for project-specific rules and context. This keeps agent instructions clean and portable across projects.
Download the fully-featured example:
curl -o brainfile.md https://raw.githubusercontent.com/brainfile/protocol/main/example/brainfile.mdThis includes multiple columns, tasks with metadata, project rules, and AI agent instructions.
Alternative: Use the CLI tool to initialize a minimal brainfile:
npm install -g @brainfile/cli
brainfile initAdd the instructions above to your AGENTS.md, CLAUDE.md, or .cursorrules file. That's it.
Optional: Add this comment to your README to auto-load the board:
<!-- load:brainfile.md -->Complete documentation is available at brainfile.md
The site includes:
- Protocol specification
- AI agent integration guide
- Core library API reference
- CLI tool documentation
- VSCode extension guide
This repository is deployed to brainfile.md via GitHub Pages. The documentation is built using Astro Starlight from the docs/ directory.
Schema Endpoints:
https://brainfile.md/v1.json- JSON Schemahttps://brainfile.md/v1/- Schema directory
Example brainfile.md files are in the example/ directory.
The Brainfile ecosystem consists of multiple repositories:
- @brainfile/core - TypeScript/JavaScript library for parsing and manipulating brainfiles
- @brainfile/cli - Command-line tool for task management
- brainfile/vscode - VSCode extension with kanban board UI
See CONTRIBUTING.md for contribution guidelines.
MIT License - see LICENSE
