Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Kogan.com Dev Blog 5 min read Opinion easyNovice

Building Your Own AI Agent

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.

Related posts

  • Let your agent cook by giving it the recipe

    Mux mediumAdept

    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. In Gauge-sandboxed evals on podcast clipping, agents with no vendor named built their own FFmpeg/Deepgram pipeline (1 of 6 criteria, 69 min). With the recipe they scored 6 of 6 in 18.9 minutes at about 39% lower cost than with public docs alone, and picked Mux for the whole workflow in 15 of 15 advice runs. The recipes encode decisions such as preferring signed playback over DRM, converting Robots' milliseconds to seconds, and asking clarifying questions first, and they open with a checklist because agents skip instructions. They are kept current with CI checks against the API spec and a weekly LLM review, which Mux positions as more maintainable than example apps.

  • You Should Write An Agent

    Fly.io mediumAdept

    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. A few dozen lines of Python against the OpenAI Responses API produce a working tool-using agent that decides on its own to ping multiple Google hosts. MCP is barely a technology, just a plugin interface for agents you don't control, and context engineering is a real, legible programming problem of budgeting tokens across sub-agents, tools and summaries. Agent design leaves open problems around nondeterminism, grounding, inter-agent interchange formats and cost, and each design iteration takes about 30 minutes, so engineers should build one themselves.

  • Introducing Agents.js: Give tools to your LLMs using JavaScript

    Hugging Face mediumAdept

    Agents.js is a JavaScript library from huggingface.js that gives LLMs tool access in the browser or on Node. An HfAgent turns a plain-text command into JavaScript that chains multimodal tools such as textToImage, imageToText and textToSpeech, then evaluates that code and returns messages carrying strings or Blobs. Any async string-to-string function can stand in as the LLM, with OpenAI shown as an example, and custom tools are defined with a name, description, few-shot examples and a call function. Because the agent executes arbitrary generated code, generateCode followed by evaluateCode is recommended over run, so the code can be reviewed before it executes.

  • Agent-driven development in Copilot Applied Science

    GitHub Engineering mediumAdept

    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. Three principles made this work: conversational, verbose prompting in plan mode; continuous refactoring, documentation and dead-code cleanup so the repo is easy for agents to navigate; and a "blame process, not agents" approach backed by strict typing, linters, and human-only contract tests that prevent agents from rewriting regression tests. With this setup five contributors added 11 agents and four skills in under three days, using a loop of /plan, /autopilot, automated Copilot Code Review iterations, and human review, plus weekly agent-run audits for missing tests, duplication and doc gaps.

  • Open SWE: An Open-Source Framework for Internal Coding Agents

    LangChain mediumAdept

    Open SWE is an MIT-licensed framework for internal coding agents, built on Deep Agents and LangGraph. It packages the patterns that Stripe's Minions, Ramp's Inspect and Coinbase's Cloudbot converged on: per-task isolated cloud sandboxes, a small curated toolset, context drawn from AGENTS.md plus the source Linear issue or Slack thread, subagents for delegated subtasks, and deterministic middleware around the agent loop. Two middleware examples are injecting follow-up messages mid-run and opening a PR if the agent didn't. It is invoked from Slack, Linear and GitHub, and the sandbox provider, model, tools, triggers, prompt and middleware are all pluggable.

The quest for software engineering knowledge.

Look:
Layout: