Skip to content

Josephcc2/AI-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Assistant

Personal helper for your computer using Anthropic's API

Only tested on Windows

Setup

Ensure you have Python latest release installed on your system.

First, set your Anthropic API key as an environment variable:

set ANTHROPIC_API_KEY=your_api_key_here

Next, navigate to your project directory and install the dependency:

pip install rich

Rich is used for showing markdown formatting in the terminal.


Additionally, create a folder named Context. In this folder, you can add files that the assistant can read or write to.

Finally, create a folder named Projects if you would like to import your own projects that the assistant can manage. The assistant will automatically create this folder if it ever builds a project on its own.

Customizing

Default name is John and default Timezone is EST

  • Modify config.py to change selected model, max tokens, and persona (User's name is also found here)
  • Modify tools.py to modify the tools the assistant has access to

Running the Project

To run the project, run the run_chat.bat file

Tools

  • web_search Allows the assistant to use Anthropic's built in web search
  • save_resposne Allows the assistant to save text to a markdown file at the user's discretion
  • create_tool Creates a markdown file with the layout for a new tool. Only runs when user asks and the tool must be implemented by the user before it is functional
  • memory Dynamically stores memory about the user. Runs whenever the user exits out of the program. (Only works if the user types "exit" or "quit" to leave instead of closing the terminal from the close button)
  • read_code Allows the assistant to read, but not write to, its own source code when asked by the user or if necessary

Context

  • read_context Allows the assistant to read context that has been given to the use in the Context folder
  • write_context Allows the assistant to write to/create new files in the Context folder

Projects

  • create_project
  • list_projects
  • read_project_file
  • write_project_file
  • delete_project_file
  • delete_project

About

Personal helper for your computer using Anthropic's API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages