> ## Documentation Index
> Fetch the complete documentation index at: https://docs.the40thieves.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# codecalc

> A calculator, a code runner and a logic checker for AI agents.

Documentation for codecalc, published from [`docs`](https://github.com/The-40-Thieves/codecalc/tree/b5a9dbdb88b00ee69ce8cc44d35b1b2f1d072a71/docs) in The-40-Thieves/codecalc.

## Guides

* [Distribution and listings](https://docs.the40thieves.dev/codecalc/distribution.md)
* [Embedding CodeCalc](https://docs.the40thieves.dev/codecalc/embedding.md)
* [Tool-selection eval — BM25 vs. real models](https://docs.the40thieves.dev/codecalc/tool-selection-eval.md)

## Contract

* [The codecalc result contract](https://docs.the40thieves.dev/codecalc/contract.md)
* [CodeCalc execution-provider interface](https://docs.the40thieves.dev/codecalc/contract/provider-v1.md)

## Deployment

* [Deploying a strict execution backend](https://docs.the40thieves.dev/codecalc/deployment.md)

## Design

* [Design: put the 47 tools behind a discovery facade](https://docs.the40thieves.dev/codecalc/design/2026-08-10-tool-facade.md)
* [Extension SDK — versioned language packs, renderers, verifiers](https://docs.the40thieves.dev/codecalc/design/2026-08-19-extension-sdk.md)
* [branchreachability — static, z3-decided branch reachability](https://docs.the40thieves.dev/codecalc/design/2026-09-08-branch-reachability.md)
* [MCP Apps: graphical views for verifytranslation / verifyoptimization](https://docs.the40thieves.dev/codecalc/design/2026-09-08-mcp-apps-verification-views.md)
* [Design: self-sustaining, self-updating language runtimes](https://docs.the40thieves.dev/codecalc/design/2026-10-27-self-updating-runtimes.md)

## Extensions

* [codecalc extensions](https://docs.the40thieves.dev/codecalc/extensions.md)

## Security

* [codecalc — post-publication security audit](https://docs.the40thieves.dev/codecalc/security/audit-2026-08-21.md)
* [Independent security audit — request for engagement (draft)](https://docs.the40thieves.dev/codecalc/security/ostif-application.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.