Posts
Improve AI Context: Use Your Local Go Module Cache
When I used an AI assistant to write Go code that used a third-party library, it sometimes generated code with wrong function signatures, missing types, or outdated APIs - especially for packages that were new or not very popular. After a while, I started instructing the assistants to look at specific files in my Go module cache. While this helped, it was hard to synchronize prompts and rules across all the AI assistants I used, whether that’s Cursor IDE, Claude, or others.
To address this issue, I built a simple MCP server that keeps everything in one place. In this blog post, I’ll explain how to use it and compare the results with and without the MCP.
Why Copying Go Lock Is a Bad Idea
When working with Go structs that contain mutexes, you might be tempted to copy them. But is it safe to copy a struct with a sync.Mutex? Let’s explore why copying structs with locks can lead to unexpected behavior and subtle bugs.
How to Install Prometheus Grafana on Macos
Curious how your Mac is really performing? Here’s a quick guide to setting up Prometheus and Grafana on macOS for local, private system monitoring.