Skip to content

POC of an AI agent that can interact with your filesystem using the anthropic SDK and some code in Go

Notifications You must be signed in to change notification settings

DanielOchoa/ai-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI agent

This is a proof of concept for a working AI agent using the anthropic Go SDK in the terminal. It is using Claude 3.5 Haiku. This model is hardcoded in the file client/client.go so it can be edited there to use another model.

You need an anthropic api key to make this work locally. Set it up in your env like this:

export ANTHROPIC_API_KEY="<anthropic api key>"

Example

Example

Tools

It includes 3 tools so the AI can work with your file system:

  • Read files
  • List files
  • Edit files
  • Get weather (US only)

With these three included tools you can ask the LLM Model to check on files, explain to you contents of files, edit or create files - adjust scripts for example, and more.

Credits

Created by Daniel Ochoa based on the example by Thorsten Ball from April 15, 2025 in the ampcode blog.

About

POC of an AI agent that can interact with your filesystem using the anthropic SDK and some code in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages