Overview
Limits what any AI agent can touch on Linux, and records every run. Tego runs an agent that is an ordinary Linux process (an MCP server, a Python worker, a CI job that calls a model, or a coding tool such as Claude Code) under a short YAML contract listing the files, programs and hosts it may use. The rules live outside the agent, enforced by the kernel and Tego's supervisor, so a prompt-injected or mistaken agent cannot talk its way past them. An ask rule can hold a file open or a connection until you approve or deny it; tego pause, resume, stop and block act on a running agent; and runs that pass token, cost, time, stall or repeat limits end with exit code 124 (token and cost limits count Anthropic Messages traffic only). Every run writes a hash-chained record you can verify, and tego drift compares what was allowed with what was used. A relay can allow, hold or deny single tools of an MCP server. There is a local dashboard on 127.0.0.1, example contracts for Claude Code, Codex and the Claude Agent SDK, and no telemetry. It is v0.1.1; the README says it limits only what the contract names and asks you to read its Known limits and GAPS documents first. macOS works through a Lima VM that has not yet been booted on a Mac, and the Windows WSL2 steps have not been run yet. Licence Apache-2.0. 17 stars on GitHub (created 2026-11-02).
Quick summary. This page gives a short overview of this tool. For installation steps, full documentation and the latest changes, read the official source; details such as features and versions can change there first.
Example prompts example
Illustrative examples written by FoxaMind's AI Trends Scout — not quoted from the source.
- Start a contract from presets with tego init, print its rule table with tego compile, or let tego learn propose one from a finished run.
- Approve or refuse held actions with tego approve and tego deny, or in the dashboard from tego serve --open.
- Check a run record with tego events <run> --verify.