Skip to content

radanskoric/coding_agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple coding agent implemented in Ruby, as an experiment accompanying my blog post: "Coding agent in 94 lines of Ruby".

Usage

Whatever method you use, first copy the .env.example file to .env and add your Anthropic API key. If you want to use a different provider, modify the run.rb file and set the key for the other provider. Check RubyLLM configuration documentation for details.

With docker

If you have docker the usage is really simple. Just run the run_in_docker.sh script.

The directory from which you run the script will be mounted into the container as /workspace and will be the directory in which the coding agent will operate.

Without docker

If you're running it without docker you'll need Ruby and bundler installed.

Navigate to the root of the directory, run bundle install.

After that, call ruby /path/to/run.rb from the directory you want to operate on.

Running tests

Execute test/run_all.sh from the root of the project.

About

A prototype coding agent in Ruby, implemented as an exercise accompanying a blog post.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •