Agent overview
The responsibilities, inputs, and outputs of the five Agents, how Skills and engines are configured, and where a person steps in when something fails.
1. What an Agent is
An Agent is a role on the pipeline. It is not a model, and it is not an execution engine.
| Concept | In plain terms |
|---|---|
| Agent | A job title: VOD, Issue, Coding, QA, SRE |
| Skill | The working method for that role: what to do first, which tools to use, and which standard to accept against |
| Engine | The executor that does the actual work, such as opencode, hermes, or codearts |
| Worker | The machine that runs the engine |
On the same pipeline, the five Agents can use different Skills and different engines. The engine executes the task; the Agent decides what to do and in which steps.
2. The five Agents at a glance
| Agent | Responsibilities | When it starts | Main inputs | Main outputs |
|---|---|---|---|---|
| VOD | Requirement analysis; determine the type and scope | Issue created, Issue comment, manual input in the console | Issue title and body, comments | Requirement analysis conclusion, context handed to Issue |
| Issue | Refine the requirement, break down tasks, add acceptance criteria | Handoff after VOD completes | Requirement analysis conclusion | Spec and task list in Issue comments |
| Coding | Change code, build, submit a PR | Handoff after Issue completes | Spec, project knowledge, repository code | Branch, commits, PR |
| QA | Review the PR, run tests, give feedback | Coding completes; PR updated | PR, changes, test results | Approve / Request Changes comment |
| SRE | Deployment, cloud resource operations, verification | Pipeline reaches SRE; after manual confirmation | Deployment request, cloud credentials, environment | Deployment result, resource status, verification record |
There is also the Chat Agent: a personal assistant dispatched through chat or IM that does not participate in the five pipeline nodes. This page covers only the five pipeline Agents.
3. Start with the CLI Skills by default
VOD, Issue, Coding, and QA all have official CLI Skills. They are not "Agents on the command line"; they are ready-made Skills that use the grape CLI and a task-level token to do their work, and are usually available directly in a Scene node's Skill drop-down.
| Agent | Official CLI Skill | What it mainly does |
|---|---|---|
| VOD | vod-cli |
Read the Issue and its history, and judge whether the requirement is clear; if it is clear, summarize and hand off to Issue, otherwise ask follow-up questions |
| Issue | issue-cli |
Read project knowledge, analyze development feasibility, classify/label/assign, produce a Spec, then hand off to Coding |
| Coding | coding-cli |
Read the Spec, change code, run tests, self-review, create the branch and PR, then hand off to QA |
| QA | qa-cli |
Review the PR and the AI workflow, check code, tests, conventions, and evidence, then give Approve or Request Changes |
These Skills share the following traits:
- Use the
GRAPE_SESSION_TOKENinjected by the platform, so you do not need to find a token yourself - Walk through fixed steps rather than improvising
- Start comments with the corresponding Agent so pipeline nodes can be matched
- Write artifacts to the Issue, the PR, or the node logs so the next Agent can pick them up
If these Skills are missing from the scene, first go to Scenes & Skills to confirm that the official Skills are synchronized, or use a repository or personal Skill.
4. Why SRE usually needs customization
SRE also has official Skills, such as cloud-deploy, deploy-cli, devbridge-deploy, and iac-sre, which cover common paths such as Huawei Cloud ECS, DevBridge tunnels, and IaC. Most teams still need to customize the SRE Skill for their own environment.
The reason is not that SRE is more complex, but that SRE operates on real environments:
| Difference | What a generic Skill cannot know in advance |
|---|---|
| Deployment target | Whether it is ECS, K8s, Serverless, a physical machine, or a mixed environment |
| Build method | Whether to use Maven, npm, pip, Docker, or an existing CI |
| Startup and ports | The start command, listening port, reverse proxy, and health check path |
| Cloud resources | The specific topology and naming of VPC, security groups, EIP, RDS, and OBS |
| Credentials and permissions | Which AK/SK pair to use, which environment, and which resources may be changed |
| Rollback | Which version to return to after a failure, and which data must not be touched |
| Manual gates | Which operations require confirmation first and which can run automatically |
Applying a generic Skill to an unknown environment risks more than a failed deployment: it can change the wrong resource, overwrite production configuration, or run a destroy operation without confirmation.
Customization does not mean writing from scratch
Use the official SRE Skill as a template:
- Find
cloud-deploy,deploy-cli, or a similar Skill in the Skill marketplace or the repository - Copy it to repository Skills
- Rewrite the following in
SKILL.md:
- Pre-checks
- Build and start commands
- Deployment target and resource scope
- Health checks and rollback
- Prohibited operations and manual confirmation points - Run it once in a test environment
- Bind it to the SRE node and apply the scene
- Validate with a low-risk deployment, then release to production
The SRE node must also be bound to a specific online engine; broadcast is not allowed. Deployment has side effects, so it must not be left to any online engine to claim.
5. Each Agent in detail
1. VOD Agent: requirement analysis
Question it answers: What type of requirement this is, where it has an impact, and who should handle it.
How it starts:
- Create an Issue in GitCode / GitHub / Gitee
- Add the requirement in the Issue comments
- Enter the requirement text manually on the VOD Agent page
What it does:
- Read the Issue title, body, and comment history
- Determine whether it is development, testing, operations, or another type
- Identify the scope of impact and prerequisites
- Hand the analysis result and context to the Issue Agent
Where to see the output: the pipeline VOD node logs, and the Issue analysis record in Issue Center.
When the requirement is unclear: VOD may stop in the awaiting-input state. Read the question in the node logs, then add background, boundaries, and acceptance criteria in the Issue comments, and the current stage continues.
2. Issue Agent: task breakdown
Question it answers: Which specific tasks must be done, and how each one is verified.
How it starts: automatic handoff after VOD completes.
What it does:
- Refine the requirement into a technical proposal
- Break it into executable tasks
- List the files or modules involved
- Add acceptance criteria
- Add labels and assign an owner (per repository configuration)
- Write the Spec into the Issue comments and hand off to Coding
A qualified Spec contains at least:
| Item | Description |
|---|---|
| Objective | What the user can do once it is done |
| Approach | Which modules to change and how |
| Scope | What is included and what is not |
| Verification | How completion is verified |
| Risk | Which existing features may be affected |
Where to see the output: Issue comments and the pipeline Issue node logs.
When the breakdown is wrong: Point out "this does not need to be split" or "this is missing" in the Issue comments, and the Issue Agent adjusts the Spec. Do not change the code directly to bypass it.
3. Coding Agent: code implementation
Question it answers: How to change the code, whether it builds, and whether a PR can be submitted.
How it starts: automatic handoff after the Issue Agent completes.
What it does:
- Clone the repository and create the working branch
- Read the project knowledge baseline and the Spec
- Change the code according to the Spec
- Build and run tests
- Self-review the changes
- Push the branch and create a PR
Working directory: ~/grape-workspaces/<provider>/<owner>/<repo>/issues/<n>/coding. Use DEVOPS_WORKSPACE_DIR to override the root directory.
Where to see the output: the branch and PR in the code platform, and the Coding node logs.
Common failures:
| Symptom | Check first |
|---|---|
| No PR produced | Whether the branch was created, whether the build or tests failed, and repository write permission |
| Wrong direction | Whether the Spec is clear; add the required changes in the Issue or PR comments |
| Build failure | Dependencies, commands, and the engine environment; check exit_code in the node logs |
| Wrong branch pushed | The working branch configuration and whether the baseline is aligned |
Engine choice: Coding has no hard engine restriction. opencode is a common pairing, and you can switch to an engine already installed by your team. The model key is configured on the engine side, not in Grape credentials.
4. QA Agent: quality review
Question it answers: Whether this PR can be merged and what is still missing.
How it starts:
- A2A handoff after Coding completes
- Re-review according to the stage matrix when the PR is updated
What it does:
- Read the PR changes and commits
- Compare against the Spec and acceptance criteria
- Check correctness, test coverage, security risk, and the scope of changes
- Give Approve or Request Changes
- Write the comments in the PR
What it does not do: it does not merge on a person's behalf, and it does not approve merely because Coding says it is done.
Where to see the output: PR comments and the QA node logs.
When QA does not review: first confirm that the PR was created, whether A2A handed off, and whether the PR event arrived; then check the QA node logs.
5. SRE Agent: deployment and operations
Question it answers: How to deploy, how to change resources, and whether the service is healthy after release.
How it starts: the pipeline reaches the SRE node; dangerous operations that require manual confirmation stop at the confirmation point first.
What it does:
- Cloud resource management: ECS, VPC, EIP, security groups, RDS, OBS, and others
- IaC operations such as Terraform
- CI/CD configuration and deployment execution
- Post-deployment health checks and troubleshooting
Safety mechanism: destroy operations run only after a person confirms them explicitly in the Issue comments. Do not push the Agent to "delete it directly" before that confirmation.
Engine requirement: the SRE node must be bound to a specific online engine; broadcast is not supported, otherwise engine_unavailable is returned.
Where to see the output: SRE node logs, Issue comments, cloud resource status, and the deployment address.
For the complete project customization workflow, see Step 3: Customize an SRE Skill.
6. Five handoffs for one Issue
Take "add JSON export to Mood Tracker" as an example:
Issue created
→ VOD: determines that this is a development requirement affecting the backend and the home page
→ Issue: writes the Spec and splits it into "API + page button + tests"
→ Coding: changes code, builds, and submits a PR
→ QA: reviews the PR and asks for additional tests
→ Person: merges the PR after the changes
→ SRE: deploys and returns the access URL
→ Person: confirms the release result
Each handoff passes artifacts and context, not chat history. If the previous stage is not complete, the next stage does not start from nothing.
7. How Skills, engines, and Workers map to Agents
| Configuration | Where to configure | Effect |
|---|---|---|
| Skill | Project scenes → node → Skill | Determines how this Agent works |
| Engine | Project scenes → node → Engine | Determines which executor is used |
| Worker | Agent Runtime → Devices | Determines which machine runs the engine |
| Model | Engine configuration | Determines which model the Agent calls |
Configuration order:
- Prepare the Skills first (official, repository, or personal)
- Select a Skill for each of the five nodes in the scene
- Select an online engine for each node; SRE must select a specific engine
- Save the scene and Apply
- Create an Issue to validate the chain
For writing and uploading Skills, see Skill management; for engines and Workers, see Runtime and Worker and Engine overview.
8. Status and manual intervention
| Status you see | Meaning | What to do |
|---|---|---|
| Pending | Still waiting for the previous stage or an engine | Check the queue and engine online status |
| Running | The Agent is running | Check the logs and artifacts; do not dispatch again |
| Awaiting input | Waiting for a person to add information | Read the node question and answer in the Issue comments |
| Pending review | QA has given feedback and a person must handle it | Change the code or reply to the review comments |
| Completed | This node is complete | Check whether the next node started |
| Failed | Execution failed | Check the logs and exit_code, fix the issue, then retry or redispatch |
The four points for manual intervention:
- Issue comments: add requirements, answer the Agent, confirm dangerous operations
- PR comments: respond to QA, explain the changes
- Merge button: a person must click it
- Resource destroy confirmation: must be confirmed explicitly in the Issue comments
9. Common misconceptions
| Misconception | Reality |
|---|---|
| The Agent is the model | The Agent is a role; the model is called by the engine |
| One Agent can do everything | Each Agent has fixed responsibilities and handoff boundaries |
| A QA approval means automatic release | PR merge and dangerous operations still require human confirmation |
| Agents run without an engine binding | SRE must be bound; other nodes use broadcast when unbound and may be claimed by any online engine |
| Saving the scene makes it effective | You must select Apply |
| The Chat Agent is also part of the pipeline | The Chat Agent is a personal assistant and does not participate in the five nodes |
10. How to troubleshoot an Agent that is not working
| Symptom | Check first | Action |
|---|---|---|
| The node never starts | Whether the previous node completed, whether the event arrived, and whether the scene is applied | Check the pipeline and the Events page |
engine_unavailable is returned |
Whether the scene is applied and whether SRE is bound to an engine | Bind an engine again and apply |
| Tasks stay queued | Whether the Worker is online and the engine health check | Check devices in Agent Runtime |
| The Agent asks the same question repeatedly | Whether the requirement or acceptance criteria are missing | Write everything in one Issue comment |
| Coding produces no PR | The branch, the build, and write permission | Check the Coding logs and platform permission |
| QA does not review | Whether the PR was created and whether A2A handed off | Check the QA node and events |
| SRE is stuck | Whether it is waiting for a destroy confirmation and whether the engine is online | Confirm in the Issue comments or fix the engine |
11. Configuration completion criteria
- [ ] All five nodes have a Skill selected.
- [ ] All five nodes have an online engine; SRE is bound to a specific engine.
- [ ] The scene is saved and applied.
- [ ] After creating an Issue, the five nodes start in sequence.
- [ ] The node logs show inputs, tool calls, and artifacts.
- [ ] QA feedback returns to the PR and the PR can be merged manually.
- [ ] SRE dangerous operations stop at manual confirmation.
Related
How an Issue moves through the pipeline | Scenes and engine configuration | Skill management | Runtime and Worker | Step 1: Create a project and open an Issue