v5.5.0 · PRODUCTION · 0 mypy errors
Be the first star!

c4reqber

The cognitive exoskeleton for humans and AI agents.
Think. Simulate. Prove. Discover.

Z₃³ COGNITIVE EXOSKELETON · 27 STATES · 6 OPERATORS · 47 SOURCES · 38 ENGINE-BRÜCKEN · 21 MCP TOOLS

AGPL-3.0 · BYOK · Multi-Prompt Router · Terminal-First · OpenRouter · XAI · Mistral · Moonshot · DeepSeek · Liquid · NVIDIA · YandexGPT · Ollama · LM Studio · MLX

27
Cognitive States
6
C4 Operators
47
Knowledge Sources
38
Simulation Engines
21
MCP Tools
10k+
Tests Passing

Agents Can Talk. But Can They Think?

AI agents have language. They lack cognition. c4reqber is the scientific body for the agentic mind.

No Simulation

LLMs generate hypotheses but cannot test them. No physics engine, no statistical validation, no ground truth.

No Verification

ChatGPT "proves" theorems by generating convincing text. Formal verification requires Lean4, Coq, Dafny.

No Meta-Reflection

Agents lack meta-cognition. They cannot track their own thinking state or reconfigure strategy.

No Scientific Rigor

Falsifiability, real citations, reproducibility — the foundation of science. Absent from most agent frameworks.

c4reqber solves all four. Formal verification + 38 simulation engine bridges + Z₃³ cognitive topology + real citations.

The Only AI Cognitive Exoskeleton

Not features. Cognitive organs. Each module is a real implementation.

Z₃³ Cognitive Topology

27 discrete cognitive states across Time, Scale, and Agency dimensions. Every query is mapped, tracked, and navigable.

Z₃³Theorem 9Theorem 11

Formal Verification Engine

Lean4, Coq, Dafny, Agda, Z3, Hoare logic — your hypotheses don't just claim, they prove.

Lean4CoqDafnyZ3

38 Simulation Engine Bridges

Molecular dynamics (GROMACS, OpenMM), quantum (PySCF), CFD (OpenFOAM), neuro (NEURON), and more.

GROMACSOpenFOAMPySCFNEURON

47 Knowledge Sources

arXiv, PubMed, Semantic Scholar, OpenAlex, Europe PMC, Crossref, Zenodo, ClinicalTrials.gov, GBIF, NASA Earthdata, and other configured sources.

arXivPubMedDOI

Automated Dissertation Generator

LaTeX + BibTeX + Markdown + JSON + HTML exports. Ready for arXiv, bioRxiv, or your advisor's desk.

LaTeXBibTeXMarkdown

MCP Server — 21 Tools

Expose full C4REQBER capability to AI agents. JSON Schema compliant. stdio JSON-RPC.

20 ToolsJSON SchemaClaude

Research Audiences

From hard science to social sciences — c4reqber adapts to your domain.

Hard Science

Physics, chemistry, biology, materials. TRIZ + 38 simulation engine bridges + formal verification.

GROMACSOpenFOAMPySCFLean4

Psychology & Social Sciences

CBT meta-analysis, organizational behavior, political psychology. Causal inference + agent models.

RCTSEMAgent-based

Clinical Research

RCT design, biomarkers, drug-drug interactions. PubMed + ClinicalTrials.gov + STRING.

PubMedSTRINGTrials
🌎

Climate & Ecology

Biodiversity, climate modeling, ocean dynamics. GBIF + NASA Earthdata + WRF.

GBIFNASAWRF

Law & Policy

Legal reasoning, precedent analysis, regulatory impact. Multi-jurisdiction + temporal reasoning.

PrecedentRegulatoryTemporal

C4-META vs. The Field

Discrete group-theoretic cognitive space. Not neural networks. Not symbolic rules. Mathematical topology.

