agent-harness-construction

agent-harness-construction is a skill for Claude Code, Codex from jxoesneon/Ciel. It costs 24 tokens per session (588 once invoked), scanned A, original, Apache-2.0.

A set of design guidelines for the tools that coding agents use to interact with files, databases, and other systems. It defines how tools should report results and explain recovery from errors.

In plain words
What is it for?
Use it when designing agent tools, choosing how much each tool should do, structuring tool responses, and adding useful next steps to error messages.
Why use it?
It makes agent actions clearer and reduces confusion when a tool fails. It also helps limit risky operations such as commits or database migrations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it when designing agent tools, choosing how much each tool should do, structuring tool responses, and adding useful next steps to error messages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jxoesneon/ciel/agent-harness-construction
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jxoesneon/Ciel --skill agent-harness-construction
Clone the repo
git clone --depth 1 https://github.com/jxoesneon/Ciel

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-harness-construction

README.md
[![agentmods](https://agentmods.dev/badge/skills/jxoesneon/ciel/agent-harness-construction/github.svg)](https://agentmods.dev/skills/jxoesneon/ciel/agent-harness-construction)
Your own site
<a href="https://agentmods.dev/skills/jxoesneon/ciel/agent-harness-construction"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/agent-harness-construction/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-harness-construction

Your own site · 80×15
<a href="https://agentmods.dev/skills/jxoesneon/ciel/agent-harness-construction"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/agent-harness-construction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 588 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00588
Opus 5 $0.00012 $0.00294
Sonnet 5 $0.00005 $0.00118
Haiku 4.5 $0.00002 $0.00059

Measured 10d ago against content hash e5b53b3e2b44, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

agent-harness-construction scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agent-harness-construction/SKILL.md · 58 lines

What it actually says

CIEL ADAPTATION: Agent Harness Construction (Architecture Design)

This skill provides the architectural principles for designing and optimizing the "harness" through which CIEL sub-agents interact with the world. It ensures that tool definitions are unambiguous and observations are actionable.

Core Design Principles

1. Action Space Granularity

  • Micro-Tools: For high-risk, irreversible operations (e.g., git_commit, db_migration). Requires explicit verification.
  • Medium-Tools: For common iterative loops (e.g., read_file, grep_search). Optimized for context efficiency.
  • Macro-Tools: Used ONLY when the latency/cost of round-trips is the dominant bottleneck.

2. The Observation Contract

Every tool execution MUST return a structured observation containing:

  • status: success | warning | error
  • summary: A concise, one-line explanation of the result.
  • next_actions: Suggested follow-up steps based on the output.
  • artifacts: Links or paths to any resources created or modified.

3. Error Recovery Paths

Tool definitions MUST include explicit recovery hints in their error messages. Instead of "File not found," return "File not found at /path/x. Did you mean /path/y? Try running ls to verify the path."

Implementation Patterns

  • ReAct Planning: Use for exploratory tasks with high uncertainty.
  • Hybrid Execution: Combine ReAct for high-level reasoning with typed, schema-first tool calls for deterministic execution.

Anti-Patterns

  • Overlapping Semantics: Creating multiple tools that do essentially the same thing (e.g., search_code and find_text).
  • Opaque Observations: Tools that return massive, unformatted blobs of text without success/failure metadata.
  • Context Bloat: Including entire documentation files in the tool descriptions instead of loading them via the skill system.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 58 lines · 24 tokens per session scan A e5b53b3e2b44

Subscribe to this mod's changes

agent-harness-construction is a skill published in the GitHub repository jxoesneon/Ciel (1 stars, last pushed 3d ago), licensed Apache-2.0. It adds 24 tokens to every session and 588 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

surge

Use when a user provides a PRD, spec, or detailed requirements document and needs a full project delivered through iterative expert orchestration — multi-round analyze/research/design/implement/QA cycles with convergence detection. NOT for: single-file edits, quick prototypes, simple Q&A, or tasks without a written…

carbonshow/intent-fluid · 66 tokens

ai-native-software-dev

Use when the user asks to build, change, modernize, or reconstruct non-trivial software with an AI-native workflow, including greenfield development, work in an existing codebase, or authorized reference-based product reconstruction; also use when lifecycle planning, architecture, implementation, testing, review…

carbonshow/intent-fluid · 101 tokens

Code Quality Review

Conduct a comprehensive code quality review focused on clean code, architecture, and project standards.

asap-protocol/asap-protocol · 21 tokens

redpolicy-guide

An editorial policy for turning webinar transcripts into self-contained guides. A transcript is a written record of spoken material, while a self-contained guide can be understood without watching the webinar.

mikeshu2001/content-factory · 49 tokens

write-overview

A workflow for researching and writing a review essay about a project topic when no finished source text exists. It gathers the facts, studies example essays when available and produces the article in a project output folder.

mikeshu2001/content-factory · 17 tokens

redpolicy-article

An editorial guide for writing comparison articles about services, tools, and products. It defines a consistent entry format covering the name, link, price, description, and notable features.

mikeshu2001/content-factory · 54 tokens