docs: update build and formatting instructions in AGENT.md

This commit is contained in:
Andrew Phillips
2025-09-15 17:25:58 -03:00
committed by Andrew Phillips (aider)
parent b538e2f8c1
commit a8871a9575
2 changed files with 28 additions and 7 deletions

View File

@@ -56,10 +56,21 @@
### Fix build problems ### Fix build problems
Use this plan with sequential thinking: 1. Build the project: `TERM=dumb cargo build`.
- Check the project using `TERM=dumb cargo check` 2. If there are errors or warnings, create a new sub agent (expert rust developer) that uses the `TERM=dumb cargo build` output as input, planned using strategic thinking.
- Identify the cause of any errors and warnings a. Read all affected files
- If there are no errors or warnings, stop d. Plan the fixes using strategic thinking:
- If there are errors are warnings, create a plan to fix errors and warnings - Read other files if they provide context or examples
- Fix the files one at a time, not in parallel - Look up relevant API information
- Use the `write_file` tool to output the complete version of the corrected file - Do not downgrade versions
- Preserve functionality
- Use `TERM=dumb cargo fix` if appropriate.
- Prefer the `write_file` tool if there is evidence of double escaping
- You must generate the full file contents when using `write_file` or it will be truncated.
c. Return the list of files modified
3. If any files were modified, loop back to 1.
### Fix formatting
1. Format the project the project: `TERM=dumb cargo fmt`
2. Continue with the fix build problems procedure.

10
Cargo.lock generated
View File

@@ -649,6 +649,15 @@ dependencies = [
"dirs-sys", "dirs-sys",
] ]
[[package]]
name = "dirs"
version = "6.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e"
dependencies = [
"dirs-sys",
]
[[package]] [[package]]
name = "dirs-sys" name = "dirs-sys"
version = "0.5.0" version = "0.5.0"
@@ -1377,6 +1386,7 @@ dependencies = [
"ctor", "ctor",
"derive_more", "derive_more",
"directories", "directories",
"dirs",
"dns-lookup", "dns-lookup",
"enum-map", "enum-map",
"flate2", "flate2",