Getting Started with TruthGate

TruthGate installs with zero external core dependencies on Python 3.11+ and exposes a CLI, Python SDK, Stdio MCP server, and local HTTP Workbench.

Install & Demo

v1.1.0
uvx --from git+https://github.com/codesphere-u/truthgate truthgate demo

CLI Subcommands

  • truthgate demo — Runs the 4-claim audit & surgical self-correction demo.
  • truthgate benchmark [--json] — Runs all 40 deterministic precision/recall/latency scenarios.
  • truthgate verify --response ... --sources-json ... --workspace . --fail-on-violation — CI gate command.
  • truthgate ground --response ... --workspace . — Verifies paths, line numbers, and AST symbols.
  • truthgate mcp / truthgate serve-http — Starts Stdio or Streamable HTTP MCP servers.