← Back to Skills Marketplace
aznikline

Lean Claude Code Harness

by Mason · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
162
Downloads
0
Stars
1
Active Installs
2
Versions
Install in OpenClaw
/install lean-claude-code-harness
Description
Use when building, auditing, or simplifying an AI coding-agent harness, especially when the current runtime has unclear config precedence, weak tool permissi...
README (SKILL.md)

Lean Claude Code Harness

Distill the durable parts of Claude Code into a smaller, auditable harness. The goal is not feature parity. The goal is a runtime another engineer can understand, extend, and verify without reverse-engineering hidden behavior.

When to Use

Use this skill when a coding-agent runtime shows any of these symptoms:

  • config values are hard to trace
  • tool permissions are implicit or inconsistent
  • the tool surface keeps growing without clear ownership
  • session history disappears after a run
  • the main loop is hard to sketch from memory
  • product-only logic is mixed into the harness core

Keep These Primitives

  • layered configuration
  • permission-aware tool execution
  • a small explicit tool registry
  • markdown skill discovery
  • transcript persistence
  • a visible query loop

Remove These By Default

  • telemetry
  • remote-managed settings
  • hidden kill-switches
  • private feature flags
  • branding-specific branches
  • heavyweight UI layers

Only add them back when the user explicitly asks for them and can explain the operational need.

Quick Audit

If you need a fast harness review, answer these six questions first:

  1. Can you explain config precedence without reading three files?
  2. Are tool permissions checked before execution?
  3. Can you list the built-in tools in one screen?
  4. Are skills discovered from visible files instead of hidden registration?
  5. Does every run persist a transcript?
  6. Can you trace the query loop from prompt to final response?

If two or more answers are "no", the harness is already too opaque.

Apply This Order

1. Freeze the Runtime Boundary

Keep the entrypoint thin. It should only:

  • parse commands
  • load merged config
  • wire services
  • print results

Do not hide business logic in the CLI layer.

2. Make Config Precedence Explicit

Use a predictable merge order:

  1. defaults
  2. user config
  3. project config
  4. local config
  5. environment overrides

If a runtime value cannot be traced back to one of these sources, the harness is already drifting into opacity.

3. Gate Tools Before Execution

Define permission policy before the query loop runs tools.

Minimum pattern:

  • default and plan expose read-only tools
  • write or shell tools require a stronger mode
  • bypassPermissions should be explicit and rare

Permission checks belong before tool execution, not after damage is already possible.

4. Start with a Tiny Tool Surface

Default tool set should be boring and legible:

  • list_files
  • read_file
  • grep
  • bash

Do not add tools because the upstream product has them. Add tools only when they expand capability without making the harness harder to reason about.

5. Keep Skills File-Backed

Discover skills from SKILL.md files with frontmatter metadata. Avoid hidden registration layers, magic imports, or remote skill switches.

The discovery rule should be explainable in one sentence: scan configured directories, parse frontmatter, expose name, description, and path.

6. Persist Every Session

Save transcripts to disk. Each transcript should include:

  • session id
  • timestamp
  • prompt
  • tool steps
  • final response

If an agent run cannot be inspected afterward, debugging and trust both degrade.

7. Keep the Query Loop Visible

The harness should make this loop easy to trace:

  1. receive prompt
  2. ask provider for next action
  3. validate tool request
  4. execute tool
  5. append tool result to state
  6. repeat until final response
  7. persist transcript

If you cannot sketch the loop from memory, the runtime is already too opaque.

Anti-Patterns

  • cloning upstream complexity without upstream context
  • mixing config loading, permission logic, and tool execution in one file
  • treating remote flags as architecture instead of distribution policy
  • adding analytics before the harness can explain itself locally
  • claiming a harness is complete without transcript and permission tests

Minimal Verification

Before calling the harness usable, verify:

  • config precedence behaves as documented
  • permission modes actually filter tools
  • skill discovery finds real SKILL.md files
  • session persistence writes and reloads transcripts
  • the full query loop works with a deterministic provider

The verification standard is simple: no claims about the harness until the config, permission, skills, session, and loop seams are each exercised once.

Use This Skill To

  • design a fresh coding-agent harness
  • simplify a bloated Claude Code-style runtime
  • review an existing agent runtime for opacity and unnecessary layers
  • extract reusable harness patterns from a larger codebase

Do Not Use This Skill To

  • recreate the full Claude Code product surface
  • justify hidden behavior with “that is how the upstream does it”
  • add cloud control planes, telemetry, or feature flags without a concrete requirement

Output Standard

When applying this skill, produce:

  • the minimal harness shape
  • the layers kept vs removed
  • the exact config precedence
  • the permission model
  • the smallest verification plan that proves the harness is real
Usage Guidance
This skill is an instruction-only best-practices guide for designing a small, auditable Claude-style coding-agent harness. It does not install code, request credentials, or declare any network endpoints. It is safe from a supply-chain perspective, but remember: the outputs are advisory — if you give an agent running this guidance access to your filesystem, network, or credentials, the agent could use those platform privileges to read or write files (the skill recommends persisting transcripts). Before using it in an automated agent, review the harness changes it proposes, and restrict the agent's runtime permissions (file writes, shell access, network access) until you have manually verified the design and verification plan.
Capability Analysis
Type: OpenClaw Skill Name: lean-claude-code-harness Version: 1.0.1 The skill bundle provides architectural guidance and best practices for designing transparent and auditable AI agent harnesses. It promotes security-positive patterns such as explicit tool permission gating, removing telemetry/hidden kill-switches, and maintaining session transcripts for auditability (SKILL.md). No malicious code, data exfiltration, or harmful prompt injection instructions were identified.
Capability Assessment
Purpose & Capability
The name, description, and SKILL.md all describe design guidance for a coding-agent harness. There are no unexpected env vars, binaries, or install steps; the declared requirements (none) match the content.
Instruction Scope
The SKILL.md is advisory and high-level: it tells an agent/designer what patterns to prefer or avoid and what outputs to produce (harness shape, config precedence, permission model, verification plan). It does not instruct the agent to read system files, exfiltrate data, call external endpoints, or access undeclared env vars.
Install Mechanism
No install spec and no code files — instruction-only — so nothing is written to disk or downloaded by the skill itself.
Credentials
The skill requests no environment variables, credentials, or config paths. There are no disproportionate credential requests.
Persistence & Privilege
always is false and there is no install-time persistence. The skill can be invoked autonomously by the model (platform default) but that alone is not a red flag here because the skill contains only guidance and no built-in actions that modify system state.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install lean-claude-code-harness
  3. After installation, invoke the skill by name or use /lean-claude-code-harness
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Improve triggering guidance, add quick audit checklist, and include the public ClawHub link in the README.
v1.0.0
Initial release: distilled Claude Code harness patterns into a lean, auditable skill.
Metadata
Slug lean-claude-code-harness
Version 1.0.1
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 2
Frequently Asked Questions

What is Lean Claude Code Harness?

Use when building, auditing, or simplifying an AI coding-agent harness, especially when the current runtime has unclear config precedence, weak tool permissi... It is an AI Agent Skill for Claude Code / OpenClaw, with 162 downloads so far.

How do I install Lean Claude Code Harness?

Run "/install lean-claude-code-harness" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Lean Claude Code Harness free?

Yes, Lean Claude Code Harness is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Lean Claude Code Harness support?

Lean Claude Code Harness is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Lean Claude Code Harness?

It is built and maintained by Mason (@aznikline); the current version is v1.0.1.

💬 Comments