-
-
Notifications
You must be signed in to change notification settings - Fork 2
fix: split agi-reasoning into hidden-CoT and visible-reasoning agents #185
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e0f4e8a
Initial plan
Copilot 6350a10
fix: resolve reason.prompt.md / agi-reasoning CoT inconsistency by cr…
Copilot bff4927
fix: resolve merge conflicts and address code-review feedback
Copilot 7f5acb1
fix: resolve merge conflicts and address code-review feedback
Copilot fc61153
Merge branch 'main' into copilot/fix-reason-prompt-issue
Bryan-Roe 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
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
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 |
|---|---|---|
| @@ -1,43 +1,43 @@ | ||
| --- | ||
| description: "Reason through a problem with visible chain-of-thought analysis, task decomposition, and self-reflection. Shows reasoning steps to the user, including confidence scores and verification. Use when the user wants to see the reasoning process, not just the final answer." | ||
| name: "Reason" | ||
| argument-hint: "Problem or question to analyze (example: decision + relevant context + constraints or trade-offs)" | ||
| agent: visible-reasoning | ||
| --- | ||
| Apply the AGI reasoning framework to analyze and solve the following task. | ||
| **Process:** | ||
| 1. **Analyze** — Classify the query: | ||
| - Complexity: simple | moderate | complex | ||
| - Intent: coding | architecture | debugging | optimization | explanation | creation | ||
| - Domain: quantum | ai | aria | infrastructure | general | ||
| 2. **Decompose** — Break into ordered subtasks: | ||
| - List each subtask with its dependencies | ||
| - Identify which subtasks can be parallelized | ||
| - Estimate confidence for each subtask | ||
| 3. **Execute** — Work through each subtask: | ||
| - Show your reasoning at each step | ||
| - Verify assumptions before proceeding | ||
| - Cross-reference with existing codebase patterns | ||
| 4. **Reflect** — Self-evaluate: | ||
| - Is the solution complete and correct? | ||
| - Does it follow existing codebase conventions? | ||
| - Are there edge cases or failure modes? | ||
| - Am I over-engineering? | ||
| 5. **Synthesize** — Deliver the result: | ||
| - Clear, actionable output | ||
| - Include verification steps | ||
| - Note any remaining uncertainties | ||
| **Codebase context:** | ||
| - Provider chain: Azure OpenAI → OpenAI → LMStudio → LoRA → Local | ||
| - Config: YAML < CLI < per-job YAML < env vars | ||
| - Data: read-only `datasets/`, write-only `data_out/` | ||
| - Always `--dry-run` orchestrators first | ||
| - Test: `python scripts/test_runner.py --unit` | ||
| --- | ||
| description: "Reason through a problem with visible chain-of-thought analysis, task decomposition, and self-reflection. Shows reasoning steps to the user, including confidence scores and verification. Use when the user wants to see the reasoning process, not just the final answer." | ||
| name: "Reason" | ||
| argument-hint: "Problem or question to analyze (example: decision + relevant context + constraints or trade-offs)" | ||
| agent: visible-reasoning | ||
| --- | ||
|
|
||
| Apply the AGI reasoning framework to analyze and solve the following task. | ||
|
|
||
| **Process:** | ||
|
|
||
| 1. **Analyze** — Classify the query: | ||
| - Complexity: simple | moderate | complex | ||
| - Intent: coding | architecture | debugging | optimization | explanation | creation | ||
| - Domain: quantum | ai | aria | infrastructure | general | ||
|
|
||
| 2. **Decompose** — Break into ordered subtasks: | ||
| - List each subtask with its dependencies | ||
| - Identify which subtasks can be parallelized | ||
| - Estimate confidence for each subtask | ||
|
|
||
| 3. **Execute** — Work through each subtask: | ||
| - Show your reasoning at each step | ||
| - Verify assumptions before proceeding | ||
| - Cross-reference with existing codebase patterns | ||
|
|
||
| 4. **Reflect** — Self-evaluate: | ||
| - Is the solution complete and correct? | ||
| - Does it follow existing codebase conventions? | ||
| - Are there edge cases or failure modes? | ||
| - Am I over-engineering? | ||
|
|
||
| 5. **Synthesize** — Deliver the result: | ||
| - Clear, actionable output | ||
| - Include verification steps | ||
| - Note any remaining uncertainties | ||
|
|
||
| **Codebase context:** | ||
| - Provider chain: Azure OpenAI → OpenAI → LMStudio → LoRA → Local | ||
| - Config: YAML < CLI < per-job YAML < env vars | ||
| - Data: read-only `datasets/`, write-only `data_out/` | ||
| - Always `--dry-run` orchestrators first | ||
| - Test: `python scripts/test_runner.py --unit` |
Oops, something went wrong.
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.
The updated provider chain states
AGIandQuantumare checked before Azure/OpenAI, butdetect_provider()only enters those branches when the user explicitly sets--provider agior--provider quantum(ai-projects/chat-cli/src/chat_providers.pyaround lines 1370-1404), and auto mode skips directly from LM Studio/Ollama to Azure/OpenAI/local (1498-1549). This mismatch can cause the visible reasoning agent to give incorrect troubleshooting or routing advice for default/reasonruns because it describes an auto-fallback order that does not exist.Useful? React with 👍 / 👎.