Skip to content

docs(1.7.x): clarify install-agent vs Job, reorganize examples/ (#925)#926

Merged
BCeZn merged 1 commit into
masterfrom
docs/xinshi/jobs
May 11, 2026
Merged

docs(1.7.x): clarify install-agent vs Job, reorganize examples/ (#925)#926
BCeZn merged 1 commit into
masterfrom
docs/xinshi/jobs

Conversation

@BCeZn

@BCeZn BCeZn commented May 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

Restructure 1.7.x docs (EN+ZH) and examples/ so the two agent-usage capabilities ROCK provides — install-agent and Job — are presented as parallel options with clear cross-references, instead of the current ambiguous "Rock Agent" naming.

  • install-agent: sandbox.agent.install() + sandbox.agent.run(prompt) — install/run an agent inside a single sandbox.
  • Job: rock.sdk.job.Job + JobConfig (BashJob / HarborJob) — schedule tasks across a sandbox cluster.

Changes

Docs (EN + ZH, 1.7.x only)

  • Getting Started/rock-agent.md rewritten — Job is the primary scenario, install-agent is the secondary path.
  • References/Python SDK References/rock-agent.md — H1 retitled to Install Agent in Sandbox (Experimental) with a positioning blurb; ZH run() flow numbering bug fixed; usage example expanded to a runnable demo.
  • References/Python SDK References/job.md (new)Use Job to Run Agent with end-to-end Python SDK example and a cross-link to RockAgentConfig.

examples/

  • agents/install-agents/
  • harbor/job/harbor/
  • bash/ + evaluation/claw_eval/job/bash/
  • evaluation/swe_bench/ kept in place (install-agent-style end-to-end demo)
  • READMEs added to install-agents/, job/, job/bash/, job/harbor/, evaluation/
  • Fixed REAMDE.mdREADME.md typo, removed stale __pycache__/
  • Updated inline path references in moved .py files

Older versions (1.1.x – 1.6.x) are intentionally not touched.

Test plan

  • npm run start and npm run start -- --locale zh-Hans in OpenSource/docs/, switch to 1.7.x:
    • Getting Started shows two parallel sections (Job first, install-agent second)
    • References sidebar shows new titles
    • All cross-links work
  • grep -r "examples/agents\|examples/harbor\b\|examples/bash\b\|examples/evaluation/claw_eval" in 1.7.x docs returns 0 matches
  • examples/install-agents/iflow_cli/iflow_cli_demo.py runs end-to-end
  • examples/job/harbor/harbor_demo.py -c examples/job/harbor/swe_job_config.yaml runs end-to-end

fixes #925

🤖 Generated with Claude Code

@BCeZn BCeZn force-pushed the docs/xinshi/jobs branch from 5b2526b to 59ea4a4 Compare May 11, 2026 09:19
Restructure 1.7.x docs (EN+ZH) to present install-agent and Job as two
parallel agent-usage capabilities. Reorganize examples/ by capability so
readers can find the right entry point.

Docs:
- Getting Started/rock-agent.md: Job-first, install-agent second.
  1.1 Prepare yaml lists one Harbor (Terminal Bench) and one Bash
  (claw-eval) template — point to the canonical *.yaml.template files
  instead of inlining a fabricated example.
- References/rock-agent.md: title -> "Install Agent in Sandbox
  (Experimental)"; reframe RockAgent as ROCK's mechanism for installing
  custom agents in a sandbox; positioning blurb makes clear that
  install-agent and Job use distinct config schemas (do not mix).
- References/job.md (NEW): "Use Job to Run Agent" with end-to-end SDK
  example. The agents: field is documented as Harbor's own minimal
  schema (name, model_name) — not RockAgentConfig.
- ZH run() flow numbering bug fixed.
- Soften deprecation note on rock.sdk.bench.Job to "future release".

Examples:
- agents/ -> install-agents/
- harbor/ -> job/harbor/
- bash/ + evaluation/claw_eval/ -> job/bash/
- evaluation/swe_bench/ kept in place
- READMEs added for install-agents/, job/, job/bash/, job/harbor/, evaluation/
- Fix REAMDE.md typo, drop __pycache__/
- Update inline path references in moved files

Refs #925

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@BCeZn BCeZn force-pushed the docs/xinshi/jobs branch from 59ea4a4 to 16031cd Compare May 11, 2026 09:32

@StephenRi StephenRi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@BCeZn BCeZn changed the title docs(1.7.x): clarify install-agent vs Job, reorganize examples/ docs(1.7.x): clarify install-agent vs Job, reorganize examples/ (#925) May 11, 2026

@StephenRi StephenRi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@BCeZn BCeZn merged commit a4d45a3 into master May 11, 2026
12 checks passed
zhongwen666 pushed a commit to zhongwen666/ROCK that referenced this pull request May 17, 2026
…aba#926)

Restructure 1.7.x docs (EN+ZH) to present install-agent and Job as two
parallel agent-usage capabilities. Reorganize examples/ by capability so
readers can find the right entry point.

Docs:
- Getting Started/rock-agent.md: Job-first, install-agent second.
  1.1 Prepare yaml lists one Harbor (Terminal Bench) and one Bash
  (claw-eval) template — point to the canonical *.yaml.template files
  instead of inlining a fabricated example.
- References/rock-agent.md: title -> "Install Agent in Sandbox
  (Experimental)"; reframe RockAgent as ROCK's mechanism for installing
  custom agents in a sandbox; positioning blurb makes clear that
  install-agent and Job use distinct config schemas (do not mix).
- References/job.md (NEW): "Use Job to Run Agent" with end-to-end SDK
  example. The agents: field is documented as Harbor's own minimal
  schema (name, model_name) — not RockAgentConfig.
- ZH run() flow numbering bug fixed.
- Soften deprecation note on rock.sdk.bench.Job to "future release".

Examples:
- agents/ -> install-agents/
- harbor/ -> job/harbor/
- bash/ + evaluation/claw_eval/ -> job/bash/
- evaluation/swe_bench/ kept in place
- READMEs added for install-agents/, job/, job/bash/, job/harbor/, evaluation/
- Fix REAMDE.md typo, drop __pycache__/
- Update inline path references in moved files

Refs alibaba#925

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs] Clarify install-agent vs Job in 1.7.x docs and reorganize examples/

2 participants