YI CODE

A coding agent for refactoring and rewriting code.

Ask about a repository, or have the agent change it. Each change is made in an isolated sandbox and checked with your own tests. You review the diff and decide what becomes a draft pull request.

DEMO

See it work

Yi CodeExample

YouMake this model run on Ascend 910B.

Yi Code…

Before · NVIDIA A100
model.pyimport torch3from flash_attn import flash_attn_func1device = torch.device("cuda")2with torch.autocast("cuda", dtype=torch.float16):3    out = flash_attn_func(q, k, v, causal=True)
  1. 1The device changes from cuda to Ascend’s npu
  2. 2Mixed precision goes through torch_npu
  3. 3FlashAttention only runs on NVIDIA, so attention moves to Ascend’s fused operator
Try another chip

WHAT IT DOES

What Yi Code does

Ask about a repository

Ask mode reads the code and answers with file paths. It never edits files or runs commands.

Change code in a sandbox

Code mode works in a sandbox with no network access, as a non-root user, on a commit pinned when the session starts.

Checked against a baseline

A test command from the repository runs before and after the change. The result is Validation passed, Validation failed or Unverified, with the reason.

One draft PR per session

Review the diff, then confirm. Each session gets one draft pull request on its own branch. Nothing is merged for you.

A budget for every turn

Each turn has its own budget and is never charged more than that. Failures on the platform’s side are not charged.

Cloud or private

Use the cloud service, or deploy it privately with your own sign-in, Git server and OpenAI-compatible model endpoints.

HOW TO START

How to start

  1. 01

    Connect GitHub

    Install the Yi Code GitHub App on the repositories the agent may work on, then pick a repository and a branch.

  2. 02

    Choose Ask or Code

    Pick the mode, the model and a budget for the turn, and say what you want.

  3. 03

    Review and publish

    Read the answer, the diff, the verification result and the cost. Confirm, and the changes go to a draft pull request.

CODE → EVAL → GUARD · CLOUD

Other products

02 · BEFORE LAUNCH

Yi Eval

Runs your agent for real in a sandbox, through normal tasks, tool faults and attacks. A version that fails the release gate does not ship.

Explore Yi Eval

03 · AT RUN TIME

Yi Guard

Before an agent calls a tool, runs a command or goes out to the network, Guard checks it against your rules.

Explore Yi Guard

MODELS · COMPUTE

Yi Cloud

Works with the OpenAI and Anthropic SDKs. Change the base URL and call models. Each sandbox and VM is a separate virtual machine, created and deleted through the API.

Explore Yi Cloud

All products

Next step

Want to try it on your own chips?

Book a PoC