Multi-agent AI system for structured due diligence with critic-driven reasoning, semantic memory, MCP access, and verifiable report provenance.
ClawMind orchestrates specialized AI agents to research a task, identify risks, challenge weak assumptions, and produce a structured decision report.
Web3 due diligence is the current application domain; the core project focuses on agent orchestration, memory, evaluation, tool interfaces, and verifiable AI workflows.
Live App · Demo Video · Documentation · MCP Server
flowchart LR
User[User Task] --> Memory[Semantic Memory Retrieval]
Memory --> Planner[Planner]
Planner --> Researcher[Researcher]
Researcher --> Risk[Risk Agent]
Risk --> Architect[Architect]
Researcher --> Critic[Critic]
Risk --> Critic
Architect --> Critic
Critic --> Final[Final Agent]
Final --> Storage[Report Storage]
Storage --> MemoryIndex[Persistent Memory]
Storage --> Registry[Verifiable Registry]
The reasoning pipeline separates responsibilities instead of relying on a single monolithic prompt.
The final decision is influenced by the evidence collected by the agents and by unresolved challenges raised by the Critic.
ClawMind separates the reasoning workflow into specialized stages for memory retrieval, planning, research, risk assessment, architecture review, adversarial critique, and final decision-making.
The Critic produces structured challenges with severity levels and explanations. Unresolved challenges feed directly into the final score adjustment.
Completed analyses are stored with provenance metadata so the generated report can be independently identified and verified.
Breaks the user task into a structured investigation plan.
Collects and organizes evidence relevant to the task.
Identifies technical, operational, governance, and security risks.
Evaluates the proposed system or protocol architecture.
Challenges assumptions and findings produced by the other agents.
Unresolved critic findings affect the final score rather than being treated as decorative commentary.
Combines the evidence, risk analysis, architecture review, and critic feedback into a structured recommendation:
GO
INVESTIGATE_MORE
NO_GO
- Multi-agent orchestration — specialized agents with separated responsibilities.
- Critic-driven reasoning — adversarial review can directly affect the final decision.
- Semantic memory — previous analyses are embedded and retrieved as context for future runs.
- Persistent memory — runtime-generated knowledge can be reused across analyses.
- Structured outputs — agent stages exchange structured data instead of relying only on free-form text.
- MCP interface — the same analysis pipeline is accessible from MCP-compatible clients.
- API-first architecture — analysis, retrieval, verification, and reporting are exposed through application APIs.
- Verifiable reports — report provenance and integrity can be independently checked through the storage and registry layer.
- Automated quality checks — linting, type checking, unit tests, smart-contract tests, and production builds are part of CI.
ClawMind uses semantic memory to retrieve relevant information from previous analyses before starting a new reasoning run.
Previous Analyses
|
v
Embeddings
|
v
Semantic Search
|
v
Relevant Memory
|
v
Agent Pipeline
After an analysis completes, new knowledge can be written back into persistent memory for future runs.
This creates a feedback loop:
Retrieve -> Reason -> Evaluate -> Store -> Retrieve
ClawMind exposes a remote Model Context Protocol server for MCP-compatible clients.
Current tools include:
analyze_web3_project(task)
get_recent_analyses(limit)
MCP endpoint:
https://clawmind-mcp.vercel.app/mcp
Example configuration:
{
"mcpServers": {
"clawmind": {
"url": "https://clawmind-mcp.vercel.app/mcp",
"headers": {
"X-MCP-Client-Id": "demo-client"
}
}
}
}The AI pipeline is separated from the verification layer.
After the Final Agent produces a report:
Final Report
|
+--> Report Storage
|
+--> Memory Index
|
+--> Signed Registry
The current implementation uses 0G infrastructure for inference, storage, and report provenance.
On-chain integrity proves that a particular report hash was recorded; it does not prove that the AI-generated conclusion is correct.
AI & Agents
LLM Agents
Agent Orchestration
Semantic Memory
Embeddings
MCP
Structured Outputs
Application
TypeScript
Next.js
React
REST APIs
Redis
Transformers.js
Infrastructure
Docker
Vercel
GitHub Actions
Verification
0G Compute
0G Storage
0G Chain
Solidity
Foundry
EIP-712
Node.js >= 18.18
git clone https://github.com/ILYUTKICK/clawmind.git
cd clawmind
npm install
cp .env.example .env
npm run devOpen:
http://localhost:3000
docker build -t clawmind .
docker run --env-file .env -p 3000:3000 clawmindRun the full application checks:
npm run ciValidate the MCP server:
npm run ci:mcpRun smart-contract static analysis and tests:
npm run audit:contractsThe repository includes checks for:
- ESLint
- TypeScript
- production Next.js build
- unit tests
- MCP lint/typecheck/build
- Foundry contract tests
- smart-contract static analysis
| Endpoint | Purpose |
|---|---|
POST /api/analyze |
Runs the analysis pipeline |
GET /api/judge |
Returns runtime and verification information |
GET /receipt/[analysisId] |
Displays a report verification receipt |
GET /api/openclaw/manifest |
Returns the cognitive pipeline manifest |
POST /api/report/retrieve |
Retrieves a stored report |
clawmind/
├── app/ # Next.js application and APIs
├── apps/
│ └── mcp-server/ # Remote MCP server
├── components/ # UI components
├── contracts/ # Verification registry and tests
├── docs/ # Extended technical documentation
├── lib/
│ ├── agents/ # Specialized reasoning agents
│ ├── embeddings/ # Embedding layer
│ ├── memory/ # Semantic and persistent memory
│ ├── orchestrator/ # Agent workflow orchestration
│ ├── storage/ # Report storage
│ └── contracts/ # Verification integration
├── scripts/
├── tests/
├── Dockerfile
└── package.json
- ClawMind is a decision-support system, not a formal security audit or exploit detector.
- Agent conclusions depend on the quality of available evidence and model reasoning.
- Semantic memory can improve context reuse but can also propagate poor historical information if it is not evaluated.
- Report integrity proves that a specific output was recorded; it does not guarantee factual correctness.
- Systems involving custody, signing keys, protocol upgrades, or automated execution should still use deterministic controls and human approval outside the LLM pipeline.
Extended documentation covers:
- system architecture;
- agent responsibilities;
- semantic memory;
- evaluation methodology;
- MCP integration;
- verification and provenance;
- deployment and security.
See docs/.


