harness-init-runner
Initialize a lightweight repo-local Node.js harness (harness/ + .harness/) WITHOUT AIOS dependency. Use ONLY when you need a standalone, portable harness. If AIOS is installed, use `aios-harness` instead — it has rex Command hosting, ContextDB integration, and checkpoint recovery.
- License 许可
- MIT
- 所属仓库
- rexleimo/aios
- 最近更新
- 2026-11-07
- Stars
- ★ 62
- Forks
- 11
01 前言 Front Matter
- name
- harness-init-runner
- tags
- [ "harness", "bootstrap", "runner", "cli", "node", "agents" ]
- scopes
- [ "global", "project" ]
- clients
- [ "codex", "claude", "gemini", "opencode", "hermes", "workbuddy", "pi", "zcode", "qoder" ]
- description
- Initialize a lightweight repo-local Node.js harness (harness/ + .harness/) WITHOUT AIOS dependency. Use ONLY when you need a standalone, portable harness. If AIOS is installed, use `aios-harness` instead — it has rex Command hosting, ContextDB integration, and checkpoint recovery.
- repoTargets
- [ "codex", "claude", "gemini", "opencode", "hermes", "agents", "workbuddy", "pi", "zcode", "qoder" ]
- defaultInstall
- { "global": false, "project": false }
- installCatalogName
- harness-init-runner
02 资源文件 15
- 参考文档agents/openai.yaml377 B
- 资产文件assets/template/gitignore-snippet.txt12 B
- 资产文件assets/template/harness.config.json640 B
- 脚本assets/template/harness/config.schema.mjs1.2 KB
- 脚本assets/template/harness/doctor.mjs2.1 KB
- 脚本assets/template/harness/lib/checkpoint.mjs1.4 KB
- 脚本assets/template/harness/lib/human-gate.mjs5.4 KB
- 脚本assets/template/harness/lib/io.mjs302 B
- 脚本assets/template/harness/lib/paths.mjs1.1 KB
- 脚本assets/template/harness/providers/claude.mjs144 B
- 脚本assets/template/harness/providers/codex.mjs142 B
- 脚本assets/template/harness/providers/gemini.mjs144 B
- 脚本assets/template/harness/providers/index.mjs425 B
- 脚本assets/template/harness/providers/opencode.mjs148 B
- 脚本assets/template/harness/run.mjs6.8 KB
03 SKILL.md 正文
Harness Init Runner (Node.js)
Working directory: any Node.js repo with package.json
Create a portable long-running-agent harness inside the current repo (Node.js), without pulling in the full AIOS workspace layout.
When to use (even if AIOS is installed)
- Use this when you want a repo-local, lightweight
harness/runner that works across Codex / Claude Code / Gemini / opencode. - If you already use AIOS, you may not need this. However it can coexist: this skill creates
harness/+/.harness/and does not depend onscripts/aios.mjs.
What this skill generates (repo root)
harness/(runner code)harness.config.json(provider command templates)/.harness/(runtime artifacts root; gitignored)package.jsonscripts:harness:run,harness:doctor- dependency:
zod
Runtime artifacts are written under ./.harness/runs/* and MUST NOT be committed.
Preconditions
- Run from (or inside) a Node.js repo that has a
package.json. - If
package.jsonis missing, stop and ask the user whether to create a Node project first.
Init Steps (deterministic)
- Locate repo root by searching upward for
package.json. - Copy the bundled templates from
assets/template/into the target repo root:- copy
assets/template/harness/→<repoRoot>/harness/ - For
harness.config.json: if the file already exists, merge (preserve user's existing keys, add only missing ones). If it does not exist, copy the template. Never silently overwrite user edits.
- copy
- Append
/.harness/to<repoRoot>/.gitignore(create file if missing). - Update
<repoRoot>/package.json(additive only):- Add scripts:
harness:run:node harness/run.mjsharness:doctor:node harness/doctor.mjs
- Add dependency
zod(usedependenciesunless the repo clearly wantsdevDependencies).
- Add scripts:
- Run
npm install. - Verify:
npm run harness:doctornpm run harness:run -- --provider codex --task "hello harness"
Safety defaults
- The runner performs a lightweight “human gate” check on the task text for auth/payment/policy + sensitive command keywords.
- If blocked, it exits with a non-zero code and prints reasons.
- Operator can bypass using
--allow-risk.
Notes for multi-client compatibility
- The runner shells out to provider CLIs; exact CLI flags vary by tool/version.
- Default provider configs are intentionally minimal; users should adjust
harness.config.jsonfor their environment.
04 同仓库更多 Skills
versioning-by-impact
Use when completing a task and deciding whether repository changes require a semantic version bump and changelog entry before commit/push.
verification-loop
Evidence-before-assertions workflow. Use before claiming work is done, before release, and after any behavior change in scripts/skills/MCP.
typesafe-ai
Build AI-powered software with TypeSafe: small units of AI intelligence you can use like programming primitives. Its System One models, including Jev, turn natural language and application state into typed judgments and probabilities that code can combine. Use when a feature needs programmable common sense, when brainstorming what AI could make possible in an app, or when an LLM prompt-and-parse step could become a structured decision. Applications include routing, ranking, extraction, verification, and interactive experiences; these are starting points, not the limits. Read live docs and cookbooks to find useful patterns and discover new combinations.
skill-opt-lite
Train and optimize skill documents using the SkillOpt methodology — the agent acts as both target and optimizer, running tasks, reflecting on failures, proposing edits, and validating improvements in a self-contained training loop. TRIGGER: optimize skill, train skill, improve skill, skill training, skill optimization, SkillOpt, skill evolution, skill iteration loop, skill feedback loop, skill tuning.
skill-constraints
Enforce browser automation safety constraints — tool usage order, anti-detection rules, screenshot discipline, and human-in-the-loop checks. Use when setting up or verifying browser/MCP tool operations, NOT for every skill execution.
seo-geo-page-optimization
Use when improving a single page for SEO and AI answer-engine visibility (GEO), especially when you need faster first-screen conversion and clearer traffic funnels.