Posts · Page 3

26 min read

Build GeekAgent from Scratch — Day 4 File Tools and Registry

A 7-day from-scratch tutorial for building an Agent/Harness by hand in TypeScript. Day 4 splits both reads and writes out of the shell: reads go through confirmation-free dedicated tools (ls/read/glob), writes go through a dedicated channel that shows a diff before touching disk (write/patch), and the accumulated tools are unified into a single registry — the first time the model completes the full read → modify → verify loop.

10 min read

Build GeekAgent from Scratch — Day 3 Bash Tool

A 7-day from-scratch tutorial for building an Agent/Harness by hand in TypeScript. Day 3 wires up the model's first tool that touches the real machine: running shell commands locally, with three guardrails — timeout, output truncation, and confirm-before-run — so the Agent can finally take real action.

14 min read

Build GeekAgent from Scratch — Day 2 Tool Calling Loop

A 7-day build-an-Agent-from-scratch tutorial: hand-write the simplest possible Agent/Harness in TypeScript. Day 2 builds the tool calling loop: the model can request get_current_time, the program executes it and hands the real time back to the model, laying the groundwork for the command and file tools to come.

12 min read

Build GeekAgent from Scratch — Day 1 REPL Foundation

A 7-day build-an-Agent-from-scratch tutorial: hand-write the simplest possible Agent/Harness in TypeScript/Node.js, implementing a REPL loop and streaming multi-turn conversation from zero. This post covers what a REPL is, why it makes the right foundation for an Agent, and how readline plus an OpenAI-compatible API gets the first step, "being able to chat," running in under 160 lines of code.

6 min read

Use Cases of Interface-based Functions in Go

The implementation and value of functional interfaces or interface-based functions in Go (golang). What is an interface-based function, and why wrap a function in an interface instead of passing the function directly as a parameter? How does Go's standard library net/http use interface-based functions?

33 min read

A Gentle Introduction to Python

Learn Python 3 with a single article — installation, basic types (strings, ints, lists, dicts), control flow (if, for, while), composite types (classes, methods), functional programming, object-oriented programming, error handling (try/except/finally), pip and third-party packages, and how to write unit tests.