frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: A Self-Paced Exercise to Build a CLI Coding Agent from Scratch

https://github.com/primaprashant/alduin
2•primaprashant•1h ago
I ran a hands-on workshop in Tokyo where ~50 engineers built a CLI coding agent from scratch in Python. I've converted it into a self-paced exercise.

GitHub Repo: https://github.com/primaprashant/alduin

We start from a skeleton repo with a basic input loop and no LLM. Over seven phases, we add the Anthropic API, implement tools (read file, edit file, bash), and build the core agent loop.

Each phase has hints and a reference commit if you get stuck.

Comments

primaprashant•1h ago
I ran this live in Tokyo with ~50 engineers. The biggest "aha" moment was Phase 4, when the agent loop closes and the LLM starts chaining tool calls autonomously. People go from "I'm building a chatbot" to "oh, this is an agent".

Also, there have been plenty of "build a coding agent in 200 lines" posts on HN in the past year, and they're great for seeing the final picture. I created this simple structured exercise so we start from an empty loop and build each piece ourself, phase by phase. So instead of just reading the implementation, I hope more people try the implementation themselves.

These are the 7 phases of implementation:

  1. LLM in the loop: replace the canned response with an actual LLM call
  2. Read file tool: implement the tool + pass its schema to the LLM + detect tool use in the response
  3. Tool execution: execute the tool the LLM requested and display the result
  4. Agent loop: the inner loop where tool results go back to the LLM until no more tool calls
  5. Edit file tool: create and edit files
  6. Bash tool: execute shell commands with user confirmation
  7. Memory: use the agent to build the agent, add AGENTS.md support for persistent memory across sessions

Feedback and PRs welcome. Happy to answer any questions.

Developers Discussed Abandon Office.js – Stability, Security, Trust Crisis

https://github.com/OfficeDev/office-js/issues/6513
1•dphov•29s ago•0 comments

Building an Agent SaaS with Cloudflare Containers

https://alec.is/posts/building-an-agent-saas-with-cloudflare-containers/
1•arm32•1m ago•0 comments

Ten years late to the dbt party (DuckDB edition)

https://rmoff.net/2026/02/19/ten-years-late-to-the-dbt-party-duckdb-edition/
1•rmoff•2m ago•0 comments

U.S. and Dutch Pilots Flying Ukrainian F-16s in Combat

https://theaviationist.com/2026/02/17/us-and-dutch-pilots-allegedly-flying-ukrainian-f-16s/
1•Betelbuddy•2m ago•0 comments

Google Maps now restricts its content if you're not logged in

https://9to5google.com/2026/02/18/google-maps-limited-view-signed-out/
2•severino•2m ago•0 comments

The Sound of Contamination

https://arnika.org/en/publications/the-sound-of-contamination
1•avanjaa•3m ago•0 comments

Billionaires' Low Taxes Are Becoming a Problem for the Economy

https://www.wsj.com/finance/billionaires-low-taxes-are-becoming-a-problem-for-the-economy-27a560ca
1•xnx•3m ago•0 comments

Show HN: I built a serverless API for automated website screenshots

https://www.npmjs.com/package/flashcapture-node
1•QuiCreatDev•4m ago•0 comments

Lidar can reveal archaeological sites while overlooking Indigenous peoples

https://theconversation.com/aerial-lidar-mapping-can-reveal-archaeological-sites-while-overlookin...
1•PaulHoule•4m ago•0 comments

Do You Care?

https://blog.torh.net/2026/02/19/do-you-really-care/
1•speckx•4m ago•0 comments

OpenClaw 3D Virtual World

https://openbot-social.netlify.app
1•matrixcat•5m ago•1 comments

Email blunder exposes $90B Russian oil smuggling ring

https://www.ft.com/content/4310f010-2b3c-493e-ba0a-26dc6d156b2e
3•curiousgal•6m ago•0 comments

Show HN: tnnl - Self-hosted ngrok alternative with request inspection and replay

https://github.com/jbingen/tnnl
1•jbingen•6m ago•1 comments

Introducing hipThreads: A C++ - Style Concurrency Library for AMD GPUs

https://rocm.blogs.amd.com/software-tools-optimization/hipthreads-introduction/README.html
1•pjmlp•6m ago•0 comments

Zero-cost delegates in .NET 10

https://www.youtube.com/watch?v=-h5251IWv-Y
1•GOPbIHbI4•10m ago•1 comments

Amazon's AI bots have been behind multiple AWS outages

https://sherwood.news/tech/report-amazons-ai-bots-have-been-behind-multiple-aws-outages/
1•speckx•11m ago•0 comments

Flathub is experiencing signing outage; new builds cannot be published

https://status.flathub.org/issues/2026-02-17-publish/
1•exploraz•11m ago•0 comments

Software Collaboration in the AI Age

https://spiess.dev/blog/software-collaboration-in-the-ai-age
1•tosh•11m ago•0 comments

The Return of the Data Scientists

https://www.goodeyelabs.com/insights/the-return-of-the-data-scientists
1•egealtan•13m ago•0 comments

Show HN: Value of the Day – Rate your day with stars and reviews

https://value-of-the-day.vercel.app
1•Kanta_K•13m ago•1 comments

Local iOS voice to text app (alternative to Wispr Flow)

1•kcordoc•13m ago•1 comments

Show HN: NotesGutter – Clean Code Notes with Markdown and Drawings

https://marketplace.visualstudio.com/items?itemName=ParasKoundal.notesgutter
1•alohaTool•14m ago•0 comments

Fourth-quarter U.S. GDP up just 1.4%, badly missing estimate; inflation at 3%

https://www.cnbc.com/2026/02/20/pce-inflation-december-2025.html
1•mraniki•15m ago•0 comments

Creatine: The Longevity Supplement Hiding in Plain Sight

https://twitter.com/robertlufkinmd/status/2024835466269470791
1•bilsbie•15m ago•1 comments

You May Be Canadian

https://www.jefftk.com/p/you-may-already-be-canadian
1•speckx•16m ago•0 comments

The Race to Give Every Child a Toy

https://www.newyorker.com/magazine/2026/02/16/playmakers-the-jewish-entrepreneurs-who-created-the...
1•fortran77•17m ago•1 comments

Defense Dept. and Anthropic Square Off in Dispute over A.I. Safety

https://www.nytimes.com/2026/02/18/technology/defense-department-anthropic-ai-safety.html
1•medbar•17m ago•0 comments

Show HN: A TUI text editor built by FTXUI

https://github.com/Cyxuan0311/PNANA
1•Frameser•18m ago•1 comments

Everything you never wanted to know about visually-hidden

https://dbushell.com/2026/02/20/visually-hidden/
1•todsacerdoti•18m ago•0 comments

A History of Erlang (2007) [pdf]

https://lfe.io/papers/%5B2007%5D%20Armstrong%20-%20HOPL%20III%20A%20History%20of%20Erlang.pdf
1•tosh•19m ago•0 comments