ModelFormalismC4-METASOARACT-RGWTIITPMCSFConSpacesFreudPlato
DimensionsDimensions3 (Z₃)221N17333
StatesStates27 (discrete)SymbolicChunksBroadcastΦContinuousRegionsPsychoanal.Forms
RepresentationRepresentationDiscrete (Z₃³)Symbolic (rules)Symbolic (chunks)Continuous (broadcast)Continuous (Φ)Continuous (17D vectors)Geometric (regions)PsychoanalyticDialectical (forms)
FormalismFormalismGroup theoryProductionProductionDescriptiveInfo. theoryVectorsGeometryClinicalPhilosophy
VerificationVerificationLean4 + CoqNoNoNoNoNoNoNoNo
NavigationNavigationTheorem 9RulesRulesNoNoGradientPathsNoNo
ReachabilityReachabilityTheorem 11NoNoNoNoNoNoNoNo
Cross-DomainCross-DomainUniversalAI onlyCognitiveConscious.Conscious.NLP onlySpatialNoNo
Open SourceOpen SourceAGPL-3.0BSDBSDNoNoNoMITNoNo
Peer-ReviewedPeer-ReviewedarXiv (soon)YesYesYesYesYesYesNoNo

c4reqber vs. The Market

Not an LLM wrapper. A cognitive operating system.

ProductCognitionChatGPTClaudePerplexityElicitConsensussciteSemanticResearchRabbitConnectedPapersGalacticaMinervaAlphaProofAlphaGeometryFunSearchc4reqber
Lit. ReviewLit. Review
HypothesisHypothesis
SimulationSimulation
Formal VerifyFormal Verify
Multi-DomainMulti-Domain
Auto PublishAuto Publish
WASM RuntimeWASM Runtime
MCP ServerMCP Server
Open SourceOpen SourceAGPL-3.0
PricePrice$20/m$20/m$20/m$0$0$0$0$0$0DeadInternalInternalInternal~$0.35/run

● Yes · ○ No · ◐ Partial

Pipeline Phases — Model per Stage

7 phases. Each gets its own LLM model, plugins, and cognitive strategy.

PhaseStageModelPlugins
AC4 Cognitive Framingclaude-sonnet-4.6info_theory, dim_reduction
BKnowledge Searchqwen-2.5-72btext_distance, graph_metrics
CGap Analysisqwen-2.5-72btimeseries, text_distance
DHypothesis Generationclaude-sonnet-4.6SWOT, Delphi, Red Team
ESimulation & Verification(compute plugins)Monte Carlo, DFT, PCA, Nelder-Mead
FDissertationclaude-sonnet-4.6hash_fingerprint
GQuality Controlgpt-4o-ministat_tests, dist_analyzer

From Question to Discovery

7 stages. Each transforms, validates, and enriches. No black boxes.

🔒

Sanitize

Strip HTML, normalize unicode, block injection

C4 Space

Fingerprint into Z₃³ cognitive coordinate

📖

Knowledge

47 sources + QZRF/CDI analysis

💡

Hypothesis

Multi-agent debate + TRIZ templates

Sim + Verify

38 engine bridges + Lean4/Coq/Dafny

Quality Gates

8-gate scoring + self-critique

📝

Output

Dissertation, article, code, report

Paradigm Shifts Detected

Real results. Real citations. Real verification.

ALREADY_SHIFTED 100% confidence

Sleep as Active Maintenance

Detected that the hypothesis "sleep is active maintenance" has already been shifted by existing research. Consensus meter: 93.3%.

Lean4: proof_skeleton.generated
Sources: 10 verified citations
Verdict: ALREADY_SHIFTED
SHIFTED 66.67% confidence

Language Horizontal Gene Transfer

Full article (4,985 chars). 10 sources. Bayesian AUC: 0.32. Uncertainty: 0.34. Passed ALL gates.

Article: LANG_EVOLUTION_DISSERTATION.md
Sources: 10 · Bayesian AUC: 0.32
Verdict: SHIFTED

Multi-Agent Debate

Analyst, Scientist, Critic, Synthesizer. Each with a distinct cognitive role.

🔬

Analyst

Breaks problem into entities, maps dependencies, ranks by centrality. SystemAnalyzer extracts the structure.

💡

Scientist

Generates hypotheses via TRIZ, C4 navigation, literature gaps. Explores the unknown systematically.

📝

Critic

Nature reviewer persona. Falsification engine. Platt's Strong Inference. Finds the holes before publication.

Synthesizer

