AI tips and tricks

Blog post cover image

About 6 minutes to read, 1,223 words

These are points that can improve the effectiveness and efficiency of using AI in software development.

Do you know them all?

1. ๐Ÿ—๏ธ Keep your codebase healthy

Consider a growth and maintenance strategy for each codebase to keep it healthy. For example, maintain a lightweight ARCHITECTURE.md file to give agents a high-level directory of core modules, shared utilities, and where different types of code belong, so they reuse existing abstractions instead of reinventing them.

You can mention these separate Markdown files in your AGENTS.md or CLAUDE.md files so that your agent reads them.

Why?

Models currently do not perform well in considering broader architecture when building features. They focus on the task at hand.

2. ๐Ÿงช Write stronger tests

Consider mutation tests, such as Stryker, and end-to-end tests with BDD (Behaviour-Driven Development), such as Cucumber, to produce stronger automated tests.

Why?

Models tend to write assertions that mirror what the code currently does rather than verifying edge cases or intended behaviour, thus reducing the chance of catching real issues.

3. ๐Ÿงญ Stay involved in decisions

Use AI skills that keep you closely involved in the decision-making process, for example, /grill-me by Matt Pocock. If you choose a more hands-off automated approach, then ensure that the agent documents the decisions it made and why they were made. For example, an architecture decision record (ADR) in the form of a Markdown file.

Why?

Agents will make decisions and assumptions on your behalf if they don't receive enough context and clarity. These decisions and assumptions can often be incorrect.

4. ๐Ÿ“– Share the same words with your agent

A GLOSSARY.md file that contains terms and definitions and is committed into the codebase can be useful for having a shared understanding and terminology between you and the agent.

Why?

We want to avoid misunderstandings and misinterpretations, which can happen easily because we communicate with models through natural language. The goal is to be more explicit and unambiguous.

5. ๐Ÿ—ฃ๏ธ Change how the model talks to you

You can change the output style of the model's responses to better suit your preferences, such as by explaining your preference in a relevant Markdown file that the model reads at the start of a session. Claude Code, for example, has a feature called output styles. Another option is manually invoking a skill such as the /wait-what skill by Matt Pocock.

Why?

Agents can often use heavy jargon and overly complicated explanations, resulting in misunderstandings or fatigue for human readers trying to review and understand the model's output.

6. ๐Ÿ“ Watch your context size

Be aware of context usage in each of your sessions. For example, use a skill such as /handoff by Matt Pocock to create a Markdown file containing a summary which can then be used in a fresh session. A general rule of thumb could be to avoid going over roughly 150k tokens in a single session/chat. This varies by model. Features should usually be built separately, and changes done via small pull requests/diffs when possible.

Why?

Agents perform worse the more the context window is filled. We want to keep the agent focused and make code review easier for you or another agent reviewing the code, to increase the probability of spotting issues and mistakes.

7. ๐Ÿ”€ Work on features in parallel

Keep in mind you can often have agents working on the codebase on separate features at the same time using Git worktrees, which many agentic development environments provide as a feature.

Why?

The productivity gains from being able to develop features and make code changes in parallel are powerful. You finish more work in less time because features are built at the same time.

8. ๐Ÿ” Help your agent improve over time

Make the agent run better for future changes. In other words, focus on continuous improvement. Markdown files are a good idea for this, such as a STANDARDS.md file containing the coding conventions the agent should follow. You can also use AI skills such as /retro. Another idea is adding more deterministic checks in the CI pipeline.

Why?

Agents will continue to make the same mistakes if you don't provide a way to help them improve. Agents will focus on your prompt and not consider how to avoid problems, challenges, or inefficiencies they encountered. Deterministic checks save costs and help guarantee correctness.

9. ๐Ÿ” Check what loads into the context

Inspect and keep in mind what's pushed into the context in a new session. Different agent harnesses push different amounts of data into the context since they have different system prompts and MCP tools that they add. AI skill names and descriptions will also increase the context. Some practical ideas are to check that you're not loading verbose and unnecessary skills or tools, and to try to keep skill descriptions concise to take up less space in context.

Why?

The reason is similar to point 6, which is that once the number of tokens in the context reaches a certain size, the model performance will start to degrade, leading to poorer results and more mistakes.

10. ๐ŸŽค Talk instead of typing

Use dictation to communicate with agents. This means using a microphone so the agent harness or other program on your machine can convert your speech to text. Most agentic applications provide this feature already. For example, you can often simply click/tap the microphone icon, usually near the text input box. There will still be cases where you need to type and/or paste text.

Why?

Dictation is important because it saves a large amount of time compared to typing. In other words, it's a significant productivity booster.

11. โš–๏ธ Match automation to the risk

When considering how much to automate the SDLC (Software Development Life Cycle), some factors to consider are the lifetime and importance of the code.

For example, a marketing landing page on a website for an upcoming one-month campaign with no functionality can usually be mostly automated, because the code is temporary and disposable. The issue of technical debt would not usually apply in cases of temporary and disposable code.

Then regarding importance, an example would be medical software. It is usually critical for software like this to perform correctly, so it should be checked more thoroughly to ensure correctness.

An extra consideration is complexity matching the model's intelligence. For example, complex features would generally require more manual review with less capable models.

Why?

Balancing automation and review thoroughness against risk and technical debt lets you move fast on low-stakes code while protecting critical systems.

12. ๐ŸŽš๏ธ Match effort to the task

Consider the complexity of the task to determine the appropriate effort level to set before sending the prompt to begin the task.

Why?

Setting a higher effort level on the model is often a waste of time and/or money for simpler tasks. Models can also sometimes perform worse at higher reasoning levels in certain cases.

Future-proof?

Some of these points might not be beneficial or accurate in future, because of how rapidly AI models are changing and growing in intelligence. Let's see how relevant these points are in future!

Posted: November 12, 2026 (14 days ago)

Updated: November 14, 2026 (12 days ago)