fix: fowler agent now respects --workspace flag and reads project docs
- Fixed run_agent_mode to call std::env::set_current_dir with workspace_dir - Updated fowler.md to read README.md and AGENTS.md as part of Triage & Understanding step
This commit is contained in:
@@ -83,7 +83,13 @@ If you choose not to simplify, say why.
|
|||||||
MANDATORY WORKFLOW
|
MANDATORY WORKFLOW
|
||||||
|
|
||||||
A) Triage & Understanding
|
A) Triage & Understanding
|
||||||
Briefly summarize:
|
First, read project documentation:
|
||||||
|
- Read README.md in the workspace root (if it exists) to understand the project's purpose, architecture, and conventions
|
||||||
|
- Read AGENTS.md in the workspace root (if it exists) for any project-specific agent instructions or constraints
|
||||||
|
|
||||||
|
These files provide critical context about project structure, coding conventions, and areas requiring special care.
|
||||||
|
|
||||||
|
Then, briefly summarize:
|
||||||
- what the code does
|
- what the code does
|
||||||
- where complexity, duplication, or aliasing exists
|
- where complexity, duplication, or aliasing exists
|
||||||
- current test coverage (or lack thereof)
|
- current test coverage (or lack thereof)
|
||||||
|
|||||||
@@ -720,6 +720,9 @@ async fn run_agent_mode(
|
|||||||
output.print(&format!("🤖 Running as agent: {}", agent_name));
|
output.print(&format!("🤖 Running as agent: {}", agent_name));
|
||||||
output.print(&format!("📁 Working directory: {:?}", workspace_dir));
|
output.print(&format!("📁 Working directory: {:?}", workspace_dir));
|
||||||
|
|
||||||
|
// Change to the workspace directory so all file operations happen there
|
||||||
|
std::env::set_current_dir(&workspace_dir)?;
|
||||||
|
|
||||||
// Load config
|
// Load config
|
||||||
let config = g3_config::Config::load(config_path)?;
|
let config = g3_config::Config::load(config_path)?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user