Every weekday a single, opinionated rule for senior C#/.NET engineers using Cursor. Here's the full week in one read — canonical posts live on the Agentic Architect blog .
7 daily senior rules
Rule 11: Rethrow, Don't throw ex
Sun 15 Nov
throw ex resets the stack trace. throw preserves it. Cursor gets this wrong about 40 percent of the time when generating catch blocks. Rewrite any naked throw ex to throw unless the exception has been explicitly wrapped.
→ Permalink on the blog
Rule 10: AsNoTracking for Reads
Sat 14 Nov
Every read-only EF Core query should call AsNoTracking. Add a rule that recognises query methods returning DTOs (not entities) and inserts the call. Cursor never does this by default and your read perf degrades silently across releases.
→ Permalink on the blog
Rule 9: Scoped Capture in Singleton
Fri 13 Nov
The single most expensive .NET runtime bug: a Singleton holding a Scoped service. Cursor cheerfully writes this without warning.…