Autonomous AI researcher for blockchain consensus mechanisms.
ConsensusMind is a local-first autonomous research toolchain for blockchain consensus protocols. It performs literature review, generates hypotheses, runs simulations/experiments, and produces publication-ready outputs (LaTeX paper + Markdown whitepaper).
Current Version: 0.10.0
Project Status: Complete (Milestones 1–10 delivered)
- Project initialization and structure
- Configuration system with TOML and environment variable support
- Logging infrastructure (file + console)
- LLM client with exponential backoff retry logic
- Integration tests
- Production-ready code quality (zero warnings)
- arXiv API integration with HTTPS
- PDF download and local storage
- JSON-based metadata tracking
- PDF text extraction and analysis
- Rate limiting and error handling
- Search and store workflow
- Local embedding index build/update
- Semantic search over indexed papers
- Agent runner with step tracking and persisted run memory
- Report generation
- Deterministic simulators with CLI entrypoints
- LLM-driven hypothesis generation with novelty scoring
- Hypotheses persistence and reporting
- Experiment runner tied to hypothesis IDs
- Results saved under data/experiments and summarized into output reports
- LaTeX paper generation from hypotheses and experiment results
- Unified CLI entrypoints (help/version and command usage)
- Repo structure improvements for outputs and data directories
- Whitepaper (Markdown) and research paper (LaTeX) generation from hypotheses and experiment results
- Configuration management from TOML files
- Environment variable overrides for sensitive data
- Structured logging to file and console
- HTTP client for vLLM/RunPod inference endpoints
- Automatic retry with exponential backoff
- Comprehensive error handling
- arXiv paper search and retrieval
- PDF download with duplicate detection
- Metadata persistence in JSON
- PDF text extraction for analysis
- Local embedding index + semantic search
- Agent run pipeline (search, download, index, retrieve, summarize, report)
- Hypothesis generation and persistence
- Consensus simulation and experimentation
- LaTeX paper generation from experiment outputs
- CLI help/version and stable command interface
- Whitepaper + research paper publishing commands
Built in Rust for production reliability and performance.
Core Components:
- Agent executor with planning and memory
- Knowledge base with vector search
- Consensus protocol simulator
- LLM client for reasoning tasks
- LaTeX/Markdown output generation
- arXiv integration for paper retrieval
- PDF parsing and text extraction
Tech Stack:
- Language: Rust 2021 edition
- Async Runtime: Tokio
- HTTP Client: Reqwest with rustls
- Logging: Tracing
- Config: TOML
- LLM: Self-hosted vLLM (DeepSeek/Qwen)
- PDF Processing: pdf-extract
- Data Storage: JSON metadata + local files
- Rust 1.70+
- GPU inference server (RunPod, self-hosted vLLM, or compatible endpoint)
- Storage for paper corpus
git clone https://github.com/ChronoCoders/consensusmind.git
cd consensusmind
cargo build --releaseCreate config.toml in the project root with LLM endpoint, model settings, paths, agent parameters, and logging configuration.
For secrets (like API keys), use either:
- Environment variables (recommended), or
config.local.toml(kept out of git via.gitignore)
Environment variable overrides available:
- LLM_ENDPOINT
- LLM_API_KEY
- LLM_MODEL
- CONFIG_PATH
Additional settings:
knowledge.max_pdf_bytescontrols the maximum allowed PDF download size.
consensusmind run "<query>"
consensusmind hypothesize "<query>"
consensusmind experiment <hypothesis-id> [--seeds N] [--ticks T] [--nodes N]
consensusmind paper <hypothesis-id>
consensusmind whitepaper <hypothesis-id>
consensusmind publish <hypothesis-id>
consensusmind index
consensusmind semantic-search "<query>" [top_k]
consensusmind simulate [rounds] [leader_failure_prob] [seed]
consensusmind raft-simulate [nodes] [ticks] [seed]
consensusmind help
consensusmind --versionSupports end-to-end research runs, hypothesis generation, experiments, and paper/whitepaper generation.
Artifacts are written to disk so runs are reproducible and auditable:
data/metadata.json: paper metadata storedata/embeddings/index.json: local embedding indexdata/hypotheses.json: generated hypothesesdata/experiments/<hypothesis-id>/results.json: experiment resultsoutput/reports/*.json: run/hypothesis/experiment reportsoutput/papers/*.tex: generated LaTeX papersoutput/papers/*.md: generated Markdown whitepapers
cargo build # Build debug
cargo test # Run tests
cargo fmt # Format code
cargo clippy # Lint
cargo build --release # Build optimizedThis repository does not ship GitHub Actions workflows. Run the commands above locally for formatting, linting, and tests.
- Milestone 1: Foundation & Infrastructure
- Milestone 2: Knowledge Ingestion
- Milestone 3: Knowledge Base
- Milestone 4: Agent Core
- Milestone 5: Consensus Simulator
- Milestone 6: Hypothesis Generation
- Milestone 7: Automated Experimentation
- Milestone 8: Paper Generation
- Milestone 9: Integration & Polish
- Milestone 10: Whitepaper & Research Paper
Apache 2.0 - See LICENSE file
Distributed Systems Labs, LLC
- GitHub: https://github.com/ChronoCoders/consensusmind
- Website: https://dslabs.network
This project maintains strict code quality standards:
- Zero compiler warnings
- Zero dead code
- Zero unused imports
- Production-ready quality required
Contributions welcome via pull requests.