-
Notifications
You must be signed in to change notification settings - Fork 8
Add Multiple Agents Info #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pinkeshmars
wants to merge
2
commits into
main
Choose a base branch
from
feature/multiple-agents
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -239,7 +239,7 @@ Add a login screen. | |
|
|
||
| #### Supported Rule Files | ||
|
|
||
| Dreamflow looks for one of the following files in your project root: | ||
| Dreamflow scans for the following rule files in your project, in this priority order: | ||
|
|
||
| | Priority | Filename | Typical Purpose | | ||
| | --- | --- | --- | | ||
|
|
@@ -249,9 +249,7 @@ Dreamflow looks for one of the following files in your project root: | |
| | 4️⃣ | [**ARCHITECTURE.md**](https://architecture.md/) | Documents your project’s structure, data flow, and design philosophy for better context. | | ||
|
|
||
| :::info | ||
|
|
||
| Only the **first file found** in this order is loaded. If multiple exist, Dreamflow stops scanning after the first match. For example, if .cursorrules exists, it will be used even if `AGENTS.md` is also present. | ||
|
|
||
| Dreamflow loads only the first matching file based on priority. For example, if `.cursorrules` exists, Dreamflow will ignore `CLAUDE.md`, `AGENTS.md`, and `ARCHITECTURE.md`. | ||
| ::: | ||
|
|
||
| When any of the supported rule files is loaded into the Agent’s context: | ||
|
|
@@ -310,18 +308,46 @@ features/[feature]/presentation/ | |
| - Sanitize UI error messages. | ||
| ``` | ||
|
|
||
| **Step 2: Place File in Project Root** | ||
| **Step 2: Place File in Your Project** | ||
|
|
||
| You can add project rules at **two levels**: | ||
|
|
||
| Upload the rule file at the **same level as `pubspec.yaml`**. Dreamflow **does not** scan subfolders. It should look like this: | ||
| **1. Root-level Rule File:** Place a global rule file (e.g., `AGENTS.md`, `.cursorrules`, `CLAUDE.md`, or `ARCHITECTURE.md`) in the **project root**, beside `pubspec.yaml`. | ||
|
|
||
|
||
| - This file has **global scope**. | ||
| - It is **always loaded** before every Agent action, no matter which part of the project you're working in. | ||
| - Use it only for your **most important, universal rules**, such as: | ||
| - Architecture pattern (BLoC, Riverpod, MVVM…) | ||
| - Folder structure | ||
| - Naming conventions | ||
| - Coding style | ||
| - Security guidelines | ||
|
|
||
|  | ||
|
|
||
| **2. Nested Rule File (Feature-Specific Rules)**: You may also create **`AGENTS.md` files inside subfolders**, such as: | ||
|
|
||
| ``` | ||
| /features/auth/AGENTS.md | ||
| /features/chat/AGENTS.md | ||
| /lib/widgets/common/AGENTS.md | ||
| ``` | ||
|
|
||
| Dreamflow will load these **only when the Agent is generating or editing code inside that folder**. Use nested rule files for: | ||
|
|
||
| - Feature-specific architecture | ||
| - Module boundaries | ||
| - API constraints | ||
| - UI or widget conventions | ||
| - Domain-level rules | ||
|
|
||
| **Step 3: Run Agent Action** | ||
|
|
||
| You can view or edit your rule file anytime from the Dreamflow File Editor. Once it’s saved, run any Agent command (for example, “Add a login screen”). Dreamflow will automatically load your rules and apply them to every generation. | ||
|
|
||
| #### Best Practices | ||
|
|
||
| - Keep the root-level `AGENTS.md` small and focused. | ||
| - Use nested `AGENTS.md` files for detailed, module-specific rules to avoid bloating the Agent’s context. | ||
| - Keep the rule file specific, short, and imperative. | ||
| - Keep must-follow standards at the top of the file. | ||
| - Avoid overly long explanations — keep it concise and readable. | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we: