Skip to content

Yi Code · Docs

A coding agent for refactoring and rewriting code

Ask about a repository, or have the agent change it. Each turn runs in an isolated sandbox. Code turns run your tests before and after the change, and say so when they couldn't. You see the diff and what it cost, and you decide what becomes a draft pull request.

Get started

Request access and we'll set up your organization. Members then sign in at https://code.theyilabs.com with their Yi Labs accounts.

What it does ​

  • Ask. Pick a repository and a branch and ask a question. The agent reads the code and answers with file paths. Nothing in the repository changes.
  • Code. Describe a change: a refactor, a behaviour change, more tests. The agent edits the code in a sandbox, then a test command from the repository checks the result against how it did before the change.
  • Review. Each turn shows the agent's answer, its tool steps, the diff, the verification result and the cost.
  • Publish when you decide. After you confirm, the session's changes go to a draft pull request on GitHub. Later turns update the same pull request.
  • Keep going. Ask follow-ups in the same session. Every turn has its own budget, and the changes build on the turns before it.

Where it runs ​

Cloud servicePrivate deployment
Sign-inYour Yi Labs accountYour own identity provider (OIDC)
RepositoriesGitHub, through the Yi Code GitHub AppYour Git server
ModelsModels we run and verifyYour OpenAI-compatible model endpoints
BillingCredit in US dollarsContract quota, no online payment

See Cloud service and Private and offline deployment.

Start here ​

I want to…Go to
Run my first sessionQuickstart
Know what Ask and Code can doAsk, Code and roles
Understand UnverifiedVerification
Know what a turn costs and when I'm not chargedBudget and billing
Give the agent our docs or toolsKnowledge base, Memory, MCP tools
Answer a security reviewSecurity overview, Data location
Get unstuckTroubleshooting