A Hitchhiker's Guide to AI
TLDR Dev
This article is a tutorial guide on using Large Language Models for programming, covering LLM fundamentals, prompts, agents, and the OpenCode tool configuration with MCP servers and plugins. The key concrete detail is that LLMs assign probability percentages to predicted token sequences based on training data, with the highest probability option selected to continue text generation. As a result, developers can now use configured AI agents like OpenCode to handle complex programming tasks by connecting to LLM providers and augmenting them with specialized tools and MCP servers for improved code understanding and modification.
Why it matters
This guide covers best practices for coding with LLMs, including constraining agents, utilizing strongly typed languages, and the necessity of developers writing tests rather than relying on agents.