# eleph > A language whose programs cannot lie. Speech acts, a history that is the > only state, and correctness conditions derived from the program text > rather than written beside it. Every page below is also served as Markdown at the same path with `.md` appended. Every terminal block in them is a real run, pasted, not an illustration. ## Docs - [Start here](https://elephlanguage.vercel.app/docs/use/start-here.md): You have an agent in production. It calls tools and it tells customers things. This is what eleph does about that, and what it does not. - [Any model, any framework](https://elephlanguage.vercel.app/docs/use/any-model.md): Nothing in the guard knows what an LLM is. Worked examples with the OpenAI SDK, a raw tool loop, and LangChain. - [With your coding assistant](https://elephlanguage.vercel.app/docs/use/with-your-assistant.md): An MCP server that proves your policy, a skill that carries the loop, and every page served as Markdown. For Claude Code, Cursor, Copilot and anything else that reads a URL. - [Modelling your domain](https://elephlanguage.vercel.app/docs/use/modelling.md): Turning the tables you already have into events and facts, and choosing what to guard first. - [What eleph is](https://elephlanguage.vercel.app/docs.md): A language whose programs cannot lie — speech acts, a history that is the only state, and correctness conditions derived from the program text. - [Installation](https://elephlanguage.vercel.app/docs/installation.md): Install eleph from PyPI or from source. Requires Python 3.11 or newer and Z3. - [Quickstart](https://elephlanguage.vercel.app/docs/quickstart.md): Derive the correctness conditions of a nine-line program, break it, fix it, then run a dialogue against it. - [McCarthy's bug](https://elephlanguage.vercel.app/docs/the-mccarthy-bug.md): The one-word difference between "did they make a reservation" and "do they have one", and why the whole language exists to expose it. - [The past is the only state](https://elephlanguage.vercel.app/docs/concepts/past-is-state.md): There is no assignment in the eleph grammar. A fact is not stored, it is a query over what happened. - [Obligations, derived](https://elephlanguage.vercel.app/docs/concepts/obligations.md): Ten correctness conditions read off the program text, discharged by Z3 or structurally by the compiler. Nobody writes them. - [Proof, not spot check](https://elephlanguage.vercel.app/docs/concepts/completeness.md): A computable completeness threshold turns "no counterexample up to N" into "no counterexample exists". - [Commitments](https://elephlanguage.vercel.app/docs/concepts/commitments.md): Four strengths of commitment, a static keepability check, and a ledger that is derived from the log rather than stored. - [Permission](https://elephlanguage.vercel.app/docs/concepts/permission.md): McCarthy's eighth speech act. Not whether an answer is true, but whether this party was entitled to ask. - [Program structure](https://elephlanguage.vercel.app/docs/reference/program-structure.md): The four top-level forms — program, sort, event, fact — and the handlers that answer questions and requests. - [Temporal expressions](https://elephlanguage.vercel.app/docs/reference/expressions.md): Every operator that reads the past — atoms, since_not, count, quantifiers, spoke, numeric fields — and what each one asks of the history. - [Statements](https://elephlanguage.vercel.app/docs/reference/statements.md): Everything a handler body can do — answer, record, accept, decline, promise, offer, release, and if/else. - [Obligations derived](https://elephlanguage.vercel.app/docs/reference/obligations.md): The ten correctness conditions, what each one demands, and which are discharged by Z3 versus structurally. - [Grammar](https://elephlanguage.vercel.app/docs/reference/grammar.md): The complete surface syntax of eleph, keywords, and lexical rules. - [CLI](https://elephlanguage.vercel.app/docs/cli.md): The five commands — obligations, check, run, talk, ledger — with every flag and every exit code. - [Python API](https://elephlanguage.vercel.app/docs/python-api.md): Policy, Guard and the three integration shapes — observer, guard, language — with the full method reference. - [LangChain agent](https://elephlanguage.vercel.app/docs/integration/langchain.md): The same agent run twice over nine cases, with and without a guard. Identical model, prompt and tools. - [Performance](https://elephlanguage.vercel.app/docs/performance.md): Constant time per event over a history that never stops growing, and the audit that keeps the optimisation honest. - [τ-bench audit](https://elephlanguage.vercel.app/docs/taubench.md): Two of τ-bench's own policy rules written as eleph facts and replayed over 200 published trajectories. Both turned out to be ambiguous. - [Honest limits](https://elephlanguage.vercel.app/docs/limits.md): What eleph genuinely cannot do today. Verified, not hedged. - [Changelog](https://elephlanguage.vercel.app/docs/changelog.md): Every release of eleph, following Keep a Changelog and semantic versioning. - [Contributing](https://elephlanguage.vercel.app/docs/contributing.md): The one rule, what a good change looks like, and the five places help is wanted. ## Optional - [Everything above, as one file](https://elephlanguage.vercel.app/llms-full.txt) - [Source, tests and the checker](https://github.com/dev-isaacmello/eleph) ## Other languages - pt-BR: https://elephlanguage.vercel.app/pt-BR/docs and the same `.md` paths (26 pages) - zh-CN: https://elephlanguage.vercel.app/zh-CN/docs and the same `.md` paths (26 pages)