Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ config.toml
*.swp
*.swo
.env
rustbot.db*
164 changes: 163 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,21 @@ anyhow = "1"

# Async utilities
futures = "0.3"

# Async trait support
async-trait = "0.1"

# SQLite database with FTS5 and vector search support
rusqlite = { version = "0.34", features = ["bundled", "modern-full"] }

# UUID for message/entry IDs
uuid = { version = "1", features = ["v4"] }

# Chrono for timestamps
chrono = { version = "0.4", features = ["serde"] }

# Background task scheduler
tokio-cron-scheduler = "0.13"

# SQLite vector search extension
sqlite-vec = "0.1"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ See [`config.example.toml`](config.example.toml) for all options.
| `openrouter.api_key` | OpenRouter API key |
| `openrouter.model` | LLM model ID (e.g., `qwen/qwen3-235b-a22b`) |
| `sandbox.allowed_directory` | Directory for file/command operations |
| `embedding` (optional) | Vector search for memory |
| `mcp_servers` | List of MCP servers to connect |

### MCP Server Configuration
Expand Down
20 changes: 20 additions & 0 deletions config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,26 @@ Be concise and helpful."""
# The bot cannot access files outside this directory
allowed_directory = "/tmp/rustbot-sandbox"

[memory]
# Path to the SQLite database file for persistent memory
# Stores conversations, knowledge base, and vector embeddings
database_path = "rustbot.db"

[skills]
# Directory containing skill markdown files
# Skills are natural-language instructions loaded at startup
directory = "skills"

# Embedding API for vector search (optional)
# When configured, enables hybrid vector + FTS5 search for memory.
# Without this, falls back to FTS5 keyword search only.
# Works with any OpenAI-compatible /v1/embeddings endpoint.
# [embedding]
# api_key = "YOUR_OPENROUTER_API_KEY"
# base_url = "https://openrouter.ai/api/v1"
# model = "qwen/qwen3-embedding-8b"
# dimensions = 1536

# MCP Server Configurations
# Each [[mcp_servers]] block defines an MCP server to connect to
# The bot will discover and register tools from each server
Expand Down
Loading