Simplified Chinese | English
MindFlow is an AI-native autonomous decision system for knowledge management, cognitive evolution, and task execution.
It is not just a multi-agent orchestrator, and it is not just a knowledge base. It is closer to an editable digital persona system: you define a Soul, let the system absorb methodology and working styles that match your standards, internalize them into Capability components, execute work through those capabilities, reflect on outcomes, strengthen cognition, and keep evolving without drifting away from your own principles.
This repository currently provides:
- runtime protocol
- directory rules
- module documentation
- file templates
- learning and review promotion paths
It is not a finished application with a built-in automatic executor, but it is still a complete system design.
Individuals and organizations usually face the same problems in knowledge work:
- methodology never truly enters the system
- important preferences, principles, and ways of working stay in people’s heads or scattered documents
- AI drifts easily
- without stable constraints, output drifts away from personal or organizational standards
- knowledge does not automatically become capability
- what gets learned often remains documentation instead of becoming reusable execution units
- task execution and knowledge accumulation are disconnected
- work gets done, but the experience does not become the next stable capability
- ordinary agent workflows can execute, but they do not self-correct under a stable philosophy
- there is no durable mechanism for learning, reflection, and cognitive strengthening
MindFlow is designed as a set of stable layers:
Soul- defines long-term standards, preferences, taboos, and methodological direction
Learning- reads formal knowledge before work and pushes new knowledge through a reviewed promotion path after work
Mind- owns system-level cognition such as recognition, analysis, execution, execution control, reflection, and inference
Capability- turns learning outcomes into executable components
Plan + Step- turns a task into a formal execution file and runs through file-based handoff
Task State- persists runtime state so recovery, parallel merge, and resumption are controllable
So the intended system behavior is not “do a task and maybe write some notes after.”
Instead it works like this:
- read formal knowledge under the guidance of
Soul - recognize and analyze the task through
Mind - generate a formal
Plan - execute through
Capabilityunits - reflect, learn, review, consolidate, and upgrade capability
For stable real execution, MindFlow also requires a formal runtime state surface:
- what phase the task is currently in
- which step is currently active
- which steps are completed, failed, or blocked
- where parallel branches are waiting to merge
- whether the task is ready to enter
Reflection
Step does not only support sequential execution. It also supports parallel execution:
- some
Steps run sequentially - some
Steps may run in parallel - parallel branches may expand into multiple concurrent
TasksorSubagents - the results of parallel branches still converge through file-based handoff
MindFlow does not pre-fill a worldview, but it requires a Soul structure first.
The purpose is not roleplay. The purpose is to give the system a highest constraint layer:
- what counts as a good result
- which methods are preferred
- what must not be done
- what is worth learning
- what must never be promoted into the system
In MindFlow, the goal of learning is not to pile up documents. The goal is for approved knowledge to eventually become callable capability.
That means:
- documents are intermediate states
Capabilityis the formal executable shape of learning
MindFlow does not rely on implicit context passing.
It requires:
- a formal
Plan - multiple
Steps inside the plan - file handoff through
cache/ - final results written into
_output/
This makes tasks reviewable, auditable, reproducible, and constrainable.
After execution, the system must enter Reflection -> Learning.
This is not just for writing a summary. It is for:
- detecting problems
- identifying what is worth learning
- discovering capability gaps
- strengthening cognition and capability
- preventing the system from drifting away from reality over time
MindFlow is therefore a task system with a built-in self-cultivation loop.
The execution layer of MindFlow is effectively MAS.
Not because “multi-agent” sounds advanced, but because real knowledge work naturally requires multiple kinds of capability:
- some capabilities research
- some structure information
- some perform concrete actions
- some evaluate outputs
Breaking work into multiple Capability units coordinated by Plan + Step gives practical advantages:
- clear capability boundaries
- easier maintenance of each unit
- more stable task decomposition
- less context contamination through file-based handoff
- better local reflection and capability upgrade after each task
Plan therefore does not require all Steps to be serial.
When the task fits parallelization, Steps may run in parallel to improve execution efficiency for complex work.
So MindFlow is not “MAS first, then find a use case.” It is “knowledge work naturally requires capability division, so the execution layer uses MAS.”
When a task is run under the MindFlow protocol, it must follow this flow:
Task -> Learning(Read) -> Recognition -> Analysis -> Planning -> Execution Control -> Reflection -> Learning
Learning(Acquire) may be triggered conditionally during Execution Control (mid-step) or after Reflection (post-reflection) — see SYSTEM.md §Phase Transition Protocol for details.
This means:
Learning(Read)- reads approved and consolidated formal knowledge
Recognition- identifies the task and produces
Task Profile
- identifies the task and produces
Analysis- decomposes the task and produces
Analysis Output
- decomposes the task and produces
Planning- produces the formal
Plan
- produces the formal
Execution Control- advances
Steps according to the formalPlan - manages serial execution, parallel execution, merge, and failure handling
- advances
Plan- organizes multiple
Steps
- organizes multiple
Step- calls different
Capabilityunits - may run sequentially or in parallel
- calls different
Reflection- reviews the completed task and produces
Reflection Report
- reviews the completed task and produces
Learning- moves task experience into the learning pipeline, eventually forming formal knowledge or capability updates
Soul
|
constraints on every stage
|
.--------------------------------------------------------.
| | | | |
v v v v v
Task --> Learning(Read) --> Recognition --> Analysis --> Planning
^ |
| v
| Plan
| |
| v
| Execution Control
| |
| v
| Step
| |
| v
| Capabilities
| |
| v
| tasks/{task-id}/_output/
| |
| v
| Reflection
| |
| v
| Learning
| |
| v
'------------------------- Approved Knowledge / Capability Update
The diagram above shows how a task flows through the system, so it is a flow diagram, not the architecture diagram.
Under the current repository rules, MindFlow uses two different result locations:
- default task result directory:
tasks/{task-id}/_output/ - optional publish-back directory:
sources/
Rules:
- the system flow depends on
_output/ Reflectionreads_output/by default- writing back to
sources/is only allowed when explicitly declared inPlan
That means:
_output/is the formal internal task result locationsources/is the business material and publication location
MindFlow/
├── README.md
├── README-CN.md
├── SYSTEM.md
├── CLAUDE.md
├── mind/
│ ├── soul/
│ ├── recognition/
│ ├── analysis/
│ ├── planning/
│ ├── execution-control/
│ ├── reflection/
│ ├── learning/
│ │ ├── learning-read/
│ │ ├── knowledge-base/
│ │ │ ├── approved/
│ │ │ ├── drafts/
│ │ │ └── archived/
│ │ ├── task-learning/
│ │ ├── reviews/
│ │ └── capability-updates/
│ └── inference/
├── capabilities/
├── sources/
└── tasks/
┌────────────────────────────────────────────────────────────────────────────┐
│ Entry Layer │
│ User / External Trigger │
└────────────────────────────────┬───────────────────────────────────────────┘
│
v
┌────────────────────────────────────────────────────────────────────────────┐
│ MindFlow Core │
│ │
│ Mind ──┬── Soul │
│ ├── Learning(Read) │
│ ├── Recognition │
│ ├── Analysis <··· Inference (conditional) │
│ ├── Planning │
│ ├── Execution Control │
│ ├── Reflection <··· Inference (conditional) │
│ ├── Learning(Terminal) <··· Inference (conditional) │
│ └── Inference │
└────────────────────────────────┬───────────────────────────────────────────┘
│
┌────────────────────────────┼──────────────────────────────┐
v v v
┌──────────────┐ ┌───────────────────────────────┐ ┌───────────────────────┐
│ Material │ │ Task System │ │ Capability System │
│ Layer │ │ │ │ │
│ Sources ────┼─>│ Task │ │ Capabilities <──┐ │
│ <·· Plan │ │ └─> Learning(Read) │ │ │ │ │
│ (publish- │ │ └─> Recognition │ │ v │ │
│ back) │ │ └─> Analysis │ │ (called by │ │
└──────────────┘ │ └─> Exec │ │ Step) │ │
│ └─>Plan │ └──────┬───────────┘ │
│ Plan ─> Exec │ │ │
│ Ctrl │ │ │
│ Exec Ctrl │ │ │
│ └─> Step ───┼────> Capabilities │
│ │ │ │ │
│ Task Cache <─┼──────┘ │ │
│ Task Output<─┼──────────────┘ │
│ │ │ │
│ v │ │
│ Reflection │ │
│ │ │ │
│ v │ │
│ Reflection Report │ │
└───────────────────┬───────────┘ │
│ │
v │
┌─────────────────────────────────────────────────────────────────────┐ │
│ Learning System │ │
│ │ │
│ Learning(Terminal) │ │
│ └─> Task Learning │ │
│ └─> Draft Knowledge ───> Archived Knowledge │ │
│ └─> Review │ │
│ ├─> Approved Knowledge ──> Learning(Read) │ │
│ └─> Capability Update ──────────────────────────┼──>───┘
│ │
│ Learning(Acquire) — conditional │
│ (triggered by Step or Reflection on knowledge gap) │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Search (record candidate URLs) │ │
│ │ └─> Fetch & Preserve (save verbatim to raw-sources/) │ │
│ │ └─> raw-sources/src-NNN-slug.md │ │
│ │ └─> Verify (independent subagent) │ │
│ │ └─> passed sources only ──> Task Learn │ │
│ └──────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────┘
The diagram above is the architecture diagram. It shows the structural relationship between the core concepts, systems, and artifact layers.
This repository is intended for people or organizations who want to define their own knowledge system, runtime rules, learning chain, and capability evolution mechanism.
Typical usage:
- define
Soulinmind/soul/core.md - define or extend
Capabilityfiles undercapabilities/ - place project materials in
sources/ - create
tasks/{task-id}/ - run the task according to the formal MindFlow protocol
- let task-end
Learningpromote reusable knowledge and capability updates
MindFlow is different from the following common systems:
- a plain knowledge base
- because it does not stop at storage; it turns approved learning into executable capability
- a plain workflow engine
- because it is constrained by
Souland has built-in reflection and learning promotion
- because it is constrained by
- a plain agent loop
- because it uses formal artifacts, runtime state, file-based handoff, and a review-controlled promotion path
- a multi-agent orchestrator for its own sake
- because MAS is only the execution layer, not the identity of the whole system
