# OpenCode

> Waddle's plugin for OpenCode: what it tells Waddle and where it lives.

## The plugin

Preferences → Agents → OpenCode → **Set up** writes Waddle's own plugin to `~/.config/opencode/plugins/waddle.js` and keeps it up to date.

It tells Waddle when a session starts, works, finishes its turn, asks your permission, and ends. It never sends what you typed or what the agent said. If Waddle isn't running, it does nothing, and it never waits on Waddle.

## Your context

The plugin adds the list of Waddle Context pages OpenCode may read in that folder to its system prompt. OpenCode reads them, and proposes lessons, through `waddle mcp`: add it as a local MCP server in OpenCode's config. See [MCP tools](https://docs.waddle.sh/mcp.md).

## Take it out

Preferences → Agents → OpenCode → **Remove** deletes the plugin file.
