Skip to content

Coding with Agentic Tools

Coding with agentic tools means partnering with an AI agent through iterative workflows where you provide direction, the agent executes, and you review at checkpoints.

Think of it as pair programming: you guide the intent, the agent handles implementation, but don't outsource your thinking.

Workflow patterns

Choose your approach based on task complexity and familiarity:

PatternWhen to UseHow to Use
Implement → ReviewSimple, well-defined tasks with clear solutionAsk agent to code, review result, iterate if needed
Plan → Review → ImplementMedium complexity, need alignment before codingAgent creates plan, you review/adjust, agent implements
Divide et ImperaLarge or medium tasks that can be decomposedBreak the task into smaller chunks yourself, then apply one of the other strategies to each chunk
Research → Plan → ImplementUnfamiliar codebase or unclear approachAgent explores codebase, plans approach, then implements
Spec → Plan → Review → ImplementComplex changes requiring precise requirementsYou write spec, agent plans, you review, agent implements
Test → Implement → ValidateTDD approach, clear requirements with testable outcomesWrite/spec tests first, agent implements to pass tests, validate results

Workflow Patterns

Reviewing agent code

What are you reviewing for

Priority LevelWhat to Check
Mental AlignmentThe team is able to understand how the changes evolves the system all of you are working on
Correct SolutionEnsures the change correctly solves the problem
Design Discussion• Clear separation of concerns (should this part be in utils or validation service?)
• Domain boundaries are well-kept (service layer vs controller layer, correct feature folder?)
• Performance implications
• Data contracts (DTOs)
• Data flow correctness
Find BugsEnsure no edge cases are present
StyleThe code is written in the 'good way' (best practices, self-explanatory code)

Code Review Hierarchy of Needs

How to review AI code

Follow the hierarchy from most to least important:

  1. Mental Alignment (for you): Review the plan first—is the intent behind the changes correct? Can your team understand the approach?
  2. Correct Solution: Test the solution → does it work? If not, the AI still has work to do. Add a way for the agent to validate its own work: give it eyes (tests, access to browser, screenshots, etc.)
  3. Design Discussion: Check separation of concerns, domain boundaries, performance implications, and data contracts. You can ask the agent to code review (with a separate context window) for problems following these principles
  4. Find Bugs: Look for edge cases, null checks, error handling, and boundary conditions. You can use the agent to brainstorm possible problems
  5. Style: Verify the code follows project patterns and is self-explanatory
  6. Mental Alignment (for others): Give your team context in a Code-Review regarding a change, offer concise and simple-to-understand information regarding the change as a summary.

Key principle: Stop at the lowest failing level. Don't review style if the solution doesn't work.

References

Copyright © MSG Systems Romania AI Labs