In partnership with

AI coding agents are unbelievable as there are -- but there are still tons of powerful techniques that will greatly maximize the value you get from them.

Use these 5+ tips to save you hours and drastically improve the accuracy and predictability of your coding agents.

1. Keep files short and modular

Too-long files are one of the biggest reasons for syntax errors from agent edits.

Break your code into small, self-contained files -- like 200 lines. This helps the agent:

  • Grasp intent and logic quickly.

  • Avoid incorrect assumptions or side effects.

  • Produce accurate edits.

Short files also simplify reviews. When you can scan a diff in seconds, you catch mistakes before they reach production.

2. Customize the agent with system prompts

System prompts are crucial for guiding the AI's behavior and ensuring it understands your intentions.

Before you even start coding, take the time to craft clear and concise system prompts.

Specify the desired coding style, architectural patterns, and any constraints or conventions your project follows.

Like for me I'm not a fan of how Windsurf likes generating code with comments -- especially those verbose doc comments before a function.

So I'd set a system prompt like "don't include any comments in your generated code".

Or what if you use Yarn or PNPM in your JS projects? Coding agents typically prioritize npm by default.

So you add "always use Yarn for NPM package installations".

On Windsurf you can set system prompts for Cascade with Global Rules in global_rules.md

3. Use MCP to drastically improve context and capability

Connect the agent to live project data—database schemas, documentation, API specs—via Model Context Protocol (MCP) servers. Grounded context reduces hallucinations and ensures generated changes fit your actual environment.

Without MCP integration, you're missing serious performance gains. Give the agent all the context it needs to maximize accuracy and run actions on the various services across your system without you ever having to switch from your IDE.

From Italy to a Nasdaq Reservation

How do you follow record-setting success? Get stronger. Take Pacaso. Their real estate co-ownership tech set records in Paris and London in 2024. No surprise. Coldwell Banker says 40% of wealthy Americans plan to buy abroad within a year. So adding 10+ new international destinations, including three in Italy, is big. They even reserved the Nasdaq ticker PCSO.

Paid advertisement for Pacaso’s Regulation A offering. Read the offering circular at invest.pacaso.com. Reserving a ticker symbol is not a guarantee that the company will go public. Listing on the NASDAQ is subject to approvals.

Start learning AI in 2025

Keeping up with AI is hard – we get it!

That’s why over 1M professionals read Superhuman AI to stay ahead.

  • Get daily AI news, tools, and tutorials

  • Learn new AI skills you can use at work in 3 mins a day

  • Become 10X more productive

Keep Reading

No posts found