flux
AGENTS.md102 starsChanged 11 months agoMITView on GitHub
Flux is a Kanban board application with multi-project support, designed for both web UI and AI assistant integration via MCP (Model Context Protocol). It's a TypeScript monorepo with five packages sharing a common data store. This repo uses Flux to manage itself. Tasks live on flux-data branch: Key architectural decisions: - CLI is the core, works standalone with git-native sync - Server is optional - aggregates tasks across multiple repos - Each repo has .flux/data.json synced via flux-data branch -…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 134
All work belongs to exactly one project.
- Distinctive: line 146
Don't start a task whose dependencies aren't done.
- Distinctive: line 151
When you discover new work, create a task for it (with acceptance criteria) rather than expanding the current task's scope.
- Very specific: line 154
If context is lost: stop, re-list projects and tasks, and ask the user if ambiguity remains.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This file provides guidance to AI agents when working with code in this repository.
Project Overview
Flux is a Kanban board application with multi-project support, designed for both web UI and AI assistant integration via MCP (Model Context Protocol). It's a TypeScript monorepo with five packages sharing a common data store.
Dogfooding
This repo uses Flux to manage itself. Tasks live on flux-data branch:
flux pull # Get latest tasks
flux ready # Show unblocked tasks
flux push "message" # Push task changesCommon Commands
Development
# Start API server (port 3000)
bun --filter @flux/server dev
# Start web dev server (port 5173, proxies API to :3000)
bun --filter @flux/web devBuild & Test
bun run build # Build all packages
bun run typecheck # Type check all packages
bun run test # Run testsCLI
cd packages/cli && bun link # Link globally
flux init # Initialize in a repo
flux ready # Show ready tasks
flux task create <project> <title> -P 0 # Create P0 taskDocker
docker build -t flux-mcp .
# Mount repo's .flux directory (SQLite for better concurrency)
docker run -d -p 3000:3000 -v $(pwd)/.flux:/app/packages/data -e FLUX_DATA=/app/packages/data/flux.sqlite flux-mcpArchitecture
CLI (core, standalone) Server (optional)
├── Per-repo .flux/ ├── Web dashboard for .flux/
├── Git-native sync ├── SSE for live updates
├── Works offline ├── Future: multi-repo aggregator
└── Zero dependencies └── Reads same JSON as CLIpackages/
├── cli/ # CLI tool - core, standalone
├── shared/ # Core types and storage abstraction
├── web/ # Preact frontend (optional dashboard)
├── server/ # Multi-repo aggregator (optional)
└── mcp/ # MCP server for LLM integrationKey architectural decisions:
- CLI is the core, works standalone with git-native sync
- Server is optional - aggregates tasks across multiple repos
- Each repo has
.flux/data.jsonsynced viaflux-databranch - Tasks have P0/P1/P2 priority levels for agent task ordering
- Tasks can depend on other tasks/epics; blocked tasks show visual indicators
Data Model
type Task = {
id: string;
title: string;
status: 'planning' | 'todo' | 'in_progress' | 'done';
depends_on: string[];
comments?: TaskComment[]; // Add with --note for agent memory
epic_id?: string;
project_id: string;
priority?: 0 | 1 | 2; // P0=urgent, P1=normal, P2=low
created_at?: string;
updated_at?: string;
};
type Epic = {
id: string;
title: string;
status: string;
depends_on: string[];
notes: string;
project_id: string;
};
type Project = {
id: string;
name: string;
description?: string;
};Tech Stack
- CLI: Bun, TypeScript
- Frontend: Preact, Vite, Tailwind CSS, DaisyUI, @dnd-kit
- Backend: Hono, Bun
- Data: JSON file (
.flux/data.json), git-native sync - LLM Integration: @modelcontextprotocol/sdk
- Build: TypeScript 5.6, Bun workspaces
Requirements
- Bun 1.0+
<!-- FLUX:START -->Flux Task Management
You have access to Flux for task management, via MCP tools or the flux CLI.
Project scope:
- All work belongs to exactly one project. On startup, list projects
(
flux project list), then select or create one and confirm its project_id before doing any work. - Include that project_id in every Flux call. Never guess a project_id, and never switch projects without explicit instruction.
Working a task:
- Track all work as tasks. Pick the next task with
list_ready_tasks(orflux ready) — it excludes blocked tasks and sorts by priority (P0 first). - Set status to in_progress when you start and done as soon as you finish. Tasks in planning must move to todo before in_progress.
- Pass your agent_name on status changes so the board shows who is working.
- Don't start a task whose dependencies aren't done.
Memory and scope:
- Record decisions, findings, and blockers as task comments — they are your memory across sessions. Check a task's comments before starting it.
- When you discover new work, create a task for it (with acceptance criteria) rather than expanding the current task's scope.
If context is lost: stop, re-list projects and tasks, and ask the user if ambiguity remains.
<!-- FLUX:END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

