Ask about a repository
Ask mode reads the code and answers with file paths. It never edits files or runs commands.
YI 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
YouMake this model run on Ascend 910B.
Yi Code…
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)WHAT IT DOES
Ask mode reads the code and answers with file paths. It never edits files or runs commands.
Code mode works in a sandbox with no network access, as a non-root user, on a commit pinned when the session starts.
A test command from the repository runs before and after the change. The result is Validation passed, Validation failed or Unverified, with the reason.
Review the diff, then confirm. Each session gets one draft pull request on its own branch. Nothing is merged for you.
Each turn has its own budget and is never charged more than that. Failures on the platform’s side are not charged.
Use the cloud service, or deploy it privately with your own sign-in, Git server and OpenAI-compatible model endpoints.
HOW TO START
Install the Yi Code GitHub App on the repositories the agent may work on, then pick a repository and a branch.
Pick the mode, the model and a budget for the turn, and say what you want.
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
02 · BEFORE LAUNCH
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 Eval03 · AT RUN TIME
Before an agent calls a tool, runs a command or goes out to the network, Guard checks it against your rules.
Explore Yi GuardMODELS · COMPUTE
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 CloudNext step