Resolves contradictions (CDI), builds consensus, writes dissertation. Consensus meter: 93.3% typical.

MCP Native — 21 Tools

JSON Schema compliant. stdio JSON-RPC. Claude, Cursor, Cline, Continue.dev.

c4_solve

12-stage discovery pipeline

c4_search

47 configured knowledge sources

c4_triz

Contradiction resolution

c4_fingerprint

Z₃³ state classification

c4_verify

Lean4/Coq/Dafny check

c4_prove

LLM-based proof gen

c4_transfer

Cross-domain isomorphism

c4_simulate

38 engine bridges

c4_bayesian

MCMC / BMA inference

c4_causal

Do-calculus discovery

c4_export

MD/JSON/BibTeX/LaTeX

c4_social

Multi-platform publish

c4_chain

C4 discovery chain

c4_meta

Meta-cognitive reflection

blast_solve

UniversalSolvePipeline

blast_turbo

Paradigm dissertations

blast_flash

Quick LLM + USP analysis

blast_turbofactory

Parallel pipeline factory

c4_autoresearch

Karpathy-style ML loop

blast_auto

Auto-router dispatch

# Start MCP server blast serve --mcp # Tool schema (auto-synced) {"name": "c4_solve", "inputSchema": {...}, "outputSchema": {...}}

TUI v9 Experience

ASCII cube. Gradient bars. Spark particles. Night mode. The terminal is not a fallback — it is the primary interface.

c4reqber — TUI v9
c4reqber ❯ blast solve "quantum biology in photosynthesis"
[C4] State: F⟨Present, Abstract, Other⟩ (T=0, S=0, A=0)
[TRIZ] Segmentation · Extraction · Local Quality
[UCOS] 4-layer analysis complete
[GAP] 12 gaps mined from 124 papers
[VERIFY] Lean4 proof skeleton generated
[DONE] Dissertation exported to LaTeX + BibTeX
_
Tab: Switch mode A: Alert panel B: Budget gauge D: Depth ladder T: Article canvas R: Proof graph V: Cube nav F: Live feed

Social Publishing — 9 Platforms

Dissertation → LaTeX + BibTeX → Auto-upload → ORCID → Social blast.

📰
arXiv
📝
bioRxiv
💾
Zenodo
💬
Reddit
📢
Discord
💬
Slack
Telegram
🐦
Twitter/X
🌌
Bluesky

Workflow: Dissertation → LaTeX + BibTeX → Auto-upload → ORCID registration → Social blast

Planned Integrations

CESM and JuliaDiff are on the roadmap. Targeted for v5.6+.

v5.6 Q3 2026

CESM — Earth System

Community Earth System Model for climate simulation. Full atmospheric, ocean, land, and sea-ice coupling.

v5.7+ 2027

JuliaDiff — Auto-Diff

Automatic differentiation in Julia. Forward and reverse mode for scientific machine learning (SciML).

Hardened for Production

0 CRITICAL. 0 HIGH. 222 fixes across 4 audit rounds.

0
CRITICAL
0
HIGH
55
MEDIUM
14
LOW
0
mypy errors
594
tests passing
🔒

Prompt Injection

Nonce delimiters + LaTeX escaping + HTML entity decoding. Fail-closed.

🌐

SSRF Protection

Paper ID validation. Redirects disabled. Confined to ~/.c4reqber.

🛡

Subprocess Hardening

Shell metacharacter blocking. Symlink guards. Path traversal blocked.

Auth

JWT + HMAC. Dev-mode bypass with token. No secrets in code.

3 Commands to Discovery

# 1. Install pip install c4reqber # 2. Set your key export OPENROUTER_API_KEY=sk-or-... # 3. Run c4reqber "quantum biology in photosynthesis" # → paradigm-shifting hypothesis + dissertation + citations # Model-per-stage config c4reqber config --tier budget --save # $0.002/pipeline c4reqber config --tier premium --save # Claude Opus everywhere c4reqber config --set D=gemma4:26b # Local model for hypotheses

Academic tip: Run with --verify flag to auto-invoke Lean4/Coq for theorem-checking.

What Is Next

Continuous delivery of simulation engines, AI integrations, and verification backends.

