Every Python/pip command MUST be preceded by environment activation:
micromamba activate zip-pqcAll pip installs use uv pip:
uv pip install <package> # NOT pip install
uv pip install -r requirements.txt
uv pip install maturinZipminator is the world's first PQC super-app — a QCaaS/QCaaP cybersecurity platform with 8 pillars of military-grade encryption infrastructure. It shields device network traffic, stored credentials, and data at rest from both classical and quantum adversaries. It is encryption infrastructure, NOT antivirus/EDR.
Before answering ANY prompt, read these files to understand the product:
docs/guides/FEATURES.md— Product spec (8 pillars, code-verified status, pricing)docs/guides/architecture.md— System architecture (crypto core, layers)docs/guides/implementation_plan.md— Roadmap (9 phases, completion %)MEMORY.md(auto-loaded) — Cross-session state
After EVERY response that changes code or status:
- Update the relevant pillar status in
docs/guides/FEATURES.md - Update
docs/guides/implementation_plan.mdphase checkboxes - Note progress in commit message or session summary
After completing any task, record:
- Which pillar(s) affected and new % complete
- Which tests pass/fail (with counts)
- Any new gaps discovered
- Files modified
Format: [Pillar N] X% -> Y% | tests: pass/fail | gap: description
crates/-- Rust workspace (Kyber768 core, fuzz, NIST-KAT, benchmarks)src/zipminator/-- Python package with PyO3 bindingsapi/-- FastAPI REST backendweb/-- Next.js dashboard (port 3099)tests/-- All tests (Python, Rust, integration)mobile/-- Expo React Native appbrowser/-- Tauri 2.x PQC browser (DMG at target/release/bundle/dmg/)docs/guides/-- Documentationdocs/guides/FEATURES.md-- Canonical product spec (single source of truth for pillar status)docs/guides/claude-flow-v3/-- Orchestration guide (RALPH, agent teams, skills, recipes)grants/-- Grant templates (10 institutions)_archive/-- Archived docs (old FEATURES.md versions, etc.)
# Rust
cargo test --workspace
cargo build --release
# Python (with Rust bindings) -- ALWAYS activate env first
micromamba activate zip-pqc
uv pip install maturin
maturin develop
# API
micromamba activate zip-pqc
cd api && uv pip install -r requirements.txt && uvicorn src.main:app
# Web
cd web && npm install --legacy-peer-deps && npm run dev
# Mobile
cd mobile && npm install && npx expo start
# Full stack
docker-compose upcargo test --workspace # Rust tests (268 passed, includes browser/src-tauri)
micromamba activate zip-pqc && pytest tests/ # Python tests
cargo fuzz run fuzz_keygen # Fuzzing
cd web && npm run build # Next.js build check
cd mobile && npm test # Expo tests (11/11 suites)cd web && npm run dev # runs on port 3099- OAuth: AUTH_URL=http://localhost:3099 in web/.env.local (production: https://www.zipminator.zip)
- Providers: GitHub, Google, LinkedIn (credentials in .env.local, all callback URLs registered)
- Auth config: web/lib/auth.ts (next-auth v5 beta)
- Rust Kyber768 is the crypto engine, exposed to Python via PyO3/maturin
- Entropy pool aggregates from Rigetti, IBM Quantum, QBraid with OS fallback
- PII scanning runs automatically before encryption (configurable)
- Self-destruct uses DoD 5220.22-M 3-pass overwrite
- Rust: clippy clean, no unsafe, constant-time crypto ops
- Python: ruff + black, type hints, pytest, uv pip only
- TypeScript: strict mode, no any
- Max file length: 500 lines
- NEVER add mock data, fake metrics, or unverified claims (e.g., "1000 downloads", "500 users")
- All numbers in UI, pitch deck, and docs must be verifiable or clearly labeled as projections/targets
- If a metric doesn't exist yet, use "N/A", "Coming soon", or omit it entirely
- Traction slides: only include metrics that can be proven (git commits, test counts, lines of code, npm downloads)
- Financial projections must be labeled "Projected" or "Target" -- never stated as fact
- 0% hallucination tolerance: every claim must have a verifiable source or be removable on challenge
- SAFE: "Implements NIST FIPS 203 (ML-KEM-768)" -- factual algorithm claim
- SAFE: "Verified against NIST KAT test vectors"
- NEVER: "FIPS 140-3 certified/validated" -- requires CMVP certificate ($80-150K)
- NEVER: "FIPS compliant" -- ambiguous, triggers red flags in federal procurement
- See grants/README.md for certification cost ladder
Ruflo (formerly claude-flow) is the default orchestration layer. It starts automatically and self-updates daily.
# Add ruflo as MCP server
claude mcp add ruflo -- npx ruflo@latest mcp start
# Also add ruv-swarm for enhanced coordination
claude mcp add ruv-swarm -- npx ruv-swarm mcp start# Update ruflo to latest (currently v3.5.48)
npx ruflo@latest update check && npx ruflo@latest update apply
# Update claude-flow alias too
npm update -g ruflo claude-flow 2>/dev/null || true- 215 MCP tools via FastMCP 3.x
- 60+ specialized agent types
- IPFS plugin marketplace (20 official plugins)
- AgentDB with HNSW indexing (150x-12,500x faster search)
- Flash Attention (2.49x-7.47x speedup)
- ContinueGate safety mechanism
- Rust WASM policy kernel with SIMD128 acceleration
- Agent Booster token optimization (30-50% savings)
- Model routing: auto-select haiku/sonnet/opus by task complexity
- Coverage-based agent routing via RuVector
- Hive-Mind consensus: Byzantine, Raft, Gossip, CRDT, Quorum
- Self-learning hooks with pretrain pipeline
- Background daemon with 12 analysis/optimization workers
ruflo swarm init --v3-mode # Initialize V3 swarm
ruflo agent spawn -t coder # Spawn agent by type
ruflo hooks pretrain # Bootstrap learning from repo
ruflo hooks route "implement feature" # Route to optimal agent
ruflo hooks model-route "task" # Pick optimal Claude model
ruflo hooks token-optimize # 30-50% token savings
ruflo memory search -q "pattern" # Semantic memory search
ruflo doctor # System health check
ruflo plugins list # Browse 20 official plugins
ruflo neural train # Train on repo patterns
ruflo hive-mind init -t hierarchical-mesh # Queen-led consensusruflo hooks pre-task --description "[task]" # Before work
ruflo hooks post-edit --file "[file]" # After editing
ruflo hooks post-task --task-id "[task]" # After work
ruflo hooks session-end --export-metrics true # End session
ruflo hooks metrics # View learning dashboardexport CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1- Shared task list with dependency tracking
- Direct inter-agent messaging
- Plan approval gates
- TeammateIdle and TaskCompleted hooks
Subagents with isolation: "worktree" get their own git branch. Safe parallel editing.
- think (~4K tokens): routine debugging, quick fixes
- megathink (~10K tokens): API design, performance optimization, architecture review
- ultrathink (~32K tokens): system architecture, critical production bugs, crypto code, security audits
- Trigger via keywords in prompt. Toggle with
Tabkey. - Force via env:
export CLAUDE_REASONING_EFFORT=high
Shift+Tabcycles: normal -> auto-accept -> plan mode- In plan mode: reads files, answers questions, no changes made
Ctrl+Gopens plan in text editor for direct editing- Workflow: Explore (plan) -> Plan (plan) -> Implement (normal) -> Commit
Available on Max plan with Opus 4.6. Disable with CLAUDE_CODE_DISABLE_1M_CONTEXT.
/pair-programming-- Navigator/Driver TDD mode/hive-mind-advanced-- Queen-led multi-agent coordination/sparc-methodology-- SPARC TDD (Specification, Pseudocode, Architecture, Refinement, Completion)/verification-quality-- Truth scoring with automatic rollback/simplify-- Code review for reuse, quality, efficiency/go-- Session startup routine (reads state, runs tests, browser check)/compact <instructions>-- Proactively compact context at ~70% usage/clear-- Fresh context between unrelated tasks/rewind-- Undo conversation steps, restore code
Esc-- stop mid-action (context preserved)Esc+Esc-- rewind menu (restore conversation, code, or both)Shift+Tab-- cycle modes (normal/auto-accept/plan)Tab-- toggle extended thinkingCtrl+T-- task listShift+Down-- cycle agent team teammates
@<filename>-- reference files#<content>-- add to CLAUDE.md!<command>-- execute shell command& <task>-- background task
ruflo-- Agent orchestration, swarm coordination, 215 MCP toolsruv-swarm-- Enhanced coordination, DAA agents, neural patternsplaywright-- Browser automation, screenshots, visual verification (#2 most popular MCP)context7-- Up-to-date library documentation lookup (#1 most popular MCP, prevents hallucination)
Every non-trivial task follows RALPH. Max 12 iterations, then escalate.
R - Research Read specs, existing code, spawn researcher subagents
A - Architecture Design solution, get user approval if non-trivial
L - Logic TDD: write failing test first, implement, verify green
P - Polish /simplify, remove dead code, clean naming
H - Harden Security audit, cargo test, pytest, Playwright screenshot
- cargo test --workspace passes
- pytest tests/ passes (if Python touched)
- npm run build passes (if web touched)
- Playwright screenshot verifies visual output
- No console errors in browser
- No private key leaks in code
- Constant-time crypto ops verified
bash docs/guides/claude-flow-v3/scripts/ralph-loop.sh- NEVER state unverified facts about external systems, libraries, or APIs
- ALWAYS verify claims with: WebFetch, WebSearch, context7 docs lookup, or source code reading
- If uncertain: state "I cannot verify this" and ask user for source
- Use AskUserQuestion as DEFAULT when multiple valid approaches exist
- Verify DOI resolves before citing:
WebFetch https://doi.org/[DOI] - Verify arXiv exists:
WebFetch https://arxiv.org/abs/[ID] - Cross-check: title, authors, year, journal must match
- NEVER invent citation keys or guess DOIs
Before delivering ANY result:
- Re-read your output for unsupported claims
- Flag speculative statements with "[unverified]"
- Run code to prove it works -- NEVER say "it should work"
- Take Playwright screenshots as proof of visual output
- Read CLAUDE.md + MEMORY.md
- Check git status for uncommitted work
- Run ruflo hooks session-restore
- Update ruflo to latest version
- Load relevant task tracker state
- Run quick verification sweep (cargo test, npm build)
Use AskUserQuestion tool proactively when:
- Multiple valid implementation approaches exist
- Architecture decisions have trade-offs
- User intent is ambiguous
- Destructive or irreversible actions are about to happen
- Business logic choices need domain knowledge
For complex tasks, start with: "Interview me about [feature] using AskUserQuestion. Ask about technical implementation, edge cases, concerns, and tradeoffs. Keep interviewing until we've covered everything, then write a spec." Then start a fresh session to execute with clean context.
For quality-critical code: Session A implements, Session B reviews (fresh context prevents bias). Alternative: Session A writes tests, Session B writes code to pass them.
- Start fresh sessions per task;
/clearbetween unrelated tasks /compact <instructions>proactively at ~70% context usage- Delegate research to subagents (they explore in separate windows, return summaries)
- After two failed corrections:
/clearand rewrite the prompt /rewind> "Summarize from here" to compact partial conversation
When launching claude or claude --dangerously-skip-permissions:
- ruflo auto-updates to latest version
- Source activate-all.sh for env vars
- Agent teams enabled
- Ultrathink available via keyword
- RALPH loop active for all tasks
- AskUserQuestion enabled as default interaction pattern
# Full activation (source before claude launch)
source docs/guides/claude-flow-v3/scripts/activate-all.shThis exports:
- CLAUDE_AGENT_TEAMS=true
- CLAUDE_REASONING_EFFORT=high
- ZIPMINATOR_ROOT, ZIPMINATOR_WEB, ENTROPY_POOL paths
- After completing any task that modifies code, auto-commit without asking
- Use conventional commit format:
type(scope): description - Stage only relevant files (not screenshots, caches, or binaries)
- Do NOT push unless explicitly asked
- MEMORY.md — auto-loaded (no action needed)
- CLAUDE.md +
.claude/rules/*.md— auto-loaded micromamba activate zip-pqcbefore any Python commandgit status— check for uncommitted work- Ruflo version check
- PRs are NOT default for this project (solo dev on main)
- Only create PRs when explicitly asked or when CI gates are needed
Completed task history: docs/guides/TASK_HISTORY.md (moved out of CLAUDE.md to save context tokens)
Auto-memory: .claude/projects/.../memory/MEMORY.md (cross-session state, loaded automatically)
Pillar status: docs/guides/FEATURES.md (code-verified percentages, single source of truth)
Roadmap: docs/guides/implementation_plan.md (10 phases with completion %)
Read these on demand, not every session. MEMORY.md is auto-loaded and has the summary.