Skip to content
Back to skills

Octocode Harness Review

ASecurity

Load this skill first when asked to cut Octocode tokens, calls or time per answer by reviewing its harness: instructions, tool descriptions, schemas, hints, reply-shaping code. Keeps only fixes a rerun proves.

  • 971 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
ai-agentsnodeapi

Works with

  • api
  • mcp

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add bgauryy/octocode --skill octocode-harness-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Octocode Harness Review?

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

Security grade badge for Octocode Harness Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bgauryy-octocode-harness-review/badge)](https://www.skillsdirectory.com/skills/bgauryy-octocode-harness-review)

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: octocode-harness-review
description: "Load this skill first when asked to cut Octocode tokens, calls or time per answer by reviewing its harness: instructions, tool descriptions, schemas, hints, reply-shaping code. Keeps only fixes a rerun proves."
---

# Octocode harness review

Cut tokens (new input, cached re-reads, output), calls and seconds per correct, cited answer. The cost lives in two
layers: **context** (instructions, tool descriptions, schemas, hint text) in `../octocode-mcp-host/packages/octocode-core`,
and **code** (validation, execution, reply shaping, pagination, caching) in `packages/octocode-native`. Evidence is
never the saving: cut duplication, metadata and round trips, never requested evidence.

Run from the repo root; `$DEV` is `node skills-dev/octocode-dev/scripts/dev.mjs` ([AGENTS.md](../../AGENTS.md#work-locally)).

## Steps

1. **Measure the baseline** on a pinned binary: `$DEV pin`, then run every call with
   `NODE_ENV=development OCTOCODE_NATIVE_BIN=<path>`; without `NODE_ENV=development` the launcher ignores the override
   and measures the installed binary. Take the fixed cost per session, fresh-agent task tallies and a dogfood log as
   [measure](references/measure.md) gives them.
2. **Break each issue down.** Walk the chain and stop at the first step that went wrong; that step owns the fix:
   instructions → tool description → schema and defaults → the call sent → validation → execution → reply shaping
   and pagination → hints and `next.*` → the agent's next call. For a context issue, quote the sentence that misled
   the agent, or name the missing one, and write the replacement. For a code issue, read the path end to end and
   measure it before proposing a change. Judge whole chains: three calls where one would do is an issue even when
   each call is correct.
3. **Propose.** Write or update `<repo>/docs/rfcs/context-efficiency.md`. Give each item its breakdown (`path:line`),
   measurement, change, expected saving, risk and proving check, and rank items by saving per risk. When an item
   rests on a rule from [tool writing](https://www.anthropic.com/engineering/writing-tools-for-agents),
   [context engineering](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents) or the
   [MCP spec](https://modelcontextprotocol.io/specification/latest), cite that source beside the item. A
   review-only request stops here and returns the ranked items.
4. **Fix and prove.** Land one item at a time: core text first (then `$DEV contracts:regen`), native after. Rerun the
   same tasks on a newly pinned binary. Keep a change only if answers stay correct and cited and cost drops beyond
   run-to-run spread (`harness-tally.mjs --before`); undo the rest by editing. Finish with `$DEV gates`, or hand the
   change to the gates owner in a multi-agent round.

## Return

The result first, then before → after per task (calls, failed calls, tokens new / cached / output, seconds, answer
correct), each kept change (layer, file, saving), what was undone, and open items. Label unmeasured claims as
assumptions.

Files in this skill

  • SKILL.md3.1 KB
  • references/measure.md2.5 KB
  • scripts/harness-tally.mjs12.5 KB
  • scripts/lib/entrypoint.mjs552 B
  • scripts/lib/fail.mjs594 B
  • scripts/tests/harness-tally.test.mjs6.7 KB

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 ai-agents →

Comments

Loading comments…

Newsletter

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