#7575th of 88 in Learning and cookbooks

how-to-build-a-coding-agent

Go workshop that builds a Claude-based coding agent in six steps

Stars
5.9k
License
no license
Last commit
Oct 2026
Language
Go
Stars, last 29 weeks+523
21 Apr 2026: 5,397 stars28 Apr 2026: 5,422 stars5 May 2026: 5,450 stars12 May 2026: 5,478 stars19 May 2026: 5,510 stars26 May 2026: 5,547 stars2 Jun 2026: 5,568 stars9 Jun 2026: 5,594 stars16 Jun 2026: 5,618 stars23 Jun 2026: 5,628 stars30 Jun 2026: 5,646 stars7 Jul 2026: 5,670 stars14 Jul 2026: 5,688 stars21 Jul 2026: 5,699 stars28 Jul 2026: 5,722 stars4 Aug 2026: 5,738 stars11 Aug 2026: 5,750 stars18 Aug 2026: 5,765 stars25 Aug 2026: 5,774 stars1 Sept 2026: 5,784 stars8 Sept 2026: 5,794 stars15 Sept 2026: 5,798 stars22 Sept 2026: 5,820 stars29 Sept 2026: 5,835 stars6 Oct 2026: 5,845 stars13 Oct 2026: 5,870 stars20 Oct 2026: 5,897 stars27 Oct 2026: 5,908 stars3 Nov 2026: 5,913 stars10 Nov 2026: 5,920 stars

5,397 on 21 Apr 20265,920 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

A tutorial repo with six runnable Go programs, from a basic Claude chat loop to an agent with file read, directory listing, bash, file edit and ripgrep code search tools. Each step adds one tool to a shared event loop that passes tool requests from the Anthropic API to local functions and returns the results. It is teaching material, not a production agent.

Who it is for: Developers learning how coding agents and tool-calling loops work

Strengths

  • Incremental files (chat.go to code_search_tool.go) make each added tool easy to diff
  • Small Go codebase; tool input schemas are generated from Go structs
  • Sample files and a --verbose flag help inspect the agent loop
  • Architecture diagrams explain the inference and tool-execution loop

Weaknesses

  • Anthropic Claude API only; no other providers covered
  • No license file, so reuse terms are unclear
  • Bash and edit tools have no sandboxing beyond a 'safe commands' note
  • Workshop code, not a maintained library or CLI product

What it needs

  • no GPU
  • Needs Go 1.24.2+, Anthropic API key, ripgrep
  • Models: Anthropic Claude

Quick answers

Is how-to-build-a-coding-agent open source?

Its code is public on GitHub, but the repository has no license, so by default nobody may reuse it.

Does how-to-build-a-coding-agent need a GPU?

No, it runs without one.

Also in Learning and cookbooks

See all 88
Also in Learning and cookbooks
RankProjectScore
1ai-engineering-from-scratchHands-on AI engineering curriculum with 542 lessons across 20 phases78.5k stars+10,997 (+16%) in 30 daysMIT91 out of 100
2generative-ai-for-beginners21-lesson course on building generative AI apps in Python and TypeScript123.4k stars+2,347 (+1.9%) in 30 daysMIT83 out of 100
3rag_techniquesCollection of 42 runnable notebooks implementing RAG techniques30.3k stars+563 (+1.9%) in 30 dayscustom license81 out of 100
#4cs249r_bookOpen textbook and course materials for machine learning systems engineering30.1k stars+1,266 (+4.4%) in 30 dayscustom license81 out of 100
#5ai-for-beginners24-lesson AI curriculum with notebooks in PyTorch and TensorFlow Live demo ↗ (opens in a new tab)70.7k stars+1,156 (+1.7%) in 30 daysMIT80 out of 100