Hacker News Viewer

What I learned building an opinionated and minimal coding agent

by SatvikBeri on 2/1/2026, 9:33:46 AM

https://mariozechner.at/posts/2025-11-30-pi-coding-agent/

Comments

by: v0id_user

Being minimalist is real power these days as everything around us keeps shoving features in our face every week with a million tricks and gimmicks to learn. Something minimalist like this is honestly a breath of fresh air!<p>The YOLO mode is also good, but having a small ‘baby setting mode’ that’s not full-blown system access would make sense for basic security. Just a sensible layer of &quot;pls don&#x27;t blow my machine&quot; without killing the freedom :)

2/1/2026, 12:16:57 PM


by: valleyer

&gt; If you look at the security measures in other coding agents, they&#x27;re mostly security theater. As soon as your agent can write code and run code, it&#x27;s pretty much game over.<p>At least for Codex, the agent runs commands inside an OS-provided sandbox (Seatbelt on macOS, and other stuff on other platforms). It does not end up &quot;making the agent mostly useless&quot;.

2/1/2026, 11:16:21 AM


by: jFriedensreich

I dont know how to feel about being the only one refusing to run yolo mode until the tooling is there, which is still about 6 months away for my setup. Am I years behind everyone else by then? You can get pretty far without completely giving in. Agents really dont need to execute that many arbitrary commands. linting, search, edit, web access should all be bespoke tools integrated into the permission and sandbox system. agents should not even be allowed to start and stop applications that support dev mode, they edit files, can test and get the logs what else would they need to do? especially as the amount of external dependencies that make sense goes to a handful you can without headache approve every new one. If your runtime supports sandboxing and permissions like deno or workerd this adds an initial layer of defense.<p>This makes it even more baffling why anthropic went with bun, a runtime without any sandboxing or security architecture and will rely in apple seatbelt alone?

2/1/2026, 11:24:37 AM


by: zby

Pi has probably the best architecture and being written in Javascript it is well positioned to use the browser sandbox architecture that I think is the future for ai agents.<p>I only wish the author changed his stance on vendor extensions: <a href="https:&#x2F;&#x2F;github.com&#x2F;badlogic&#x2F;pi-mono&#x2F;discussions&#x2F;254" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;badlogic&#x2F;pi-mono&#x2F;discussions&#x2F;254</a>

2/1/2026, 11:02:19 AM


by:

2/1/2026, 11:30:58 AM


by: xcodevn

I did something similar in Python, in case people want to see a slightly different perspective (I was aiming for a minimal agent library with built-in tools, similar to the Claude Agent SDK):<p><a href="https:&#x2F;&#x2F;github.com&#x2F;NTT123&#x2F;nano-agent" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;NTT123&#x2F;nano-agent</a>

2/1/2026, 10:04:08 AM


by: verdverm

Glad to see more people doing this!<p>I built on ADK (Agent Development Kit), which comes with many of the features discussed in the post.<p>Building a full, custom agent setup is surprisingly easy and a great learning experience for this transformational technology. Getting into instruction and tool crafting was where I found the most ROI.

2/1/2026, 9:57:08 AM


by: simonw

Armin Ronacher wrote a good piece about why he uses Pi here: <a href="https:&#x2F;&#x2F;lucumr.pocoo.org&#x2F;2026&#x2F;1&#x2F;31&#x2F;pi&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lucumr.pocoo.org&#x2F;2026&#x2F;1&#x2F;31&#x2F;pi&#x2F;</a><p>I hadn&#x27;t realized that Pi is the agent harness used by OpenClaw.

2/1/2026, 10:42:58 AM


by: sghiassy

I always wonder what type of moat systems &#x2F; business like these have<p>edit: referring to Anthropic and the like

2/1/2026, 10:16:56 AM


by: evalstate

An excellent piece of writing.<p>One thing I do find is that subagents are helpful for performance -- offloading tasks to smaller models (gpt-oss specifically for me) gets data to the bigger model quicker.

2/1/2026, 10:10:10 AM


by: charcircuit

&gt;The only way you could prevent exfiltration of data would be to cut off all network access for the execution environment the agent runs in<p>You can sandbox off the data.

2/1/2026, 10:21:20 AM


by: yosefk

&quot;Also, it [Claude Code] flickers&quot; - it does, doesn&#x27;t it? Why?.. Did it vibe code itself so badly that this is hopeless to fix?..

2/1/2026, 11:14:22 AM


by: jeffrallen

As a user of a minimal, opinionated agent (<a href="https:&#x2F;&#x2F;exe.dev" rel="nofollow">https:&#x2F;&#x2F;exe.dev</a>) I&#x27;ve observed at least 80% of this article&#x27;s findings myself.<p>Small and observable is excellent.<p>Letting your agent read traces of other sessions is an interesting method of context trimming.<p>Especially, &quot;always Yolo&quot; and &quot;no background tasks&quot;. The LLM can manage Unix processes just fine with bash (e.g. ps, lsof, kill), and if you want you can remind it to use systemd, and it will. (It even does it without rolling it&#x27;s eyes, which I normally do when forced to deal with systemd.)<p>Something he didn&#x27;t mention is git: talk to your agent a commit at a time. Recently I had a colleague check in his minimal, broken PoC on a new branch with the commit message &quot;work in progress&quot;. We pointed the agent at the branch and said, &quot;finish the feature we started&quot; and it nailed it in one shot. No context whatsoever other than &quot;draw the rest of the f&#x27;ing owl&quot; and it just.... did it. Fascinating.

2/1/2026, 10:46:53 AM


by: asyncadventure

[dead]

2/1/2026, 12:01:07 PM


by: genie3io

[dead]

2/1/2026, 11:12:03 AM