whereismyai
Witness
Witness is an open-source auto-formalization and adversarial specification tool that verifies code with theorem provers.
Witness is an open-source tool for auto-formalization and adversarial specification confirmation. It treats large language models as proposal generators behind deterministic theorem-prover gates using Dafny and Z3. Users provide plain English descriptions, and the system runs adversarial critiques to find edge cases and verify logic. It supports multiple LLM providers such as Google Gemini, Anthropic, OpenAI, and OpenRouter for drafting specifications. The software compiles verified code into production-ready targets including Python, TypeScript, Rust, C#, and Go.
Witness at a glance
- Best for: Software engineer
- Runs on: Web, CLI, open source, self-hosted
- Pricing: Free and open source under Apache License 2.0
- Released: November 2026
- Category: AI coding tool
- Website: github.com/obsvra/witness
Key features
- Enforces deterministic anti-cheat and constructive non-vacuity checks
- Runs concrete and Z3 symbolic adversarial critique to surface edge cases
- Provides a local web UI and terminal interface for plain-English interviews
- Locks confirmed contracts and proves implementations mathematically
- Builds verified packages for Python, TypeScript, Rust, C#, and Go
- Performs incremental CI verification with content-addressed caching
Use it for
- Drafting formal contracts from plain English requirements
- Generating mathematically proven code for production applications
- Running incremental CI gates to verify repository functions
- Exporting standalone boundary test suites
Alternatives to Witness
- Codacy — Enforces unified coding standards and security policies across the software lifecycle.
- jevgrep — Reduces coding agent costs by providing targeted, relevant repository context.
- Reverify — Prevents AI hallucinations by grounding all structural and behavioral claims in binary or source artifacts.
- DeepSource — Automated code reviews that combine static analysis with AI agents.
- Apex Verify — Catches AI code changes that pass existing tests but fail to satisfy the task.
- Specweave — It coordinates multiple AI tools and agents with shared specs, memory, and an append-only ledger.
- DeepAudit — Multi-agent architecture and sandbox PoC verification reduce false positives.
- Aegis — It ensures AI coding agents work against verified baselines and proof.
- CodeGraph — It eliminates file crawling, reducing AI agent tool calls by 88% and cutting costs.
- code2prompt — Written in Rust for high speed and efficiency when handling large codebases.
- New Relic — Unified visibility across applications, infrastructure, and AI models.
- Superlog — Automates bug triage, support answers, and infrastructure checks using existing models and subscriptions.
All Witness alternatives