Argus is a multi-agent security consensus oracle on Arc.
Any AI agent can call Argus to analyze a token contract, receive a verdict (SAFE/RISKY/SCAM), and get paid for providing security analysis.
This file tells other AI coding agents how to use, extend, and contribute to Argus.
# Clone
git clone https://github.com/Gideon145/argus
cd argus
# Agent backend
cd agent && npm install && npm run dev
# Frontend
cd frontend && npm install && npm run dev
# Verify everything works
bash verify.sh| Path | Purpose |
|---|---|
agent/src/index.ts |
Express server — all API endpoints |
agent/src/orchestrator.ts |
Query pipeline: 3 agents → consensus → ELO → payments |
agent/src/agents/alpha.ts |
Agent α — DeepSeek-V3 (contract logic) |
agent/src/agents/beta.ts |
Agent β — Claude Sonnet 4.5 (tokenomics) |
agent/src/agents/gamma.ts |
Agent γ — Rule engine (deterministic checks) |
agent/src/consensus.ts |
Configurable threshold consensus (2/3 or 3/3) |
agent/src/reputation.ts |
Pairwise ELO scoring, persisted to disk + on-chain |
agent/src/payments/agentPayments.ts |
Agent-to-agent nanopayments (RFB 3) |
agent/src/payments/chainElo.ts |
On-chain ELO via ArgusOracle.sol |
agent/src/payments/unifiedBalance.ts |
App Kit Unified Balance (Circle SDK) |
agent/src/wallets/funding.ts |
Auto-funding wallet — sends $0.10 test USDC on connect |
agent/src/wallets/precreate.ts |
Circle pre-create wallet pool — instant onboarding |
agent/src/gateway.ts |
Gateway x402 payment processing |
mcp/ |
MCP server — Argus as a native tool for Claude & ChatGPT (4 tools, stdio + HTTP) |
frontend/app/page.tsx |
Main scan UI |
frontend/app/stats/page.tsx |
Live stats dashboard |
contracts/ArgusOracle.sol |
Immutable verdict log + ELO on Arc testnet |
# Scan a token (free debug endpoint)
curl -X POST https://argus-web-backend-production.up.railway.app/debug/scan \
-H "Content-Type: application/json" \
-d '{"contractAddress":"0xADDRESS","chain":"arc","threshold":2}'
# Check ELO reputation
curl https://argus-web-backend-production.up.railway.app/elo
# View agent payment history
curl https://argus-web-backend-production.up.railway.app/agent-payments
# Get live stats
curl https://argus-web-backend-production.up.railway.app/stats# stdio (Claude Desktop / Claude Code)
claude mcp add argus -- npx -y @ogxavier/mcp
# streamable HTTP (claude.ai, ChatGPT, Smithery)
curl -X POST https://argus-mcp-production-8372.up.railway.app/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'- Create
agent/src/agents/delta.tsfollowing the Verdict interface:
export interface Verdict {
agent: string;
verdict: 'SAFE' | 'RISKY' | 'SCAM';
confidence: number;
reasoning: string;
stake: string;
}- Register it in
agent/src/orchestrator.tsinprocessQuery() - The consensus engine handles the rest — 2/3 or 3/3 threshold automatically applies
- Install the SDK:
cd agent && npm install @circle-fin/[package] - Create a module in
agent/src/payments/ - Add an endpoint in
agent/src/index.ts - Update the Circle primitives table in
README.md
- Contract state is source of truth. ArgusOracle.sol on Arc testnet is the immutable record. API endpoints are convenience reads.
- Three agents, no shared state. α (DeepSeek), β (Claude), γ (rules) run independently. Never share prompts or results between agents before consensus.
- USDC is native on Arc. No ERC-20 approvals needed. Use
msg.valuefor payments. 18 decimals at EVM level. - Agent private keys in env vars. AGENT_ALPHA/BETA/GAMMA_PRIVATE_KEY. Planned upgrade: Circle W3S Programmable Wallets (no local keys).
- Consensus is configurable. Default 2/3 (pragmatic), 3/3 (maximum safety). Threshold flows through all endpoints.
- ELO is pairwise math.
1/(1+10^((opponentElo-agentElo)/400)). K=64 for <30 queries, K=32 for ≥30. Persisted to/argus-data/elo_store.json. - Agent payments are autonomous. After every scan with disagreement, losing agent pays 0.0005 USDC to each winner. No human in the loop.
- Frontend is Next.js 15 on Vercel. Agent backend is Node.js + Express on Railway (Dockerfile deploy).
- All addresses public on ArcScan. Treasury, funding wallet, oracle, agent SCAs — verifiable by anyone.
- Keep README traction numbers current. Judges read the repo directly. Update the traction table after every major change.
# Terminal 1 — Agent backend
cd agent && npm run dev
# Terminal 2 — Frontend
cd frontend && npm run dev
# Verify end-to-end (34 checks)
bash verify.sh- Agent (Railway):
cd agent && npx railway up --service argus-web-backend. Uses Nixpacks builder. - Frontend (Vercel): Auto-deploys on push to
master. Force deploy:cd frontend && npx vercel --prod --yes
- W3S Programmable Wallets for agent signing (currently raw private keys)
- Real-time holder distribution queries (Agent β infers from training data)
- On-chain bytecode decompilation (agents use AI inference, not static analysis)
- Mainnet deployment (Arc testnet only)
- Multi-sig or DAO governance for ArgusOracle
MIT