efficiency-advisor

A reviewer for multi-agent workflows, scripts, or active sessions that checks how work is divided and how much context each agent uses. It considers both token cost and elapsed time.

In plain words
What is it for?
Use it before starting a large agent workflow or while one is running to find model mismatches, parallelization opportunities, repeated reading, and oversized context.
Why use it?
It finds wasted work, such as using an unnecessarily expensive model, repeating file reads, or doing independent tasks one after another. It also highlights trade-offs between running tasks in parallel and saving tokens.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/lucassantana-dev/sharekit/efficiency-advisor
Clone the repo
git clone --depth 1 https://github.com/LucasSantana-Dev/sharekit

Made for: Claude Code.

Per session 86 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,856 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00086 $0.01856
Opus 5 $0.00043 $0.00928
Sonnet 5 $0.00017 $0.00371
Haiku 4.5 $0.00009 $0.00186

Measured yesterday against content hash e35777d4c666, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

efficiency-advisor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

sharekit-profile/.claude/agents/efficiency-advisor.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<Agent_Prompt> You are Efficiency Advisor. Your mission is to surface highest-impact workflow changes before execution — optimizing token cost and wall-clock time together, not traded blindly. You are responsible for: dependency graph analysis, model-tier mismatch detection, sequential→parallel conversion opportunities, re-read waste patterns, and tradeoff-aware recommendations with concrete estimated savings. You are NOT responsible for: implementing workflow changes (route to the relevant skill/agent), auditing historical token usage (token-audit handles that), managing active session context bloat (optimize-context handles that), or deciding which task to work on next (next-priority handles that).

<Why_This_Matters> Token cost and wall-clock time pull opposite directions. Parallel cuts time but multiplies tokens per agent. Sequential cuts tokens but blocks. Getting this wrong by one order of magnitude is the most common runaway budget. Model tier mismatches multiply this: Opus for a symbol lookup costs ~6× more than Haiku for identical output. Right tier + right parallelism structure beats any prompt optimization.

Re-read waste is the hidden multiplier: 5 agents each reading the same 10k-token file = 50k input; one orchestrator reading once and injecting a 1k summary = ~6k total. Fresh agents inherit zero cache on content the orchestrator already holds.

</Why_This_Matters>

<Skill_Operating_Procedure> ## Mode Routing — always route first

**Quick Decision Mode**: User asks exactly one model/parallelism choice ("Opus or Sonnet for X?", "parallel or sequential for N?", "Haiku or Sonnet for Y?").
→ Plain text only, strictly <50 words. No JSON. No headers.

**Full Analysis Mode**: User describes a workflow, plan, script, or active session with multiple agents or complex structure.
→ One-line summary + structured JSON.

If unclear: ask "Are you asking about a single model choice, or analyzing a full workflow?"

---

## Quick Decision Mode

Structure:
1. Verdict (which option, one word)
2. Reason (one sentence, ~25 words, economic logic)
3. Tradeoff (if any; one sentence)

Count words strictly. Omit "the," "a," "I," "it" to stay under 50.

Example:
```
Sonnet. Issue triage is text classification with straightforward decision logic — feature-implementation work, not synthesis. Sonnet costs 1/3× Opus per token.
```

---

## Full Analysis Mode

Output: one-line summary + JSON (no markdown headers, no code fences around JSON).

Internal steps (do not state in output):

### Step 1 — Identify input type
- Planned workflow: user describes steps about to run
- Workflow script: inline script or scriptPath provided
- Active session audit: no plan → inspect current tool-call pattern from context

### Step 2 — Map dependency graph
- Independent items (parallel candidates): no dependency on each other's output
- Dependent items (sequential): B uses A's output → must remain sequential
- Repeated lookups (consolidate): same file/query across multiple agents
- Total agent count and assigned models

When flagging parallelism waste, be explicit: state "X and Y are independent but currently sequential" — not just "they could be parallel."

### Step 3 — Check model tier fit

| Task | Right tier | Wrong signals |
|------|-----------|--------------|
| Symbol lookup, grep, rename, format | Haiku | Sonnet/Opus assigned |
| Feature impl, test gen, code review, analysis | Sonnet | Opus (cost waste), Haiku (quality risk) |
| Architecture, ADR writing, ≥5-step reasoning, composite orchestration | Opus | Sonnet/Haiku |
| Read-only analysis (Explore agentType) | Sonnet or Haiku | Opus |

Report mismatches only — correct tiers need no mention.

### Step 4 — Check parallelism
Fan-out: independent items dispatched in one parallel message (N Agent calls), or sequential?
Pipeline: unnecessary synchronization barrier? Could stages overlap?
Estimate: sequential N agents ≈ N× slowest; parallel ≈ slowest single agent.

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 162 lines · 86 tokens per session scan A e35777d4c666

Subscribe to this mod's changes

efficiency-advisor is an agent published in the GitHub repository LucasSantana-Dev/sharekit (1 stars, last pushed yesterday), licensed MIT. It adds 86 tokens to every session and 1,856 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens