Agent Skills › lobehub/lobehub › run-eval-harbor

run-eval-harbor

GitHub

用于在本地或云端运行及诊断 Harbor/FrontierHarness 评估任务。支持环境配置、凭证管理及故障排查,适用于评估基础设施运维与目标预检,不包含任务创建或产品验收。

.agents/skills/run-eval-harbor/SKILL.md lobehub/lobehub

Trigger Scenarios

需要运行或恢复 Harbor 评估作业 诊断评估失败原因或进行故障排查 配置本地或云端的 LobeHub 评估环境

Install

npx skills add lobehub/lobehub --skill run-eval-harbor -g -y
More Options

Non-standard path

npx skills add https://github.com/lobehub/lobehub/tree/canary/.agents/skills/run-eval-harbor -g -y

Use without installing

npx skills use lobehub/lobehub@run-eval-harbor

指定 Agent (Claude Code)

npx skills add lobehub/lobehub --skill run-eval-harbor -a claude-code -g -y

安装 repo 全部 skill

npx skills add lobehub/lobehub --all -g -y

预览 repo 内 skill

npx skills add lobehub/lobehub --list

SKILL.md

Frontmatter
{
    "name": "run-eval-harbor",
    "description": "Run and diagnose existing Harbor or FrontierHarness evaluations against local production LobeHub or LobeHub Cloud, on a local Docker host, SSH worker, or Runta. Use for eval infrastructure, target preflight, lh CLI injection, Harbor smoke or job runs, resume, and failure triage. Excludes authoring Harbor tasks and product acceptance."
}

Run Eval Harbor

Run existing Harbor evaluations against either this checkout's isolated local production harness or a remote LobeHub target. Use create-task to author or grade tasks and acceptance for product acceptance.

Ask First

Before preparing or running anything, obtain these independent choices. Do not use runta as a LobeHub server target or checkout as an execution environment:

  1. LobeHub server: local production server from this checkout, or cloud/remote.
  2. Execution environment: this local host, an SSH Docker worker, or Runta runtimes. The maintained Runta workflow currently targets a cloud/remote LobeHub server.
  3. CLI source: checkout build from apps/cli, or published npm release.
  4. Agent selection: cloud requires an exact LH_AGENT_ID; local uses the seeded user's builtin inbox agent unless the user explicitly selects a different agent.
  5. Eval repository path and whether the user wants a new job or a resume.
  6. Credentials: for cloud, require its CLI API key in the eval repository's ignored .env. Local bootstrap seeds its CLI key. Reuse a provider credential already configured in LobeHub or the ignored local env; if the smoke reports InvalidProviderAPIKey, report the resolved agent's provider/model and ask only for that provider's real credential.
  7. For a local LobeHub server, obtain explicit confirmation that port 3210 and every configured eval infrastructure port are unreachable from the public internet and other untrusted networks. Do not bootstrap the local stack without confirmation.

For the Runta execution environment, also collect the harness repository and pinned commit, provider/key choice required by FrontierHarness, and the Terminal-Bench versus DeepSWE task subset. The Lh Cloud agent's model remains selected by LH_AGENT_ID; do not replace it with FrontierHarness's --model unless the run is explicitly non-comparable.

Do not infer these choices. DeepSeek is only one provider example, not a required credential or model.

Guardrails

  • In local mode, run LobeHub on port 3210 with bun run start; never target a dev server or port 3010. Compose owns infrastructure; LobeHub stays on the host.
  • In cloud mode, never start local infrastructure or rewrite server/gateway addresses. Official Cloud should use the CLI's default addresses.
  • Create docker-compose/eval/.env from .env.example only when absent; never overwrite an existing file.
  • The local Compose stack publishes host ports and uses fixed development credentials, including the seeded CLI key and gateway service token. Never run it on a host where those ports are reachable by an untrusted network.
  • Never infer inbox for a cloud server, choose a separate model, or override the agent with DEFAULT_AGENT_CONFIG. A local server may resolve the isolated seeded user's builtin inbox through the authenticated CLI. Never invent, print, or commit secrets.
  • LobeHub uses localhost service URLs. Harbor containers use Docker-reachable host URLs. Never interchange them.
  • Preflight is target-specific and read-only: local checks the local production stack; cloud checks the remote server/gateways. It does not validate API keys, agents, provider credentials, or model access.
  • Do not run a model-backed Harbor job without an explicit user request.
  • Before every requested real job or resume, run the shared model-backed smoke for the chosen server target and CLI source. Stop if either preflight or smoke fails.

Run

Read exactly one reference for the selected LobeHub server:

When the execution environment is Runta, additionally read the Runta/FrontierHarness playbook. It overlays the cloud server route; it is not a third server target.

For FrontierHarness on a local Docker host or SSH worker, use scripts/frontierharness-local.py start to launch Harbor/Pier queues and collect to prepare results and usage for reporting. See each subcommand's --help.

