Programming

Building AI Agents with Ollama and Tool Calling in Go

Building AI Agents with Ollama and Tool Calling in Go

Bogdan Ungureanu

The landscape of AI development is undergoing a fundamental shift. What once required expensive API calls to cloud-based LLM providers can now run entirely on your local machine using Ollama. But raw language models alone aren’t enough to build truly useful AI systems—they need the ability to take actions through tool calling, also known as function calling.

Building AI agents that can autonomously read files, execute commands, search codebases, and modify systems opens up unprecedented possibilities for automation. Imagine an AI assistant that can analyze your Go codebase, understand architectural patterns, and suggest improvements by actually examining the code. Or a development agent that can automatically fix linting errors, generate boilerplate, or execute builds based on natural language instructions.

This comprehensive guide teaches you how to build production-ready AI agents in Go using Ollama for local LLM inference and a robust tool registry system inspired by the Model Context Protocol (MCP). You’ll create a system where AI models can intelligently decide which tools to use, when to use them, and how to combine tool results to solve complex problems.

Generative AI for Code: How Tools Like GitHub Copilot Are Reshaping Developer Productivity

Generative AI for Code: How Tools Like GitHub Copilot Are Reshaping Developer Productivity

Bogdan Ungureanu

The software development landscape has undergone a seismic shift in recent years. What was once a purely human-driven creative process is now augmented by artificial intelligence systems that can write, review, and optimize code. GitHub Copilot, ChatGPT, Amazon CodeWhisperer, and similar tools represent a fundamental change in how we approach programming.

This article examines the practical implications of integrating generative AI into your development workflow, explores the ethical minefield you’ll navigate, and provides concrete evidence of the productivity gains (and pitfalls) you should expect.

Platform Engineering with Go: Building a Self-Service Internal Developer Platform CLI

Platform Engineering with Go: Building a Self-Service Internal Developer Platform CLI

Bogdan Ungureanu

Platform engineering has emerged as the natural evolution of DevOps, addressing a critical problem that plagues growing engineering organizations: cognitive overload. As infrastructure complexity explodes—Kubernetes, Terraform, CI/CD pipelines, observability stacks, secrets management—developers increasingly spend time fighting tooling instead of shipping features.

The solution is an Internal Developer Platform (IDP): a curated, self-service layer that abstracts away infrastructure complexity and provides developers with “golden paths” to production. At the heart of many successful IDPs sits a command-line interface (CLI) that developers use daily to scaffold services, provision resources, and deploy applications.

In this guide, you’ll build a production-grade IDP CLI in Go using the Cobra framework. Go is the de facto language for platform tooling—it powers Kubernetes, Docker, Terraform, and countless cloud-native tools—thanks to its single-binary distribution, excellent concurrency, and robust standard library.

Go Memory Optimization: Profiling and Performance Tuning Techniques

Go Memory Optimization: Profiling and Performance Tuning Techniques

Bogdan Ungureanu
Memory optimization in Go applications is a critical skill that separates good developers from great ones. While Go’s garbage collector handles memory management automatically, understanding how to profile, analyze, and optimize memory usage can dramatically improve your application’s performance, reduce infrastructure costs, and enhance user experience. In production environments where every millisecond and megabyte counts, these skills become invaluable. Go provides exceptional built-in tooling for memory profiling through the pprof package and runtime statistics.
Building a High-Performance Lock-Free Circuit Breaker in Go

Building a High-Performance Lock-Free Circuit Breaker in Go

Bogdan Ungureanu
Introduction In distributed systems, cascading failures are one of the most devastating failure modes. When a downstream service becomes slow or unresponsive, upstream services can exhaust their resources waiting for responses, causing a domino effect that brings down entire systems. The 2017 AWS S3 outage, which cascaded across multiple services and lasted nearly four hours, demonstrated how a single service failure can ripple through interconnected systems. Circuit breakers act as automatic safety switches that prevent cascading failures by detecting when a service is unhealthy and temporarily blocking requests to it.

Compliance Automation: SOC2 and HIPAA for Go Applications

Bogdan Ungureanu
In today’s regulatory landscape, compliance isn’t just a checkbox—it’s a critical business requirement that can make or break your organization. Whether you’re handling sensitive customer data or protected health information, meeting standards like SOC2 and HIPAA is essential for maintaining trust and avoiding costly penalties. For Go applications, implementing compliance automation can streamline audits, reduce human error, and ensure continuous adherence to regulatory requirements. This comprehensive guide will walk you through building robust compliance automation systems in Go, covering everything from audit logging to automated policy enforcement.

Container Security Scanning and Hardening for Go Applications

Bogdan Ungureanu
Container security has become a critical concern as organizations increasingly adopt containerized applications. With the rise of microservices and cloud-native architectures, Go applications running in containers face numerous security challenges, from vulnerable base images to misconfigurations that can expose sensitive data or provide attack vectors. This comprehensive guide explores how to implement robust security scanning, vulnerability management, and hardening strategies specifically tailored for Go applications. We’ll cover everything from choosing secure base images to implementing runtime security monitoring, ensuring your containerized Go applications maintain the highest security standards throughout their lifecycle.
Building Production-Ready HTTP Logging Middleware for Go's Mux Router

Building Production-Ready HTTP Logging Middleware for Go's Mux Router

Bogdan Ungureanu
Observability is the cornerstone of modern web applications. When your API starts experiencing issues at 3 AM, comprehensive logging can mean the difference between a quick fix and hours of frustrated debugging. In this guide, we’ll build a production-grade HTTP logging middleware for Gorilla Mux that goes beyond simple request logging to provide actionable insights into your application’s behavior. Why HTTP Logging Middleware Matters Every HTTP request tells a story. It carries information about who’s accessing your system, what they’re requesting, how long it takes, and whether it succeeds or fails.

Building Production-Ready Rate Limiting Middleware in Go

Bogdan Ungureanu
Rate limiting is your application’s first line of defense against abuse, whether from malicious actors launching denial-of-service attacks, buggy clients stuck in retry loops, or legitimate users inadvertently overwhelming your system. Without proper rate limiting, a single misbehaving client can bring down your entire service, impacting all users and potentially costing your business significant revenue and reputation. In this comprehensive guide, we’ll build a production-grade rate limiting middleware for Go HTTP servers that protects your APIs while maintaining performance and flexibility.