Coder Social home page Coder Social logo

claude-tools-agent's Introduction

super-claude

An autonomous agent based on Anthropic's tools beta and Claude-3

Usage

super-claude is currently used via command-line. It allows you to chat with Claude and instruct it to use tools on your behalf. Tools are golang plugins in the tools/ directory.

  • Run super-claude from source: $ go run main.go
  • Build and run: $ build.sh
  • Extract and run: $ tar -xzf super-claude.tar.gz && ./super-claude

Tools

super-claude can use the tools in the tools/ directory, which are written in Go and compiled as plugins. A tool has two components:

  • A JSON schema which defines the name, description, and parameters of a tool
  • A Go plugin which has the following signature:
    func TOOL_NAME(map[param]any) anthropic.Content

A Tool needs to be structured as follows:

.
├── tools
│   ├── build.sh
│   ├── tool_name
│   │   ├── tool_name.go
│   │   ├── tool_name.json
|   |   └── tool_name.so
│   └── validate.py

The "name" top-level attribute in tool_name.json should also be tool_name.

Validating Tools:

Run tools/validate.py to make sure your files and functions are named correctly. validate

Compiling Tools:

tools/build.sh will iterate over tools/ and compile each Go file as a plugin. compile tools

Using compiled tools

Claude can deal with chain tool usages and deal with errors as seen here use tools

claude-tools-agent's People

Contributors

hunterjsb avatar jcpage573 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.