Deni Putra Perdana

01 / The approach

Small changes.
Real proof.

How I work with coding agents: understand the problem, make a focused change, and verify what people actually depend on.

UnderstandBuildVerifyKeep the lesson

Deni Putra Perdana · A personal working method, illustrated with a fictional example

02 / Understand

Agree on the change
before writing it

A short working agreement gives both the engineer and the agent something concrete to check.

  1. 01What should happen?Describe an observable outcome.
  2. 02What can change?Name the files and behavior in scope.
  3. 03What is still unknown?Resolve assumptions before building on them.
  4. 04What would count as proof?Choose the check before the implementation.

03 / Build

One bug.
A clear boundary.

After sign-out, the screen returns to login. But a session token remains stored.

Fictional browser-app example. No production code or internal project details are used in this walkthrough.

The acceptance check

Sign out → clear the stored session → return to login

Change

The sign-out handler and its regression test.

Keep

The login screen, navigation design, and unrelated auth behavior.

04 / Trace

Follow the behavior
all the way through

A function being called tells only part of the story. Follow what changes after the user acts.

  1. 01

    User signs out

    The interaction reaches the handler.

  2. 02

    Session is cleared

    The stored token is removed.

  3. 03

    Login opens

    The app leaves the signed-in screen.

  4. 04

    Outcome is checked

    Both storage and the destination match the requirement.

This example checks client-side state only. A real sign-out flow may also need server-side invalidation and checks for other session stores.

05 / Verify · Try it

Would the test catch
the broken version?

Run both checks against the same handler. Then restore session cleanup and run them again.

The weak check only confirms navigation. The outcome check confirms navigation and removal of the stored session.

A tiny sign-out handler

In-memory simulation
function signOut(app) {
  // Session cleanup is missing
  app.route = '/login';
}

Choose a version, then run the checks.

06 / Keep the lesson

Turn the correction
into a working rule

When a mistake repeats, I capture the lesson in a shared agreement or a reusable check.

Test the outcome the user depends on: what is stored, what is cleared, and where the app goes.
A reusable agreement
  • Keep the diff focusedSeparate adjacent improvements from the requested fix.
  • Trace before reportingLabel uncertainty instead of presenting it as a finding.
  • Break it on purposeConfirm the test fails when the behavior is removed.
  • Leave evidenceRecord the scenario, result, and remaining limits.

07 / The habit

Make the work
easy to review.

A clear scope. A small change. Evidence of the outcome. And one less lesson to learn twice.

This walkthrough demonstrates the method. It does not measure agent performance or prove production readiness.

Back to my site

Deni Putra Perdana · Frontend craft. Systems thinking.