docs(agents): generic file placement rules and CLI AGENTS.md - #4118
Conversation
- expand root AGENTS.md Code Style with cross-package file placement table - add surfaces/cli/AGENTS.md for CLI/wizard module ownership and examples - link repo map and package-local detail to the new CLI guide
Greptile code reviewThis repo uses Greptile for automated review. Before merge, aim for Confidence Score: 5/5 with zero unresolved review threads — see CONTRIBUTING.md. Run a review — add a PR comment with: Give it ~5-10 minutes (sometimes longer) for results, then fix feedback and re-trigger until you reach Confidence Score: 5/5. Optional: automate with the greploop skill. |
- remove surfaces/cli/AGENTS.md; root file-placement rules cover wizard placement - fold CLI wizard and subcommand pointers into the repo map row - drop CLI from package-local AGENTS.md examples list
|
@greptile review |
|
Docs look sound, two things you should work on:
All the links in the actual diff resolve fine. |
|
🐉 Legend says enough merged PRs and you ascend. @muddlebee is dangerously close. 🌤️ 👋 Join us on Discord - OpenSRE : hang out, contribute, or hunt for features and issues. Everyone's welcome. |

Fixes #3631
Describe the changes you have made in this PR -
AGENTS.mdCode Style with a generic File placement (all packages) section: orchestration vs shared UI vs domain modules, thin dispatch, tier boundaries, and a stop rule for provider-specific branches in multi-provider filessurfaces/cli/AGENTS.mdat the CLI package level (not wizard-only): package map forcommands/,wizard/,llm_auth/,investigation/, and file-placement examples (azure_openai.py,local_llm/, etc.)Follow-up to #4117 — codifies the refactor/placement guidance that should have been applied on the first Azure onboarding pass.
Demo/Screenshot for feature changes and bug fixes -
Docs-only change. No runtime behavior change.
Code Understanding and AI Usage
Did you use AI assistance (ChatGPT, Claude, Copilot, etc.) to write any part of this code?
If you used AI assistance:
Explain your implementation approach:
Agents were patching provider-specific logic into shared wizard files (
_ui.py,validation.py) because rootAGENTS.mdonly stated "one clear purpose per file" without actionable placement rules. This PR adds generic, repo-wide guidance at the root and a CLI-specific map atsurfaces/cli/AGENTS.md(matchingsurfaces/interactive_shell/AGENTS.mdplacement). Wizard details live under CLI rather than a nestedwizard/AGENTS.mdsocommands/,llm_auth/, andinvestigation/are covered too.Checklist before requesting a review
Note: Please check Allow edits from maintainers if you would like us to assist in the PR.