adaptive-harness

Detect project context and optimize the oh-my-customcode harness by pruning unused agents.

13|6|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/baekenough/second-brain --skill adaptive-harness
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adaptive-harness
Source: https://github.com/baekenough/second-brain/tree/main/.claude/skills/adaptive-harness
Command: npx skills add https://github.com/baekenough/second-brain --skill adaptive-harness

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically detects project context and optimizes the oh-my-customcode harness (agents, skills, rules) to fit the project. Generates a persistent project profile that drives agent activation decisions and records learned patterns over time.

Core Features & Use Cases

  • Scans project context to identify required agents and configurations.
  • Merges automated detections with existing profiles to preserve manual edits.
  • Produces a portable project profile (.claude/project-profile.yaml) for reuse across teams.

Quick Start

Run /omcustom:adaptive-harness to scan the project and generate a tunable project profile.

Frequently Asked Questions about adaptive-harness

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-tune my agent harness and prune unused agents for a specific project?

To auto-tune your agent harness, run /omcustom:adaptive-harness to scan the project context, identify required agents, and prune unused configurations automatically. It generates a portable project-profile.yaml that drives future agent activation decisions for the optimized harness.

How does project profiling work when detecting required agents and configurations?

Project profiling works by scanning the project context to identify required agents and configurations, then merging automated detections with existing profiles to preserve manual edits. It records learned patterns over time and stores results in a portable .claude/project-profile.yaml file for reuse across teams.

Can I use the adaptive harness to optimize multiple projects while preserving manual edits?

Yes, the adaptive harness applies to multiple projects by merging new detections with existing content while preserving manual edits. It writes changes to .claude/project-profile.yaml, ensuring your custom configurations remain intact while applying automated agent activation decisions across different project contexts.

What commands are available for scanning, optimizing, and exporting project profiles?

The adaptive harness supports four commands: --scan to detect project context, --optimize to prune unused agents, --learn to record patterns over time, and --export to generate a portable project profile. These commands write changes to .claude/project-profile.yaml while preserving manual edits.

When should I not use automated agent pruning for my project harness?

You should avoid automated agent pruning when you have critical manual edits in your project-profile.yaml that rely on agents not detected by the context scan. While the harness preserves manual edits during merging, aggressively pruning unused agents might impact configurations you need for specific edge-case workflows.

What is the best way to generate a portable project profile for agent management across teams?

The best way to generate a portable project profile is to run /omcustom:adaptive-harness with the --export command after scanning. This produces a .claude/project-profile.yaml file that drives agent activation decisions and can be reused across teams to maintain consistent harness optimization configurations.