By hrmtz
Operational harness for Claude Code: defense-in-depth credential leak prevention, workflow guardrails, and behavioral rails distilled from production self-hosted use.
npx claudepluginhub hrmtz/claude-harnessDefense-in-depth hooks for Claude Code: credential leak prevention, dangerous bash command guard, admission-keyword workflow reminders.
Peer-pane Claude Code worker orchestration via tmux + jsonl mailbox. Bundles Formation worker spawning, session-scoped routing, and a receipt-gated babysit-pr skill for bounded CI monitoring and reply-only review follow-up. Hooks suggest Formation and mint local ownership receipts only for active Formation sessions.
Behavioral craft skills distilled from obra/superpowers (MIT): skill-tdd (author skills via RED-GREEN-REFACTOR pressure testing), atomized-briefing (context-free plans for formation workers / subagent dispatch), root-cause-debugging (Iron Law + 3-failed-fixes architecture escalation), plus the harness-original calibrated-verification (every checker ships a known positive + negative control and prints its denominator; #281). The explicitly-behavioral annex to harness-core's structural hooks: superpowers teaches, harness enforces — this plugin imports the teaching half and wires it into the enforcing half.
7-day visitors to each marketplace page
Operational harness for Claude Code, distilled from self-hosted production use.
Why a "harness"? LLM agents fail in patterned ways — credential leaks, recovery loops, premature script generation. Behavioral rules in
CLAUDE.mdcatch some of these, but the same incidents repeat. This marketplace ships structural fixes (hooks, guards, reflexive context injection) that don't rely on the agent remembering.
| Plugin | What it does | Trigger |
|---|---|---|
| harness-core | Defense-in-depth hook set (hooks/hooks.json is authoritative). Flagship trio: credential value scrub (PostToolUse) + dangerous bash guard (PreToolUse) + admission-keyword workflow reminder (UserPromptSubmit); plus branch-policy / rotation-propagation / 真田 auto-backup guards, session-context rails, and a Stop/SubagentStop security-review depth gate. | Every Bash call, user prompt, and session stop |
| harness-magi | Claude-side contract mirror for multi-perspective preflight. It fails closed until a Claude-native structural runner ships; use the working harness-magi-codex companion for MELCHIOR/BALTHASAR/CASPAR fan-out and cross-family review. | Walltime ≥ 2h, ≥ 100M row DML, non-reversible cutover, new pipeline layer, ≥ $10 spend, or long-poll scripts |
| harness-rails | Operational safety rails for long-running ops: pre-flight algorithm fitness CLI (working set vs RAM), in-flight heartbeat + cron watcher (stale + ETA overrun), Discord notify, and opt-in gh issue emit. Human-in-loop only — no auto-kill. | Long-running operations (> 1h walltime); watcher runs via cron */1 * * * * |
| harness-formation | Spawn and coordinate long-running peer AI agent panes (claude or codex) in sibling tmux panes. Append-only jsonl mailbox with session-scoped identity, auto-relay daemon, credential-safe body guard. | Tasks that justify hours of wall time and need live observability or mid-flight redirection |
| harness-craft | Behavioral craft skills distilled from obra/superpowers (MIT): skill-tdd (author skills via RED-GREEN-REFACTOR pressure testing, structural-first entry gate), atomized-briefing (context-free 2-5 min task plans for formation workers / subagent dispatch), root-cause-debugging (Iron Law + 3-failed-fixes escalation to dual-magi-review), plus the harness-original calibrated-verification (every checker ships a known positive + negative control and prints its denominator; #281). Superpowers teaches, harness enforces — this is the explicitly-behavioral annex, wired into the enforcing half. | Authoring a SKILL.md, briefing a formation worker / subagent plan, any debugging session, or writing/trusting a verification script |
| harness-kimi | Port of harness-core to Kimi Code CLI via its native hook API (Kimi >= 0.28). install-kimi-hooks.sh writes [[hooks]] entries into ~/.kimi-code/config.toml from the shared overlay; Kimi's payload is Claude-shaped snake_case and honors the hookSpecificOutput JSON contract, so the same guards fire unmodified and lib.sh absorbs the remaining deltas (.tool_output, wire.jsonl resolution) (#54, docs/kimi_hooks.md). Plus project-level AGENTS.md (behavioral) and a periodic session-log scrubber. Supersedes the BASH_ENV interception layer (#52, deprecated). | Every Kimi session; bash install-kimi-hooks.sh + cron scrubber every minute |
| harness-grok | Port of harness-core/rails to the Grok CLI via its native hook API. install-grok-hooks.sh writes ~/.grok/hooks/harness.json from the shared overlay; lib.sh absorbs Grok's camelCase payload (toolInput/toolName/sessionId) and {"decision":"deny"} output shape so the same guards fire (docs/grok_hooks.md). Closes a fail-open where a Grok payload silently passed the guard. | Every Grok session; bash install-grok-hooks.sh + [compat.claude] hooks = false to avoid double-fire |
More plugins are planned (CLAUDE.md persona templates, repo-init skeleton). See GitHub issues for status.
# in Claude Code
/plugin marketplace add github:hrmtz/claude-harness
/plugin install harness-core@claude-harness
After install, Claude Code auto-wires the hooks via ${CLAUDE_PLUGIN_ROOT}/hooks/hooks.json. No manual ~/.claude/settings.json edit needed.
Codex uses the native repository marketplace in .agents/plugins/. See
docs/codex_plugins.md for install, trust, legacy
hook migration, update, enable/disable, and uninstall instructions.
# credential scrub regression tests use synthetic secret-shaped fixtures
python3 plugins/harness-core/tests/test_value_scrub_jwt.py
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Claude Code marketplace entries for the plugin-safe Agentic Awesome Skills library and its compatible editorial bundles.
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations