
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 02 Aug
Never let Cursor hardcode DateTime.Now or DateTime.UtcNow in business logic. Inject TimeProvider (or your own IClock) instead. This makes time deterministic for tests and stops the AI reaching for static APIs whenever it generates time-aware code.
Sat 01 Aug
Use MapGroup and EndPoints for .NET 9 services. It keeps the context window lean and focused, helping the AI provide more accurate code suggestions than it can with massive, bloated Controllers.
Fri 31 Jul
Every MediatR Request must have a FluentValidation rule. Force the AI to check the validator before writing handler logic. This prevents "context rot" where the AI forgets your business constraints.
Thu 30 Jul
Enforce ILogger with structured templates. Never use string interpolation in logs. This ensures that when you feed logs back into Cursor for debugging, the AI recognizes the patterns immediately.
Wed 29 Jul
Never let the AI write database logic in your Controllers. Enforce a strict boundary where all IQueryable access stays in the Infrastructure layer. This keeps your business logic "pure" and readable for the LLM.
Tue 28 Jul
Stop using nulls for flow control. Use a Result object to force Cursor to handle success and failure cases explicitly. This prevents 90% of AI-generated logic errors in Web APIs.
Mon 27 Jul
Logs alone won't debug a distributed system. Add a static readonly ActivitySource per project and wrap every external call (DB, HTTP, queue) in StartActivity. Cursor never adds OTEL spans on its own — give it a rule that recognises external-call patterns and proposes the trace.
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 Windsor.ai MCP Server: Query 325+ Marketing...
grokOn July 8, Cursor and SpaceXAI put Grok 4.5 in front of every Cursor subscriber who would click the...
mcpInstall guide and config at curatedmcp.com Perspective AI: Replace Forms with...
aicodeassistantReal coding benchmarks — GitHub Copilot, Cursor, Cody, Codeium, Windsurf, Tabnine compared on Python, TypeScript, Rust.
cursorCursor or Aider for a big Python monorepo? A hands-on 2026 comparison of indexing, git workflow, model choice, and cost — with a clear recommendation.
mcpInstall guide and config at curatedmcp.com DataForSEO MCP Server: Connect AI Agents to...
Workflows from the Neura Market marketplace related to this Cursor resource