T1 · Grape in practice: deploying a Snake game sandbox and shipping a feature
Overview
This case uses the Grape instance preinstalled in AI DevSpace (Huawei Cloud Developer Space) to connect a Snake game project to the AI development pipeline and do two things in sequence: put the application live in a sandbox with one Issue, then run a feature request through the whole pipeline. No hand-written code is involved; you only register, configure, and submit Issues.
Scene mapping in this case: vod → vod-strict, issue → issue-advance, coding → implementation, qa → pr, sre → devbridge-deploy
End result: the Snake application runs steadily in the sandbox, and one Issue — "add obstacles and difficulty levels" — is implemented, reviewed, and deployed end to end.
What you will learn
- Enter and register Grape inside AI DevSpace
- Bind a code hosting platform and configure Huawei Cloud credentials (AK/SK)
- Create a project from a project template and set the SRE Skill to Huawei Cloud DevBridge deployment
- Complete one full "sandbox deployment + feature development" run on your own
Prerequisites
| Item | How to get it | How to confirm it is ready |
|---|---|---|
| AI DevSpace (Developer Space) account | Trial edition https://devstation.developer.huaweicloud.com/aidevspace | You can sign in and enter the space |
| Code hosting platform token | GitCode personal settings → Access tokens | Repository pages open normally |
| Huawei Cloud AK/SK | Huawei Cloud console → My credentials → Access keys | HW_ACCESS_KEY / HW_SECRET_KEY obtained |
Steps
This case has 8 steps: enter Grape → register → bind the code platform and credentials → create a project → configure the scene → deploy to the sandbox → develop a feature → confirm completion.
Step 1: Sign in to Developer Space and open Grape
Open the AI DevSpace trial edition and select the Grape application in the TOOLS list.
✅ Expected result: the Grape interface opens.
Step 2: Register a Grape account
Choose Register, fill in the account name and password, and submit; the workspace opens automatically.
✅ Expected result: registration completes and the Grape dashboard appears.
Step 3: Bind the code hosting platform and configure credentials
In Bind, choose your code hosting platform and enter that platform's access token to finish binding.
To configure other code hosting platforms and Huawei Cloud credentials, go to the user avatar → User settings → Credentials.
✅ Expected result: the code platform shows as bound and the credentials are saved.
Step 4: Create the Snake project
Open Project templates, select the Snake game template, and create the project with one click.
✅ Expected result: the project is created and its workspace opens.
Step 5: Configure the project scene
In Project scenes, edit the execution flow, change the SRE Skill to Huawei Cloud DevBridge deployment, and save.
Fill in the Huawei Cloud AK/SK (HW_ACCESS_KEY / HW_SECRET_KEY) under custom configuration and save.
✅ Expected result: the execution flow is updated and the custom configuration is saved.
Step 6: Submit the first Issue and deploy to the sandbox
Create an Issue in Issue Center, fill in the title and description, and select the Hello World deployment scene:
Title: Analyze this project and deploy the application
Description: Analyze this project and deploy the application
Scene: Hello World deployment
Once the Issue is submitted, the pipeline starts running automatically.
Open the task details to follow each stage's progress and status.
The SRE stage begins and the application is deployed to the sandbox.
Check the status of the deployment task.
When deployment finishes, the Snake application runs in the sandbox.
✅ Expected result: the Snake application is deployed to the sandbox and can be opened and played.
Step 7: Add a feature Issue and run the full pipeline
Create another Issue with a concrete feature request:
Title: Add an obstacle map and difficulty levels
Description: Add three difficulty levels above the canvas — "Easy", "Normal", and "Hard" — with "Normal" as the default.
The three levels differ in obstacle count and base speed: Easy has 0 obstacles with a 150ms base speed, Normal has 12 obstacles with 140ms, and Hard has 24 obstacles with 130ms.
Later upgrades keep the existing curve (speed up every 50 points, floor at 60ms) and only change the base value.
Scene: Hello World deployment
After creation, watch the full VOD → Issue → Coding → QA → SRE relay:
| Stage | Agent | What you see |
|---|---|---|
| VOD | Requirement collection | A structured, converged requirement |
| Issue | Triage | Spec document plus a development feasibility analysis |
| Coding | Implementation | Code commits / Pull Request |
| QA | Quality review | Review conclusion / gate report |
| SRE | Build and deploy | The sandbox is redeployed |
When coding finishes, the Coding Agent opens a Pull Request (PR). You review and merge it — Grape never merges on its own.
💡 Why merge manually? It is Grape's design principle — people set the direction and review, Agents execute. Agents handle the execution stages: converging the requirement, coding, reviewing, and deploying. The final decision "does this code get merged" always stays with you: read the changes, confirm they match expectations, then let them through.
After the change, obstacles and the three difficulty levels take effect in the sandbox.
✅ Expected result: the feature is implemented and merged, and obstacles plus the three difficulty levels work in the sandbox.
Step 8: Confirm the Issue is complete
Mark the Issue as complete in Issue Center to finish this practice.
✅ Expected result: the Issue status changes to completed.
Summary
You registered Grape in AI DevSpace, bound a code platform and configured credentials, created a Snake project from a template, configured the execution scene, and used two Issues to run both sandbox deployment and full-pipeline development.
Practical advice:
- Write acceptance criteria into the Issue description (specific numbers such as obstacle counts and speed thresholds); Agents execute more accurately with them
- Deploy first, then develop: prove the whole chain with a deployment Issue before submitting a feature Issue to test coding and review
- Keep credentials safe: configure AK/SK only in Grape's credential settings, never in code or Issue descriptions
Resources
- Grape website: https://www.grapedev.cn
- AI DevSpace Developer Space: https://devstation.developer.huaweicloud.com/aidevspace
Glossary
| Term | Definition |
|---|---|
| Scene | A preset mapping of Skills to the five pipeline Agents |
| Skill | A reusable capability unit for an Agent |
| A2A | Agent-to-Agent, the mechanism by which Agents hand off tasks automatically |
| Event | The smallest execution record of a pipeline |
















