Build your own ai harness
The following examples will walk you through creating a basic AI agent harness in Go.
Make a simple chat completion request using an OpenAI-compatible API.
Have a conversation with an AI agent by implementing a simple chat loop.
Give the agent access to read files by implementing a read tool.
Give the agent access to write and edit files by implementing an edit tool.
Give the agent the power to call bash commands.
Give the agent access to the web by implementing a web search tool (firecrawl in this example).
Reading system instructions from the filesystem to replace the default system prompt.
Implement a slash command. "/new" should reset the conversation.