A recursive and self-referential AI agent framework
Project description
Strangeloop
A recursive and self-referential AI agent framework.
Installation
Run the latest version directly without installation from uvx:
$ uvx strangeloop
For developers, from within working copy run:
$ uv run strangeloop
CLI Usage
Strangeloop provides a command-line interface with several commands:
# Run the CLI ad hoc without installation
uvx strangeloop --help
uvx strangeloop hello
uvx strangeloop greet [NAME]
uvx strangeloop info
uvx strangeloop process FILE_PATH [--output OUTPUT_PATH]
# Ask Claude Sonnet 3.7 a question
uvx strangeloop ask "What is recursive self-improvement in AI?"
# Configuration management
uvx strangeloop config set anthropic_api_key "your-api-key"
uvx strangeloop config get anthropic_api_key
uvx strangeloop config list
uvx strangeloop config delete anthropic_api_key
uvx strangeloop config path
If you've installed the package:
# Using the installed CLI
strangeloop --help
strangeloop hello
strangeloop greet [NAME]
strangeloop info
strangeloop ask "What is the meaning of life?" --max-tokens 2048 --temperature 0.8
API Keys and Configuration
To use the Claude Sonnet 3.7 integration, you need to provide your Anthropic API key in one of these ways (in order of precedence):
-
Set in configuration:
strangeloop config set anthropic_api_key "your-api-key"
-
Set as environment variable:
export ANTHROPIC_API_KEY="your-api-key"
Configuration
Strangeloop uses the XDG Base Directory Specification for storing configuration. The configuration file is stored at:
- Linux/macOS:
~/.config/strangeloop/config.json(or$XDG_CONFIG_HOME/strangeloop/config.jsonif set) - Windows:
%APPDATA%\strangeloop\config.json
You can manage configuration using the config command:
# Set a configuration value
strangeloop config set model "claude-3-opus-20240229"
# Get a configuration value
strangeloop config get model
# List all configuration values
strangeloop config list
# Delete a configuration value
strangeloop config delete model
# Show the configuration file path
strangeloop config path
Common Configuration Options
anthropic_api_key: Your Anthropic API key
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file strangeloop-0.1.0.tar.gz.
File metadata
- Download URL: strangeloop-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.30
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00fcaf57accf1f4bef9f5f1ec3756b69dcc5a68594e32886ec4f6f85eec34dbf
|
|
| MD5 |
efa40782c18cea3519e28e0c241f3b6e
|
|
| BLAKE2b-256 |
8280651477ba14f220a4c3fe5ac35e3e52f597c74c798c9a15e2586fcb555162
|
File details
Details for the file strangeloop-0.1.0-py3-none-any.whl.
File metadata
- Download URL: strangeloop-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.30
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6e91e8e3316ea3e847d7da45b81cdb247b321529b780164c345fc12edf4b04f
|
|
| MD5 |
16c7d8b94f11b8b18df5c825f905f408
|
|
| BLAKE2b-256 |
f7d2047732ab4a208401d86f95800295d65d43c44002eee262bc8f5c2fbaf928
|