hehe hehe
hehe hehe cubed
A Rust implementation of an autonomous AI agent that interacts on social media, manages cryptocurrency transactions, and maintains both short and long-term memory.
- Autonomous social media interaction
- ETH wallet management and transactions
- Short-term and long-term memory systems
- Vectorized memory storage and retrieval
- Automated posting and interaction scheduling
- Rust 1.75+
- PostgreSQL 15+
- OpenAI API key
- Twitter API credentials
- Ethereum node access (Mainnet)
Copy .env.example
to .env
and configure:
env
DATABASE_URL=postgres://user:pass@localhost/nousflash
OPENAI_API_KEY=your_key
TWITTER_API_KEY=your_key
TWITTER_API_SECRET=your_secret
TWITTER_ACCESS_TOKEN=your_token
TWITTER_ACCESS_SECRET=your_secret
ETH_MAINNET_RPC=your_rpc_url
bash
Build and run
cargo run --release
Run with development settings
cargo run
Run tests
cargo test
Uses Diesel ORM with PostgreSQL. Initialize the database:
bash
cargo install diesel_cli --no-default-features --features postgres
diesel setup
diesel migration run
The system consists of several key components:
-
Memory Systems
- Short-term memory for recent interactions
- Long-term memory with vector embeddings
- Significance scoring for memory retention
-
Social Interaction
- Autonomous posting
- Reply generation
- Timeline analysis
-
Wallet Management
- ETH transaction handling
- Balance monitoring
- Transaction decision making
-
Pipeline System
- Scheduled activation periods
- Interaction frequency control
- State management