Concept glossary
Interface terms, aliases, and the four groups of states and objects that are easiest to confuse.
How to use
- A term in the interface is unclear: find a one-sentence explanation on this page first
- A search returns many aliases: old names and colloquial names in parentheses also lead here
- Two terms look like the same thing: go straight to "The four most confusing groups" at the end
Most terms in Grape appear somewhere in the interface. This page is ordered as organization → Issue → Agent → execution → status. It is not an exhaustive glossary; it aligns the terms that are easy to confuse.
Organization and repositories
| What the interface calls it | One-line analogy | Actual meaning (including aliases) |
|---|---|---|
| Organization, Org | Company / team | The space that owns members, repositories, and scenes. The interface labels My organization and Organization projects both refer to it. |
| Personal space | Your own desk | The default context for personal repositories and personal credentials; the interface shows it as xxx's personal space. |
| Member / Maintainer / Administrator | Job role | The three permission levels in an organization; maintainers can manage repositories, and administrators can also change organization-level configuration. |
| Repository, Repo | Workshop | A code repository on GitCode / Gitee / GitHub; the workspace for all tasks. Also called a "project". |
| Repository platform, Provider | Code host | GitCode / Gitee / GitHub itself, not Grape. |
| Hosted repository | A repository that has been wired up | A repository already connected to Grape with a webhook and scenes configured; Repository Hall shows Hosted. |
| Repository identifier, repo_key | Street number | The key Grape uses to identify a repository internally, usually owner/repo; a platform prefix distinguishes repositories with the same name. |
| Webhook | Doorbell | An HTTP callback through which the code platform pushes events such as Issues, PRs, and comments to Grape. Without it, Grape does not trigger automatically. |
| OAuth | Third-party access control | Signing in or binding identity with a GitCode / GitHub account; not the same thing as a repository PAT. |
| PAT | Repository key | Personal Access Token, which lets Grape read and write code platform repositories as you; configure it under Credential management. |
Issues and pipelines
| What the interface calls it | One-line analogy | Actual meaning (including aliases) |
|---|---|---|
| Issue | Work order | A concrete piece of work. Grape aggregates stages, events, status, and review records around it. Also called a "requirement". |
| Event | One trigger | A single webhook or A2A action; the execution unit of the pipeline, with a unique seq. |
| Task | One execution | One Agent Engine execution; the concrete realization of an event. A completed Task does not mean a finished Issue. |
| Stage | Which step of the process | The node an Issue is currently at: vod / issue / coding / qa / sre / pending_review / done. |
| Pipeline | The conveyor belt in motion | The runtime chain shown per Issue: which of the five nodes has run, who is running it, and how long it takes. |
| Scene | Assembly line blueprint | Defines which Agents collaborate in order, which Skill each uses, and which Engines they are dispatched to; it takes effect only after you Apply it to a repository. Also called "pipeline configuration". |
| Node | Workstation | One step in a scene: one Agent + one Skill + an optional Engine constraint; the five cards in the pipeline are nodes. |
| A2A | Handoff form | A handoff action between Agents; Coding finishing and handing off to QA is one A2A. |
| Manual gate | Signature | A key node that stops and waits for human confirmation; currently PR merge and the comment-area confirmation before the SRE Agent destroys resources. |
| PR | Merge request | A code change request; GitCode, GitHub, and Gitee all call it a PR. |
| Branch | Draft line | The Git branch an Agent creates for a task; the PR is submitted from it. |
| Automation | Scheduled alarm | Triggers tasks on a cron schedule; it is not the pipeline itself. Configure it on the Automation page. |
Agents and capabilities
| What the interface calls it | One-line analogy | Actual meaning (including aliases) |
|---|---|---|
| Agent | Specialist | An AI-driven execution role, divided by responsibility into VOD, Issue, Coding, QA, and SRE. |
| VOD Agent | Requirements analyst | Reads the requirement, determines its type, and routes it to downstream Agents. |
| Issue Agent | Task breakdown specialist | Splits the requirement into an executable Spec with steps, files, and acceptance criteria. |
| Coding Agent | Programmer | Changes code per the Spec, runs builds and tests, and submits a PR. |
| QA Agent | Reviewer | Reviews PR code quality, security, and test coverage, and gives feedback. |
| SRE Agent | Operations | Deployment, cloud resource operations, inspection, and troubleshooting; dangerous operations require human confirmation. |
| Skill | Standard operating procedure | An Agent's capability package (SKILL.md): trigger conditions + execution steps + tools. |
| Project Knowledge Base | Project archive | The knowledge baseline (Project Graph) Grape maintains automatically for each repository and injects into Agents when they run a task. |
| Project template | Showroom | A preset repository structure plus scenes; create a repository from the template and apply the scene in one step. |
| Plugin | External tool | A package that extends a coding agent or platform capability; dsh and grape-kit belong to this category. |
| Chat Agent | Conversation assistant | An Agent you talk to directly in the console; it is not part of the five-stage pipeline. |
Execution side
| What the interface calls it | One-line analogy | Actual meaning (including aliases) |
|---|---|---|
| Worker / Device / Agent Runtime | The machine that runs tasks | The machine that actually runs tasks, which can be a local machine, a dedicated server, or a cloud environment; one Worker can run multiple Engines. |
| Engine | Tool on the machine | The executor installed on the Worker, such as opencode, hermes, codearts, codex, atomcode, dsh, or AI Shell. |
| Runtime | Worker page | The Agent Runtime entry in the interface is the Worker device page; do not treat it as the same thing as an engine instance. |
| Credential | Platform key | The collective term for repository PATs, Huawei Cloud AK/SK, model keys, and similar; not a login password. |
| Model key | Model ticket | The API key used to call an LLM; the LLM credentials page configures the one used by the sandbox or Agent Engine. |
API Key (grape_) |
Your long-lived key | Generated under Personal center → API Keys for the CLI, CI, scripts, and grape-kit; it can be revoked. |
Session token, tk_ |
Temporary key for this task | Injected automatically by the platform when a task starts and invalidated when the task ends, times out, or fails; not managed in Personal center. |
| Health check | Physical exam | The platform periodically sends a test conversation to the Engine to confirm it still works; check the health check status and latency. |
| Health score | Health rating | A composite score of the Engine's recent execution success rate; it can be reset when abnormal. |
| Heartbeat | Reporting in | A Worker periodically reports its online status and resource usage; when the heartbeat stops, the Worker shows as offline. |
| Queue | Waiting area | The set of tasks that have been created but not yet claimed by an Engine; a backlog usually means no Worker or Engine is available. |
| AI DevSpace | Cloud workstation | A browser-based cloud development environment with a built-in AI Shell; it can register itself as a Worker automatically, which suits a zero-install trial. |
| IM channel | Chat entry point | Instant messaging channels such as Feishu, used to receive notifications or send instructions. |
Status reference
| Field | Advanced by | Values |
|---|---|---|
stage |
Machine (pipeline) | vod / issue / coding / qa / sre / pending_review / done |
status |
User + stage mapping | active / processing / awaiting_input / pending_review / completed / cancelled |
task_status |
API field | This is issue.status, not the Task status — the name is misleading |
The four most confusing groups
1. Issue and Task
- Issue: the work to do; aggregates the whole pipeline
- Task: one Engine execution; completing one Task does not mean the Issue is finished
2. Pipeline and Scene
- Scene: configuration that decides how it runs
- Pipeline: the runtime view that shows how far this run has gone
3. Worker, Engine, and Runtime
- Device: the machine
- Engine: the CLI instance on the machine
- Agent Runtime: the name of the interface page that manages Workers
4. grape_ and tk_
Both are credentials for calling the API, but one is a long-lived key you keep yourself and the other is a key the platform issues temporarily to a task. See "How to use the two credential types" below.
When you see "task complete", "runtime", or "token", come back here to check which object it refers to before judging the status.
How to use the two credential types
The JWT used for browser login is a third thing and is not discussed in this section. This section covers only the two credential types you encounter when the CLI, CI, or a Skill calls the Grape API.
grape_: your long-lived API key
How to generate
- Open Personal center → API Keys.
- Click Generate key.
- Enter a name that identifies the purpose, such as
my-laptoporci-pipeline. - Copy it immediately after creation; the plaintext is shown only once.
- When you no longer need it, return to the same page and click Revoke.
Where to use it
- Running the
grapeCLI on your machine - CI / automation scripts
- grape-kit installed on your machine
- Any external program that needs long-term access to the Grape API
How to configure
export GRAPE_BASE_URL="https://<your-grape-domain>"
export GRAPE_API_TOKEN="grape_xxx"
grape doctor
You can also write it to ~/.grape/config.json:
{"base_url": "https://<your-grape-domain>", "token": "grape_xxx"}
Boundaries
- Valid long-term until revoked
- Represents your user; can access user-scoped and write APIs
- If leaked, revoke and recreate it immediately; do not write it into repositories, Issues, or logs
tk_: temporary session token for the task runtime
How to generate
You do not generate it. The platform issues it automatically when a task starts and injects it into the Agent / Skill runtime environment:
Platform dispatches the task
→ issues a tk_ session token
→ injects GRAPE_SESSION_TOKEN
→ the Agent / Skill calls the API inside the task
→ the token is invalidated when the task ends, times out, or fails
Personal center has no entry for generating tk_, and you cannot save it as a long-term key.
Where to use it
- Agents / Skills inside a pipeline task
- Calls to Grape business APIs from within a task
- Reading the environment variable the platform has already injected when debugging a single task
How to verify
echo "$GRAPE_SESSION_TOKEN" # starts with tk_
Boundaries
- At most 6 hours by default; invalidated when the task ends
- Covers only the repository session bound to the current task
- Calls to personal settings or write APIs return 403
- Do not copy it to your machine as a long-term credential; it usually stops working outside the task environment
Comparison table
| Question | grape_ |
tk_ |
|---|---|---|
| Who generates it | You generate it in Personal center | The platform issues it when a task starts |
| Generation entry | Personal center → API Keys | None; injected automatically |
| Where it is used | CLI, CI, grape-kit, scripts | Agents / Skills inside a task |
| Lifetime | Long-term, revoked manually | At most 6 hours; invalidated when the task ends |
| Permissions | All APIs available to the current user | The repository session bound to the current task |
| If leaked | Revoke and recreate immediately | Let it expire with the task; do not copy it out |
Related
Introduction | How an Issue moves through the pipeline | Runtimes and Workers