
A weekly digest from the Agentic Architect persistence kit: 7 senior C#/.NET rules for engineers keeping Cursor honest across sessions.
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.
Sun 06 Sep
async void is a deadlock and unhandled-exception trap everywhere except UI event handlers. The AI uses it routinely for "fire and forget" — wrong answer every time. Flag it on sight.
Sat 05 Sep
Value objects (Money, Address, Coordinates) should be records. Entities with identity (Order, Customer) should be classes with an Id. Cursor mixes these constantly. A rule that classifies based on the presence or absence of an identity property keeps the distinction honest.
Fri 04 Sep
Mark every class sealed unless inheritance is explicitly planned. Stops Cursor inventing accidental inheritance hierarchies "for flexibility." Small but measurable virtual-call perf wins too.
Thu 03 Sep
OrderId as record struct OrderId(Guid Value) beats raw Guid everywhere. Stops the AI passing a CustomerId where an OrderId was expected — a bug the compiler can't catch with primitive obsession but catches instantly with domain primitives.
Wed 02 Sep
Business code should never call IConfiguration directly. Strongly-typed IOptions or IOptionsSnapshot bindings only. The AI loves to "just grab the config value" — refuse it and force a settings class with validation attributes.
Tue 01 Sep
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.
Mon 31 Aug
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.
The free arch-core-lite.mdc is one drop-in Cursor rule that ends the morning re-explanation ritual. Install in 60 seconds, see whether Cursor actually remembers your DI lifetimes, and decide for yourself whether the full kit is worth £9.00.
arch-core-lite.mdc on GitHubCanonical home for everything in this digest: https://agentic-architect.dev/blog/.
mcpInstall guide and config at curatedmcp.com Linear MCP: Stop Context-Switching Between...
cursorDisclosure: DevTools Review may earn a commission if you sign up through links to Cursor or Windsurf...
cursorFor about six months I configured Cursor the way I suspect most people do. Opened settings, pasted...
aiwhy working exclusively with ai agents turns code review into the primary bottleneck, how diff literacy replaces typing, and why domain mastery is still required to spot bad changes.
mcpInstall guide and config at curatedmcp.com Vercel MCP: Debug Production Errors Without...
githubcopilotCopilot vs Cursor AI Tool Reviews & Comparisons에 대해, 수집된 공개 근거만으로 정리한 참고 글입니다. 투자·수익·의료적 확언은 포함하지...
Workflows from the Neura Market marketplace related to this Cursor resource