v5.5 — Now
✓ Type safety zero (0 mypy errors) ✓ MCP 21 tools with JSON Schema ✓ Virtual Bio + GPU auto-detect ✓ 38 simulation engine bridges integrated ✓ 10,000+ tests passing
v5.6 — Q3 2026
○ FEniCSx / dolfinx FEM bridge ○ OpenMM protein dynamics ○ DeepChem drug discovery ○ PyMC / Bambi Bayesian stats ○ ArviZ Bayesian visualization
v5.7+ — 2027
○ LangGraph state-machine agents ○ Unsloth local LLM fine-tuning ○ vLLM high-throughput inference ○ ChromaDB / LanceDB RAG layer ○ CrewAI multi-agent orchestration

59 Scientific Computing Engines

5 internal GPU engines + 31 open-source bridges + 23 planned integrations. From molecular dynamics to climate modeling.

DomainEngineDescriptionStatus
PhysicsNewtonClassical mechanics, N-body, orbitalBuilt-in GPU
PhysicsJaxSimDifferentiable physics, roboticsBuilt-in GPU
PhysicsTorchSimPyTorch-native material simulationBuilt-in GPU
PhysicsOpenFOAMCFD, turbulence, multiphaseP1 Bridge
PhysicsElmer FEMMultiphysics FEM solverP1 Bridge
ChemistryPySCFQuantum chemistry, DFTP1 Bridge
ChemistryRDKitCheminformatics, SMILESP1 Bridge
ChemistryOpen BabelMolecular format conversionP1 Bridge
BioGROMACSMolecular dynamicsP1 Bridge
BioNEURONNeuronal simulationP1 Bridge
BioBrian2Spiking neural networksP1 Bridge
BioVirtual BioGPU-accelerated bio pipelineBuilt-in GPU
ClimateWRFWeather research & forecastingP1 Bridge
StatsStanBayesian inferenceP1 Bridge
StatsPyMCProbabilistic programmingP1 Bridge
MLONNX RuntimeCross-platform inferenceBuilt-in
MLMLXApple Silicon MLBuilt-in GPU
MathSciPyScientific computingBuilt-in

P1 = Python-native open-source bridge available now · Planned = on roadmap · Full list in simulation_engines_report.md

47 Knowledge Sources — Real Citations

No hallucinated references. Every citation is verified against live databases with DOI.

arXiv PubMed Semantic Scholar OpenAlex Europe PMC Crossref Zenodo ClinicalTrials.gov GBIF NASA Earthdata Google Patents Brave Search Tavily Exa.ai Wikidata OpenStreetMap + 17 more

9 Formal Verification Backends

Your hypotheses don't just claim — they prove. Auto-selected by domain.

λ

Lean4

Dependent type theory for mathematics

π

Coq

Inductive proofs for hardware verification

Dafny

Imperative programs with pre/post-conditions

Agda

Intuitionistic type theory

Z3

SMT solver for constraint satisfaction

{}

Hoare

Logic for imperative program correctness

OS & System Requirements

macOS and Linux are tested and supported. Windows is not tested. External engines require separate installation.

OS Compatibility Matrix

macOS✓ Tested
Linux✓ Tested
Windows✗ Not tested · WSL2 may work

Minimum Requirements

RAM4 GB (8 GB rec)
CPU2 cores (4+ for sim)
Disk2 GB + engines separately
GPUOptional · Apple Silicon / CUDA

Note: pip install c4reqber installs the Python package + CLI only. External simulation engines (GROMACS, OpenFOAM, etc.) require separate installation per engine. See GPU_SETUP.md.

5 Cost Tiers

From $0.002 to $0.11 per full pipeline run. Configure per phase.

Budget
$0.002/run
DeepSeek V4-Flash
Premium
$0.11/run
Claude Opus + Gemini
Local
$0/run
Qwen 3.6 + Gemma 4

Ready to Shift Paradigms?

One command. One dissertation. One paradigm shift.

AGPL-3.0 · BYOK · No data retention · Self-hostable

   ┌─────────┐
  ╱         ╱│
 ┌─────────┐ │
 │  C4R    │ │
 │  ███     ╱
 └─────────┘╱ 
Ready.