← ClaudeAtlas

guren-harnesslisted

Install or refresh the Guren agent harness (rules, skills, hooks, MCP config) inside an existing Guren app for Claude Code, Codex, Cursor, Copilot, and OpenCode, and explain the guren context / check / audit loop. Use when the user has a Guren app and says "set up the harness", "agent:init", "sync the harness", "install Guren rules for Cursor", or asks how to work in a Guren app with an AI agent. For a directory with no Guren app, use guren-new-app instead.
gurenjs/guren · ★ 29 · AI & Automation · score 75
Install: claude install-skill gurenjs/guren
# Guren Harness Guren ships its agent harness inside the app's own `@guren/cli`, installed by `guren agent:init` and refreshed by `guren agent:sync`. This skill gets that installed and tells you how to use it. The installed harness — the rules directory, the entry document, the hooks — is authoritative once present; this skill is the on-ramp to it, not a replacement. ## Detect a Guren app Positive evidence only: a `package.json` here (or in a parent) whose `dependencies` or `devDependencies` include `@guren/core`. If there is none, stop and use the `guren-new-app` skill. If the dependencies are declared but `node_modules/@guren/cli` is missing, run `bun install` first — nothing below works without it. ## Probe the CLI version before installing Run: ```bash bunx guren --version ``` Multi-agent targets need `@guren/cli` __MIN_CLI__ or newer. Older CLIs **silently ignore** an unrecognized `--target` flag: `agent:init --target codex,cursor` on such a CLI installs a Claude-only harness, prints "AI agent harness is ready", and exits 0. A fallback keyed on a non-zero exit would report multi-agent success that never happened, so decide from the version first: - Version parses and is ≥ __MIN_CLI__ → proceed with `--target`. - Version is older, **or `--version` itself fails or prints no version** (a CLI older still) → treat as older than __MIN_CLI__: run plain `bunx guren agent:init` (Claude-only), and tell the user that multi-agent targets need `@guren/cli` ≥ __MIN_CLI__