AIOS: give a LLM full access to your terminal for the sake of science.
This is basically https://github.com/VictorTaelin/AI-scripts/blob/main/chatsh.mjs implemented in Python, with additional features like image analysis, configuration files.
Example usage:
https://github.com/piEsposito/ai-os/assets/47679710/0c8bf030-963b-4a46-aae5-0b3925ed7c36
Installation
- Clone this repository.
- Run
poetry installin the project directory. - Alternatively, install via pip:
pip install pi-ai-os
Usage
aios [options] [initial message]
Options:
-m,--model: Specify the AI model to use (default: claude-3-5-sonnet-20240620)-c,--config: Path to the configuration file-a,--assistant: Use an assistant model for context gathering, hardcoded to Claude Haiku for speed and cost-v,--verbose: Increase output verbosity
Example:
export ANTHROPIC_API_KEY=your_api_key_here
aios -m claude-3-5-sonnet-20240620 "List all files in the current directory"
Features
Image Analysis
To include an image in your query, use the /image command followed by the path to the image:
/image path/to/your/image.jpg Describe this image
Configuration File
AIOS can use a configuration file to provide context about your project. By default, it looks for a file named pi_ai_os.yaml in the current directory. You can specify a different config file using the -c option.
Example configuration file:
allowed_extensions:
- .txt
- .md
- .py
ignored_dirs:
- .git
- node_modules
Context-Aware Assistance
Use the -a or --assistant flag to enable context-aware assistance. This feature uses an assistant model to analyze the project structure and select relevant files for providing context to the main AI model.
Clearing Context
Type /clear or /c during your interaction with AIOS to clear the conversation context.
Verbose Mode
Use the -v or --verbose flag to increase output verbosity, which can be helpful for debugging or understanding the AI's decision-making process.
Metadata
Release files for pi-ai-os 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pi_ai_os-0.0.4.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pi_ai_os-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.1 kB
Release files / pi_ai_os-0.0.4.tar.gz
| Download URL | pi_ai_os-0.0.4.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e19a21952ebe4951b272583447827245a18999baa557d6ede192fe1630d23cdb
|
|
BLAKE2b-256 checksum How to use checksums |
116d3e6b74358c29c34c47637d909b5c32808cd99c9c00f4feaa5688571d0295
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / pi_ai_os-0.0.4-py3-none-any.whl
| Download URL | pi_ai_os-0.0.4-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9477e09eebafc2250b33d6b17fe3062a121642f33ea6c9145530c18c1da22cb
|
|
BLAKE2b-256 checksum How to use checksums |
cc452bdd08721421e7cd23316f823175fac918bdefdcb1269d94d4e19865f421
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|