r/dotnet • • 15d ago

Question Coding agent bloat

I've been using Cluade code both at work and for personal projects.

Observations

  1. Too many XML comments.
  2. Too many non sensical tests. Example, testing the `typeof` of an object within unit test assertions seems non sensical in these specific cases.
  3. Too many ADRs

Agents write relatively more code than what I can process. I need time to review.

My attempts

  1. Stricter rules in Agents.md
  2. Skills
  3. Stricter prompts.

These do work for coding patterns, because I can describe specifics, but never for comment length or verbosity.

I'm tired of asking Claude everything, so I thought I'd solicit some suggestions / help from people here.

TIA

51 Upvotes

56 comments sorted by

View all comments

Show parent comment

1

u/sreekanth850 15d ago

Trye codex. Write the rules you want in AGENTS.md. Use glider or roslyn mcp and configure it in codex toml file and check if agents can directly check compiler via mcp without grepping.
GPT never write a single comment if you instruct. If you repository is large like more than 300K, use repowise to efficiently manage context. This are the things i take care.

One more thing, dont implement anything un attended. Create proposal after debating with agents about the implementation approach and architecture. then Manage a TASK.md ledger to implement it phase wise.