Community程式設計與開發github.com

TheElephantCoder/performance

Keep sessions fast and cheap. Always on.

performance 是什麼?

performance is a OpenCode agent skill that keep sessions fast and cheap. Always on.

相容平台~Claude Code~Codex CLI~CursorOpenCode
npx skills add https://github.com/TheElephantCoder/agent-harness/tree/main/skills/performance

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

performance 是做什麼的?

Make it fast, keep tokens low.

How

Batch things. If you need to read 3 files, read them in the same turn. Same for greps. Don't do git status then git diff in two separate calls.

Grep first, read second. Never read a big unknown file just to see what's in it. Grep, then read the exact spot.

Don't load everything. MEMORY summary first, details on demand. Skills load when triggered, not at boot. That's what memory/tiers is for.

Keep context small. Summarize long logs instead of pasting 500 lines. Keep MEMORY.md under 8k. Prefer surgical edit over rewriting a whole file.

Measure. Run harness bench --quick before and after you try to optimize. Track cold start, tokens, tool calls, hook time.

Targets I try to hold:

  • cold start <15s
  • tokens per task <50k avg
  • tool calls per task <60
  • hook p99 <100ms

Check

harness bench --task cold-start --harness opencode
harness bench --compare main

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

相關技能