8000 GitHub - keegnotrub/agent: A set of zshell scripts for interfacing with Codestral
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

keegnotrub/agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

agent

Agent is a set of zshell scripts (agent and agentc) for interfacing with Mistral's Codestral.

Installation

After running the requirements, use the Makefile

$ git clone https://github.com/keegnotrub/agent
$ cd agent
$ sudo make install

Requirements

Login to Mistral's La Plateforme and setup an API key from the "Codestral" page.

$ open https://console.mistral.ai/codestral
$ echo 'export CODESTRAL_API_KEY="your_api_key"' >> $HOME/.zprofile

Install the needed binaries in your package manager of choice.

# Macports
$ sudo port install jq

# Homebrew
$ brew install jq

Usage agent

$ agent <skill> <command>

These are the available agent skills:
rails     Ruby on Rails
react     React
web       Web

These are the agent commands used in various situations:
ask       Ask anything
debug     Debug an error
explain   Explain code
improve   Improve code

Text should be piped to the agent for context.
$ cat app/models/user.rb | agent rails improve

Usage agentc

$ agentc <cursor>

Use cursor to provide the position for completion within text.

Text should be piped to the agent for completion.
$ cat app/models/user.rb | agentc 732

About

A set of zshell scripts for interfacing with Codestral

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0