From d6fe8443a8bb6eeedaa7f8cb1f25f46491089c57 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 6 Mar 2025 13:50:12 +0100 Subject: Add claude llm and ask command --- README.md | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index f717262..a7ccc1f 100644 --- a/README.md +++ b/README.md @@ -21,24 +21,36 @@ $ uv run strangeloop Strangeloop provides a command-line interface with several commands: ```bash -# Display help -strangeloop --help +# 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?" +``` -# Print a hello message +If you've installed the package: +```bash +# Using the installed CLI +strangeloop --help strangeloop hello - -# Greet a user strangeloop greet [NAME] - -# Display information about the environment strangeloop info strangeloop info --verbose - -# Process a file strangeloop process FILE_PATH [--output OUTPUT_PATH] +strangeloop ask "What is the meaning of life?" --max-tokens 2048 --temperature 0.8 ``` -You can also run the CLI directly without installation: - +You can also run the CLI directly from the source: ```bash -python main.py --help +uvx run strangeloop --help +``` + +## Environment Variables + +The following environment variables are required: + +- `ANTHROPIC_API_KEY`: Your Anthropic API key for accessing Claude Sonnet 3.7 -- cgit v1.3.1