---
title: "Building Your Own AI Agent"
description: "A coding agent is essentially a few hundred lines of boilerplate running an inference loop: send the prompt and conversation history to an LLM, print direct answers, and when the model emits a tool-use signal, execute a local function and feed the result back."
url: "https://swe.quest/articles/building-your-own-ai-agent-9986374c0ca32772"
canonical: "https://devblog.kogan.com/blog/building-your-own-ai-agent-from-consumer-to-producer"
source: "Kogan.com Dev Blog"
published: "2025-09-23"
difficulty: "easy"
kind: "Opinion"
reading_minutes: 5
tags: ["ai-agents","ai-coding","llms"]
---

# Building Your Own AI Agent

A post on [Kogan.com Dev Blog](https://swe.quest/sources/kogan.md), published 2025-09-23, 5 min read, Opinion. Original: [https://devblog.kogan.com/blog/building-your-own-ai-agent-from-consumer-to-producer](https://devblog.kogan.com/blog/building-your-own-ai-agent-from-consumer-to-producer)

## Summary

A coding agent is essentially a few hundred lines of boilerplate running an inference loop: send the prompt and conversation history to an LLM, print direct answers, and when the model emits a tool-use signal, execute a local function and feed the result back. Drawing on Geoffrey Huntley's DataEngBytes 2025 talk, five primitive tools (read, list, bash, edit, and ripgrep-based search) are enough for an agent to create, run and revise a Node.js FizzBuzz script. The broader argument is that engineers should become producers of agentic automation for pipelines, CI/CD and their own workflows rather than fear it.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM tool calling basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Geoffrey Huntley, DataEngBytes, Claude Sonnet, Kimi K2, ripgrep, Amp

## Related posts

- [Let your agent cook by giving it the recipe](https://swe.quest/articles/let-your-agent-cook-by-giving-it-the-recipe-21fb131e6a705d39.md): Mux · 2026-10-13 · Medium · 9 min read · AI for coding, AI agents, Evaluation, Documentation, Video & media
  Mux's prompt library gives coding agents task-specific instructions (which Mux features to use, in what order, with recommended defaults and gotchas) instead of leaving them to infer an approach from docs.
- [You Should Write An Agent](https://swe.quest/articles/you-should-write-an-agent-1b4d0eb48fb350d8.md): Fly.io · 2025-11-06 · Medium · 10 min read · AI agents, LLMs, Python
  An LLM agent is just a loop around a stateless chat API: keep a list of messages, replay it on every call, and when the model emits a function\_call, run the tool and append its output.
- [Introducing Agents.js: Give tools to your LLMs using JavaScript](https://swe.quest/articles/introducing-agents-js-give-tools-to-your-llms-using-javascript-690428d96ad96e44.md): Hugging Face · 2023-07-24 · Medium · 4 min read · AI agents, JavaScript, LLMs
  Agents.js is a JavaScript library from huggingface.js that gives LLMs tool access in the browser or on Node.
- [Agent-driven development in Copilot Applied Science](https://swe.quest/articles/agent-driven-development-in-copilot-applied-science-57df9b7433878456.md): GitHub Engineering · 2026-03-31 · Medium · 9 min read · AI for coding, AI agents, Developer productivity, Evaluation, Testing
  A Copilot Applied Science researcher built eval-agents, a set of Copilot SDK-based agents that automate analysis of coding-agent trajectories from benchmarks like TerminalBench2 and SWEBench-Pro, and developed it primarily through coding agents.
- [Open SWE: An Open-Source Framework for Internal Coding Agents](https://swe.quest/articles/open-swe-an-open-source-framework-for-internal-coding-agents-1b0f7521a5a00040.md): LangChain · 2026-10-13 · Medium · 8 min read · AI agents, AI for coding, Open source, Sandboxing & isolation
  Open SWE is an MIT-licensed framework for internal coding agents, built on Deep Agents and LangGraph.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
