Skip to content
Back to skills

Add Harness Adapter

ASecurity

Add or change an agent harness adapter. Use when adding a Provider variant, a spawn recipe, harness capabilities, or attention-hook support.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 20, 2026
developmenttypescriptrustgoshellnode

Works with

  • cli

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add alondero/buildmesh --skill add-harness-adapter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Harness Adapter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Harness Adapter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alondero-add-harness-adapter/badge)](https://www.skillsdirectory.com/skills/alondero-add-harness-adapter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: add-harness-adapter
description: Add or change an agent harness adapter. Use when adding a Provider variant, a spawn recipe, harness capabilities, or attention-hook support.
---

# Add a harness adapter

Before raw Cargo commands in this recipe, set `CARGO_TARGET_DIR` to a private
absolute path under this worktree, such as `<worktree>/.tmp/cargo-focused`.
Restore the previous environment after focused checks. Final verification uses
`npm run verify` and its stamped Rust runner; see
[worktree setup](../../../docs/agents/development-harness.md#worktree-setup).

The adapter owns the spawn recipe, including `WindowsShell`: `PowerShell`, `Cmd` for a `.cmd` shim, or `Direct`. `spawn_environment::wrap` in `src-tauri/src/agent/spawn_environment.rs` reads that declaration. Do not hard-code a shell in the spawner. On macOS and Linux every provider uses `Direct`.

1. Add one file under `src-tauri/src/agent/provider/adapters` implementing `AgentProvider`. The trait is `src-tauri/src/agent/provider/mod.rs`. Register the module and its static in `src-tauri/src/agent/provider/adapters/mod.rs`.
2. Add the `Provider` variant and the `adapter()` arm in `src-tauri/src/models/agent.rs`. Add the id to `BUILTIN_HARNESS_IDS` in `src-tauri/src/agent/provider/mod.rs`. `claude` is an alias of `anthropic` via `HARNESS_PROFILE_ALIASES` in `src-tauri/src/agent/harness_catalog.rs`, not a second provider.
3. Add an `inspector_label` arm in `src-tauri/src/agent/harness_catalog.rs`. The match is exhaustive. `capabilities()` on the adapter is the source of truth. `builtin_harness_catalog()` writes the table. Do not hand-write a TypeScript capability map.
4. Declare `circuit_observation()` for the observation the harness really supports. The default is unwired. Do not add a harness-name branch under `src-tauri/src/services/circuit_worker`. The contract is `docs/development/circuit-session-observation.md`.
5. A transcript reader lives under `src-tauri/src/services/transcript_reader/readers`. It serves the Node Glance through the `glance_window` and `describe_tool_call` defaults on `TranscriptReader`. Override `glance_window` when the store is not a JSONL tail, and `describe_tool_call` when the harness's tools carry their subject outside the common input fields. Add the reader's fixture to `every_wired_file_reader_serves_a_glance_from_its_fixture` in `glance_read_tests.rs`. See `docs/development/node-glance.md`.
6. Cover a fresh spawn and a resume. When a test runs a real CLI, record that CLI's version next to the assertion.
7. Run `cargo test` from `src-tauri/` and commit `src/types/generated/HarnessCapabilitiesTable.ts` and `src/types/generated/HarnessCapabilitiesTable.json`.
8. Update the harness row in `docs/user-guide.md`. Add a caveat to `docs/troubleshooting.md` when runtime behaviour needs one. Touch `README.md` only when the user-facing harness list changes. Put externally verified CLI notes in `docs/learning` with a source link, not in the user guide as an assumption.

From `src-tauri/`: `cargo test --lib harness_catalog`. Then, from the worktree root, `npm run check:docs`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.