Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Coding with AI: How to trust the storyteller (A...

Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)

Avatar for Slobodan Stojanović

Slobodan Stojanović

October 22, 2026

More Decks by Slobodan Stojanović

Other Decks in Programming

Transcript

  1. Do you still know how to write a "Hello World"

    in JavaScript or Python? Ok, Ok, that was a bit too much.
  2. Ok, but a code review phase is too late. It's

    catching problems, not preventing them.
  3. How do you make Claude Code, Codex or any other

    coding agent do what you actually want it to do?
  4. The first obvious pick is to add instructions to Claude.md

    or Agents.md. That should work, right?
  5. A year ago Also, back in the day, Claude Code

    sometimes lost context from Claude.md.
  6. A friend added an instruction that tells Claude Code to

    start each reply with "Izvolte!" ("Here you go!" in Serbian)
  7. btw, check OXlint Custom linter rules are so hard to

    write manually. But that's Claude's problem now, not mine.
  8. E.g., instead of an error: x is forbidden linter can

    say: avoid using X because of something use Y instead
  9. E.g., instead of an error: unquoted-paren-in-label linter can say: an

    unquoted '(' in a bracket label starts a shape token, so the parse fails mid-label; restructure with a comma or colon, or quote the whole label.
  10. We can run linter rules in a pre-commit hook. But

    it's still catching problems, not preventing them.
  11. It would be great if Claude Code could run a

    "pre-commit" hook after each change...
  12. Like automated code review We could tell Claude Code to

    run our linter on modified files and fix problems before we ever see them.
  13. But this "PreToolUse" hook is especially interesting. Can we use

    it to run an automated check to determine whether a specific edit or action should be allowed?
  14. This simplifies the review process. But we still need testing,

    right? Yes! More than ever. But can we automate part of it?
  15. Yes, but it needs a test environment. And we definitely

    don't want it to access our production.
  16. Check OrbStack on Mac I always run my agents in

    (Docker) containers. It's not perfectly safe, but it's better than nothing.
  17. But what do you do if your laptop can't run

    all these local containers? I never said they have to be local.
  18. An EC2 instance can be your "agent sandbox." Anything you

    can connect to remotely and run Claude Code in works.
  19. But what do you do to access data in an

    AWS account or deploy an application for testing?
  20. Or give your agents access to AWS sub-account (s). But

    be very careful with permissions and deployment flow, e.g., no direct access, but via some CICD process
  21. This gives you automation that reduces your time. But it's

    still not ideal. 2 prompts = 100% of 5-hour limit 50% of weekly fable limit and 25% of weekly limit
  22. Commander's Intent: - Purpose: Why personnel must complete the assignment.

    - Task: What the objective or goal entails. - End state: How the result should look.
  23. "There are seven types of information that a person could

    present to help the people receiving the request to understand what to do" Sources of Power Book by Gary Klein
  24. 1. The purpose of the task (the higher level goals)

    2.The objective of the task (an image of desired outcome) 3.The sequence of steps in the plan 4.The rationale for the plan 5.The key decisions that may have to be made 6.Antigoals 7.Constrains and other considerations
  25. Prepare feature skill: Ask an agent to interview you until

    you have all 7, or enough to build a feature plan.
  26. UX skill: Build a prototype to test it out (and

    apply Kathy Sierra's Badass principles)
  27. Claude Code defines agent workflows on the fly in state-function-like

    JavaScript code. And Claude Code knows how to write it.
  28. 3 hours of planning. 4 hours and 9 minutes of

    Claude Code work. 2 days of reviewing. It would take me at least 3-4 weeks to write it manually.
  29. 1. There are no right or wrong things to do.

    Build a workflow that works for you. 2. Never trust the storyteller. Only trust the story. 3.