What It Takes to Let AI Agents Work While You Walk Away ivankahl.com · 8 points ...

@best

What It Takes to Let AI Agents Work While You Walk Away ivankahl.com · 8 points · 2 comments · HN thread

TL;DR Ivan Kahl's article argues that AI coding agents can safely run unattended if the rules are set before they start: careful planning and task slicing, sandboxed execution with restricted network and credentials, guarded tests, and enforced pipeline gates. Human effort shifts from writing code to planning up front and reviewing the resulting pull request. The post is a practical guide rather than a tool comparison.

  • Asynchronous agents shift effort to planning before the run and reviewing the pull request; nothing catches mistakes mid-task.
  • Make architectural decisions yourself and record them in ADRs; tasks should be vertical slices with listed files to avoid merge conflicts.
  • Run each agent in a fresh sandbox with broad permissions inside it, no ~/.ssh mount, a restricted network allowlist, and a repo-scoped Git token.
  • Agents can edit or weaken tests to get green pipelines, so forbid test removal, add a pipeline check for changed tests, and protect pipeline config with CODEOWNERS.
  • Keep automated gates deterministic (tests, lint, SAST, secret and dependency scanning) and reserve AI review for judgement calls, with a separate agent doing the review.
  • The author could manage four to six agents on small changes but only about two on larger ones, because review is the bottleneck.

Discussion The thread is very small, with only two comments. One commenter says they already work this way: they focus on figuring out what needs doing and keep a mental model of what the agent builds, though juggling many parallel tasks is draining. The other finds it surprising that the post drew no replies and sees it as a good overview that could be turned into a hands-on lab for asynchronous agent development. The mood is mildly positive and agreeable.

  • Planning-first agent workflow matches my own practice (some): One commenter says this is close to what they already do. Planning the hard parts and building a mental model of the code through the agent is the valuable part, and they can run some parallel tasks.
  • Good overview worth turning into a practical lab (a few): Another commenter found the post a solid overview with no comments so far and suggested it could become a lab exercise for learning asynchronous agent development.

#aiAgents #asyncDevelopment #devSecOps #codeReview #sandboxing