CLI source is orthogonal to the server target and execution environment: checkout injects the built apps/cli; npm installs the release package. For local execution, run the selected server preflight and then scripts/run-smoke.sh <local|cloud> <checkout|npm> ... before the external eval repository's own job command. The maintained Runta workflow uses a checkout CLI artifact, two restored suite runtimes, and a detached start/status/collect workflow; do not substitute a normal Harbor job for it.

Harbor and Pier default to LH_RUN_MODE=agent. Set LH_RUN_MODE=task to create one persistent LobeHub Task per trial and run it on the connected eval device; operation polling, output collection, and device cleanup remain the same. Task mode records usage with lh task usage; agent mode keeps the existing usage evidence flow scoped to the operation.

The runner exports persisted topic interactions to agent/trajectory.json with lh topic export during cleanup, including interrupted runs. This requires a CLI/server with ATIF export support. Export currently supports single-agent topics without threads or branches; failures are logged without changing the trial result. The trajectory includes recorded reasoning, tool calls/results, and message usage; it does not reconstruct runtime-only model context.

Diagnose

  • PostgreSQL, Redis, RustFS, QStash, or Compose state: local eval infrastructure.
  • Port 3210, migrations, API-key auth, or /api/version: LobeHub.
  • Ports 8787/8788, gateway health, or service tokens: gateway.
  • Docker-only connectivity: bridge address, published port, or host firewall.
  • CLI upload/install: LH_CLI_SOURCE or apps/cli/dist.
  • Reward/verifier behavior: the Harbor task; use create-task before changing it.

Harbor Reference

For Harbor commands beyond these scripts, consult the official Harbor Skills, especially its harbor-cli skill. This harness pins harbor==0.23.0; when guidance differs, the pinned CLI's --help is authoritative.

Version History

  • aace12f Current 2026-10-20 06:06

    新增 Runta 执行环境支持,细化 Agent 选择逻辑,增强对 FrontierHarness 工作流及 Docker 宿主机的支持,优化状态轮询与 CLI 注入机制。

  • e0d4b61 2026-09-23 09:53

Same Skill Collection

.agents/skills/add-model-provider/SKILL.md
.agents/skills/add-provider-doc/SKILL.md
.agents/skills/add-setting-env/SKILL.md
.agents/skills/agent-runtime-hooks/SKILL.md
.agents/skills/agent-signal/SKILL.md
.agents/skills/agent-testing-bot/SKILL.md
.agents/skills/agent-tracing/SKILL.md
.agents/skills/agent-work/SKILL.md
.agents/skills/alint-ruleset/SKILL.md
.agents/skills/builtin-tool/SKILL.md
.agents/skills/chat-sdk/SKILL.md
.agents/skills/cleanup-git-worktrees/SKILL.md
.agents/skills/cli/SKILL.md
.agents/skills/compose-atoms/SKILL.md
.agents/skills/data-fetching-architecture/SKILL.md
.agents/skills/db-migrations/SKILL.md
.agents/skills/debug-frontend-with-browser/SKILL.md
.agents/skills/debug-package/SKILL.md
.agents/skills/deep-review/SKILL.md
.agents/skills/design-prototype/SKILL.md
.agents/skills/desktop-security-update/SKILL.md
.agents/skills/desktop/SKILL.md
.agents/skills/docs-changelog/SKILL.md
.agents/skills/drizzle/SKILL.md
.agents/skills/full-text-search/SKILL.md
.agents/skills/heterogeneous-agent/SKILL.md
.agents/skills/hotkey/SKILL.md
.agents/skills/i18n/SKILL.md
.agents/skills/linear/SKILL.md
.agents/skills/llm-generation/SKILL.md
.agents/skills/modal/SKILL.md
.agents/skills/model-bank-metadata/SKILL.md
.agents/skills/product-design/SKILL.md
.agents/skills/project-overview/SKILL.md
.agents/skills/react/SKILL.md
.agents/skills/response-compliance/SKILL.md
.agents/skills/skills-audit/SKILL.md
.agents/skills/source-layout/SKILL.md
.agents/skills/spa-routes/SKILL.md
.agents/skills/split-large-file/SKILL.md
.agents/skills/split-micro-app/SKILL.md
.agents/skills/store-data-structures/SKILL.md
.agents/skills/testing-heterogeneous-agents/SKILL.md
.agents/skills/testing/SKILL.md
.agents/skills/trpc-router/SKILL.md
.agents/skills/typescript/SKILL.md
.agents/skills/upstash-workflow/SKILL.md
.agents/skills/ux-audit/SKILL.md
.agents/skills/ux/SKILL.md

Metadata

Files
0
Version
aace12f
Hash
a2c87a30
Indexed
2026-09-23 09:53

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-29 00:10
浙ICP备14020137号-1