The DEVFLOW.md file
The .app_context/ folder and its DEVFLOW.md file: the local source of truth the AI reads so it never gets confused.
When you import or initialise a project, DevFlow AI creates the .app_context/ folder at its root. It is the project's persistent memory: any agent (or person) picking up the work starts by reading this folder instead of asking you to explain everything again.
.app_context/ structure
.app_context/
βββ DEVFLOW.md β single source of truth of the project
βββ handover_state.json β compressed state for the next chat
βββ architecture.json β detected stack and structure
βββ dev_rules.md β development rules for the agents
βββ progress_log.md β chronological progress log
βββ scheduled_tasks.json β readable copy of the scheduled tasks
βββ agents/ β each agent's own instructions
βββ skills/ β project skills (one folder with a skill.json each)
Why the AI does not get confused
Without a source of truth, every model "guesses" the architecture from what it sees in the conversation, and two different chats can make contradictory decisions. With .app_context/:
- Every request starts from the same base: the System Prompt always includes
DEVFLOW.md, even if you switch models or chats. DEVFLOW.mdtakes precedence: if a skill or a message contradicts its rules,DEVFLOW.mdwins.- The state is explicit: the last completed task and the pending ones are written down, not inferred from the history.
- It is local and readable: they are text files in your repository; you can read them, fix them and review them in Git.
The DEVFLOW.md file
It is the central file. It contains:
- Overview of the project.
- Architecture rules: layers, patterns and decisions that must not be broken.
- Conventions: naming, comment language, code style.
- Unified state: last completed task, pending tasks and open decisions.
- Agents: reference to the instructions in
.app_context/agents/.
On every request, DevFlow AI includes the DEVFLOW.md rules in the System Prompt, so the model respects your architecture without you having to repeat it.
How it stays up to date
- Micro-handover: when old turns leave the context window, the local engine condenses them and updates
handover_state.jsonand the state section ofDEVFLOW.md. - Manual handover: when you click π Handover, the session is summarised (decisions, done and pending tasks, files touched) and the new chat starts from that state.
- Manual editing: you can open and edit
DEVFLOW.mdlike any other file. If you change a rule, the next message already takes it into account. - Pending items as reminders: unchecked boxes (
- [ ] task) and lists under "Pending tasks" are shown in a notice every time you open the project (see "Scheduled tasks & reminders").
Best practices
- Commit
.app_context/to Git: the context then travels with the repository and is shared by the whole team. - Write concrete, verifiable rules ("controllers never access the database directly") instead of general wishes.
- Keep
DEVFLOW.mdshort: it is context that travels with every request. Long details belong indev_rules.mdor in the project documentation.
The
.app_context/files are protected by crash recovery: if the app closes unexpectedly while writing them, they are restored from the last valid copy.
Last updated: November 26, 2026