@heretek-ai/epistemic-swarm

IUMBTEMS: I Use My Brain To Express My Self — High-Integrity Dialectic Research Agent Harness for Claude Code, OpenCode V2, Pi, OMP (oh-my-pi), Gemini CLI, Codex CLI, and AntiGravity

Packages

Package details

extensionskillprompt

Install @heretek-ai/epistemic-swarm from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@heretek-ai/epistemic-swarm
Package
@heretek-ai/epistemic-swarm
Version
0.7.6
Published
Sep 27, 2026
Downloads
1,269/mo · 1,269/wk
Author
heretek
License
Apache-2.0
Types
extension, skill, prompt
Size
1.4 MB
Dependencies
2 dependencies · 0 peers
Pi manifest JSON
{
  "skills": [
    "./skills/grilling",
    "./skills/research_cache",
    "./skills/epistemic_search",
    "./skills/swarm_config",
    "./skills/code_audit",
    "./skills/oss_scout",
    "./skills/brainstorming",
    "./skills/darkharvest",
    "./skills/factory"
  ],
  "prompts": [
    "./prompts/*.md"
  ],
  "extensions": [
    "./extensions/pi/index.js"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

IUMBTEMS: I Use My Brain To Express My Self 🧠

npm version License CI/CD Marketplace Validated

High-Integrity Dialectic Research Agent Harness
Universal support for Claude Code, OpenCode V2, Pi (pi.dev), OMP (oh-my-pi), Gemini CLI, Codex CLI, and AntiGravity.
Enforcing verified empirical evidence over parametric hallucination.


💡 The Philosophy of IUMBTEMS

IUMBTEMS (I Use My Brain To Express My Self) is grounded in a singular design mandate: Epistemic Sovereignty.

Modern LLMs suffer from parametric hallucination, sycophancy, and premature narrative consensus. They invent citations, smooth over technical contradictions, and extrapolate beyond empirical bounds.

IUMBTEMS restores rigorous empirical grounding by pairing an unconstrained divergent exploration phase (Matt Pocock-style Socratic grilling and assumption inversion) with a multi-agent dialectic swarm:

  1. Agent Alpha (The Proponent / Thesis): Gathers corroborating primary sources, empirical proofs, and implementation benchmarks.
  2. Agent Beta (The Adversary / Antithesis / Red Team): Hunts for counter-arguments, retracted data, methodology flaws, and edge-case failures.
  3. Epistemic Auditor: Verifies cited quotes verbatim against content-addressed raw markdown caches (.research/sources/<sha256>.md), prunes ungrounded assertions, and scores dialectic divergence.

🌐 Universal Multi-Platform Support

IUMBTEMS is packaged as a single universal npm package (@heretek-ai/epistemic-swarm with iumbtems binary) that runs across seven major autonomous agent harnesses. Single source of truth: skills/* + prompts/*. The canonical programmatic surface is the first-party MCP server (python3 runner/mcp_server.py), which exposes the iumbtems_* tools in-process. Harness targets register that server and carry only thin skill stubs generated with python3 scripts/build_adapters.py (iumbtems adapters) into plugins/*, .agents/skills — stubs point at the canonical skills/* prose instead of copying code.

1. Claude Code (Native Marketplace & Overlay)

Native Marketplace (Recommended)

Add the official Heretek AI marketplace to Claude Code:

claude plugin marketplace add Heretek-AI/IUMBTEMS

Then install either the flagship harness or modular standalone plugins:

# Flagship dialectic research harness:
claude plugin install epistemic-swarm@heretek-official

# Or install standalone modular plugins:
claude plugin install socratic-grilling@heretek-official
claude plugin install research-cache@heretek-official

See MARKETPLACE.md for full component specifications.

CLI Overlay Installer

Install skills and MCP servers directly into ~/.claude/ and ~/.claude.json:

npx @heretek-ai/epistemic-swarm install
# or from local repo:
npm run install-local
  • Run /grilling inside any interactive Claude Code session.
  • Run headless dialectic research:
    iumbtems run "Evaluate FPGA Poseidon prover latency bounds"

2. Pi (pi.dev)

Install directly into Pi via its native package manager:

pi install npm:@heretek-ai/epistemic-swarm
  • Slash Commands:
    • /swarm <objective>: Run autonomous dialectic research swarm
    • /grill: Launch Socratic assumption-inversion and decision trees
    • /swarm-config: Inspect or tune search engine, depth (1-4), and mode
    • /audit <target>: Run dialectic codebase architecture and security audit
    • /scout <feature>: Scout open-source software and clean-room blueprints
  • Agent Tools: iumbtems_config, iumbtems_verify_quote, iumbtems_brainstorm.
  • OMP (omp.sh, oh-my-pi) shares the same entry point: omp install npm:@heretek-ai/epistemic-swarm, project commands in .omp/commands/ (/swarm, /grill, /audit, /scout, /brainstorming, /swarm-config), prompts in .omp/prompts/, hooks in .omp/hooks/pre|post/.
  • All commands automatically respect .research/config.json.

3. OpenCode V2 (opencode.ai/v2/docs)

Enable IUMBTEMS in your ~/.config/opencode/opencode.jsonc or project opencode.jsonc. You can configure settings declaratively using native OpenCode V2 syntax:

{
  "$schema": "https://opencode.ai/config.json",
  "plugins": [
    {
      "package": "@heretek-ai/epistemic-swarm",
      "options": {
        "search_engine": "duckduckgo",
        "max_iterations": 2,
        "mode": "research"
      }
    }
  ]
}

OpenCode V2 automatically registers the full tool suite:

  • iumbtems_config: Inspect or dynamically adjust active parameters in .research/config.json.
  • iumbtems_code_audit: Dispatches dialectic codebase review (structural architect vs. red-team).
  • iumbtems_oss_scout: Scouts open-source libraries, audits licenses, and builds clean-room blueprints.
  • iumbtems_swarm_research: Dispatches dialectic researcher pairs (Thesis vs. Antithesis).
  • iumbtems_verify_quote: Audits verbatim citations against the SHA-256 source cache.
  • iumbtems_socratic_frontier: Advances the Socratic decision tree frontier.
  • iumbtems_brainstorm: Lateral ideation portfolio (feature vectors + paradigm moves + falsifiable spikes).

(See config/opencode-snippet.json for custom agent definitions).

4. Gemini CLI

gemini extensions install https://github.com/Heretek-AI/IUMBTEMS --path plugins/gemini
# local dev: gemini extensions link ./plugins/gemini

Bundle: plugins/gemini/gemini-extension.json (MCP servers, incl. the canonical iumbtems server), GEMINI.md (context), commands/*.toml (/swarm, /grill, /audit, /scout, /brainstorming, /swarm-config), hooks/hooks.json, skills/ thin stubs.

5. Codex CLI

Codex reads repo-local .agents/skills/* (already generated in this repo) — $brainstorming <prompt> or implicit activation. Distributable pack in plugins/codex/ (openai.yaml, config.toml.snippet for [mcp_servers.*], AGENTS.md.snippet). Legacy ~/.codex/prompts/*.md (/prompts:<name>) is deprecated; use skills.

6. Google AntiGravity (agy)

agy plugin install https://github.com/Heretek-AI/IUMBTEMS --path plugins/antigravity
agy plugin validate ./plugins/antigravity

Bundle: plugins/antigravity/plugin.json, mcp_config.json, hooks.json, skills/ thin stubs, agents/ (alpha/beta/auditor/brainstormer), rules/epistemic-integrity.md.

7. OMP (oh-my-pi, omp.sh)

omp install npm:@heretek-ai/epistemic-swarm

Shares the pi extension entry point (package.json: {omp, pi} blocks). Project-local slash commands (.omp/commands/*.md), prompt templates (.omp/prompts/*.md), hooks (.omp/hooks/pre|post/*.ts), system override (.omp/SYSTEM.md).


⚡ CLI Command Reference

# Inspect or update active configuration (search engine, depth, mode)
iumbtems config
iumbtems config --engine duckduckgo --depth 3 --mode audit

# Run dialectic codebase architecture & security audit
iumbtems audit "runner/ and skills/ concurrency and injection security"

# Scout open-source software, mature libraries & clean-room blueprints
iumbtems scout "Zero-dependency Raft consensus implementations in Rust"

# Run the autonomous dialectic research swarm
iumbtems run "Sub-millisecond ZK state updates on L1 rollups"

# Run lateral brainstorming (divergent what-if ideation, never bug fixes)
iumbtems brainstorm "Where do we go from here?"

# Product competitor teardown with per-feature harvest verdicts
iumbtems darkharvest "Paseo-class agent harness competitor" --seeds https://github.com/a/b,https://github.com/c/d --max-repos 6 --mock-claude

# Coding-factory run-state helper (init, phase-add, qa-record, expansion, stop)
iumbtems factory init --run arena
iumbtems factory phase-add --run arena --phase 01-handoff --goal "Session handoff" --accept "round-trips;STOP kills loop"
iumbtems factory expansion --run arena --loops 10

# OpenCode slash commands (also Pi/OMP/Gemini): /factory, /domainexpansion, /darkharvest, /scout, /audit, /grill, /swarm

# Run Socratic grilling and decision frontier calculation
iumbtems grill --objective "L1 vs L2 state verification trade-offs"

# Environment diagnostics (Claude Code, Node, Python)
iumbtems doctor

# Run automated test suite
iumbtems test

Specialized Dialectic Skills & Slash Commands

  • /swarm-config: Interactive tuning of search engines (DuckDuckGo, Brave, Firecrawl, SearXNG), iteration depth, divergence thresholds, and operating modes.
  • /code-audit: Dialectic codebase review pairing a Structural Architect (thesis) with a Vulnerability Red-Teamer (antithesis) enforcing line-number proofs (file:///path#L10-25).
  • /oss-scout: Evaluates GitHub repositories, package ecosystems (npm, crates.io, PyPI), license contamination (GPL/AGPL copyleft vs MIT/Apache), and outputs clean-room re-implementation blueprints.
  • /darkharvest: Product competitor teardown (seed inspirations + prompt, expand to adjacents). Competitor × capability matrix, both-ways white-space gaps, per-feature depend|vendor|clean-room-rebuild|skip verdicts with SPDX attribution. Permissive-only vendoring; GPL/AGPL spec-rebuild only.
  • /factory: Coding-factory Manager loop — grill-gated phased build (manager profile), per-phase programmer spawns, dual QA (3 retries then escalate), explicit sign-off per phase.
  • /domainexpansion: Autonomous agent-guided self-improvement loop (/domainexpansion <n>, max 10); bypasses gates, stops on count OR .factory/STOP OR user kill.
  • /grilling: Socratic assumption-inversion and Matt Pocock-style design tree frontier discovery.
  • epistemic_search: Zero-key DuckDuckGo Lite search and content-addressed fetch with automatic SHA-256 caching.

🏷️ Epistemic Tagging Taxonomy

Every factual claim in IUMBTEMS carries an explicit evidentiary tag:

Tag Formal Definition Verification Standard
[VERIFIED: <hash>] Direct empirical fact from primary source. Verbatim quote must exist in .research/sources/<hash>.md.
[INFERRED: <reasoning>] Deductive conclusion from verified facts. Explicit list of parent verified premises and bridging logic.
[HYPOTHESIS: <test>] Speculative assertion or projection. Must define a measurable falsification criterion.
[NEGATIVE_KNOWLEDGE: <query>] Verified absence of empirical evidence. Records exact search query and literature gap.

🔍 Multi-Tier OSINT & Search Pipeline

  1. Discovery Tier: SearXNG (unbiased metasearch) and Brave Search API.
  2. Extraction Tier: Firecrawl (headless JavaScript rendering, DOM cleaning, Markdown extraction).
  3. Academic Tier: Semantic Scholar / arXiv MCPs for DOI citation resolution.
  4. Caching Tier: Content-addressed SHA-256 storage (skills/research_cache/hasher.py).

Local Infrastructure (Optional)

Run local SearXNG and Firecrawl instances via Docker Compose:

docker compose -f config/docker-compose.infra.yml up -d

📦 CI/CD & Trusted Publishing

This package is distributed on npm under @heretek-ai with npm Trusted Publishing (OIDC) and GitHub Actions.

First-Time CLI Bootstrap

git pull origin main
npm publish --access public

GitHub Actions OIDC Setup

  1. In npmjs.com/package/@heretek-ai/epistemic-swarm/access, add GitHub Actions as a Trusted Publisher:
    • Repository Owner: Heretek-AI
    • Repository Name: IUMBTEMS
    • Workflow Pattern: .github/workflows/publish.yml
  2. Future releases publish automatically upon pushing a GitHub Release or version tag (v*.*.*)!

📄 License

Licensed under the Apache License, Version 2.0. See LICENSE for details.