跳到正文
FunCoding

octocode-harness-review

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.

Star
972
许可证
MIT
最近提交
2026年12月2日

skills-dev/octocode-harness-review/SKILL.md

在 GitHub 上查看

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).

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 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, context engineering or the MCP spec, 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.

相似的 Skill

ask-matt

MAmattpocock/skills337k近 7 天新增 4,978 个 star

chief-of-staff

MAmattpocock/skills337k近 7 天新增 4,978 个 star

setup-matt-pocock-skills

MAmattpocock/skills337k近 7 天新增 4,978 个 star

subagent-driven-development

OBobra/superpowers331k近 7 天新增 4,772 个 star

autonomous-loops

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

autonomous-agent-harness

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star