marvin
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Pass
- Code scan — Scanned 1 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Interactive CLI chatbot built on Rig with Claude: streaming, tools, persistence. Includes an upstream fix to Rig.
marvin
A small CLI chat application built to learn the Rig framework in Rust.
What it does
Runs an interactive terminal chat loop backed by Anthropic's Claude via Rig. Supports a configurable preamble (system prompt) in src/chat/preamble.txt and maintains conversation history across turns.
User Commands
| Command | Description |
|---|---|
/model |
Switch between available Claude models |
/tokens |
Show token usage |
/history |
Show last 10 messages from chat history |
/save |
Save chat history to file |
/import <id> |
Import chat history from a saved file |
/summarize |
Ask the agent to summarize the conversation |
/compact |
Condense conversation history |
/clear |
Clear chat history |
/help |
List all available commands |
/exit |
Print farewell message and end the session |
Agent Tools
The AI agent can invoke the following tools during conversation:
Math Tools
| Tool | Description |
|---|---|
add |
Add two numbers |
subtract |
Subtract two numbers |
multiply |
Multiply two numbers |
divide |
Divide two numbers |
Web Tools (via Tavily API)
| Tool | Description |
|---|---|
search_web |
Search the web for current information |
extract_url |
Extract clean content from specific URLs |
crawl_website |
Crawl a website and extract content from linked pages |
map_website |
Discover all URLs on a website without extracting content |
Setup
- Clone the repo and make sure you have Rust installed (
rustup/cargo). - Copy
.env.exampleto.envand fill in your values:ANTHROPIC_API_KEY— your Anthropic API keyTAVILY_API_KEY— your Tavily API key (for web tools)
- Build and run:
cargo run
Goal
This project exists to learn Rig by reading its source, experimenting with its APIs, and building up features incrementally. Contributions and experiments are welcome.
License
MIT — see LICENSE.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found