Rig is a small operating system for AI agents that enables models to read code, edit files, run tests, and maintain context across sessions. It installs as a single binary, works with any OpenAI API-compatible endpoint, and supports parallel tool execution, background workers, custom plugins, and session persistence across devices.