Terminal-native coding agent CLI and Python SDK.
Use yoke for interactive terminal sessions, one-shot automation, or embedded
agent workflows in Python. It can inspect and edit files, run commands, search
the web, use MCP servers, and call custom tools from your repo or home config.
uv tool install git+https://github.com/dakixr/yoke.gitFor local development:
uv sync
uv run yoke --help# Start an interactive session
yoke
# Run a one-shot task
yoke --headless "Fix the failing tests"
# Resume the latest session for this repo
yoke continueInteractive sessions support slash commands, session history, image input, model selection, skills, MCP configuration, and tool inspection.
from yoke.ai import Agent, OpenCodeGoConfig, OpenCodeGoProvider, RunConfig
agent = Agent(
provider=OpenCodeGoProvider(OpenCodeGoConfig(api_key="...")),
config=RunConfig(root="."),
)
result = agent.prompt("Summarize this repository")
print(result.output)- Tools: file reads and edits, shell commands, web fetch/research, image handling, document extraction, and patch application.
- MCP: stdio and Streamable HTTP servers configured from
.yoke/mcp.jsonor~/.yoke/mcp.json. - Skills: reusable Markdown instructions loaded by name for repeatable workflows.
- Providers: Codex, Codex WebSockets, OpenCode Go, Z.ai, and OpenAI-compatible APIs.
uv run pytest
uv run ruff check .
uv run ruff format .
uv run ty check
uv run pyrightDocumentation lives in src/yoke/docs.