Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

eve-agent-optimisation前夕 Agent 优化

Agent Skill

eve-agent-optimisation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,999

周安装

85

GitHub Stars

公开资料未说明

下载量

647
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:eve-agent-optimisation(前夕 Agent 优化)
来源仓库:https://github.com/incept5/eve-skillpacks
仓库路径:skills/eve-agent-optimisation
安装命令:
npx skills add https://github.com/incept5/eve-skillpacks --skill eve-agent-optimisation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/incept5/eve-skillpacks --skill eve-agent-optimisation

简介

eve-agent-optimisation 分析 Agent 执行日志,减少工具调用、令牌消耗和时间浪费。

  • 适用于诊断错误转向、盲区搜索或重复操作等低效行为。
  • 使用时应推荐而非直接修改 harness 或模型参数,等待用户批准后再实施。
  • 安装命令为 npx skills add https://github.com/incept5/eve-skillpacks --skill eve-agent-optimisation。
  • 建议确认日志格式兼容性,避免误读非结构化输出。

SKILL.md

Eve Agent Optimisation

The goal: get the agent to its objective in the fewest tool calls, fewest tokens, shortest time. Find where it wastes effort and eliminate it.

Hard Rule: Recommend, Don't Change

Never change the harness, model, reasoning effort, or permission policy without asking the user first. These are cost and capability decisions that belong to the project owner. Diagnose, explain the tradeoff, and recommend — then wait for approval.

What You're Looking For

Analyse agent execution logs to identify:

  1. Wrong turns — agent tried an approach that couldn't work and had to backtrack.
  2. Blind alleys — agent spent tokens exploring something irrelevant to the goal.
  3. Unnecessary tool calls — agent read files it didn't need, ran commands that gave no useful information, or repeated calls with slight variations.
  4. Missing context — agent had to discover something through trial and error that should have been stated in the SKILL.md or job description.
  5. Wrong tool for the job — agent used a slow or fragile tool when a faster/native alternative exists (e.g., shelling out to pdftotext when the LLM reads PDFs natively).
  6. Excessive reading — agent read entire large files when it only needed a section, or read many files looking for something that could have been found with a targeted search.
  7. Verbose output — agent explained its reasoning at length when the task only needed a concise result.
  8. Retry loops — agent repeated the same failing operation, hoping for a different result.

Diagnostic Workflow

Step 1: Get the Execution Record

eve job diagnose <job-id>          # Full timeline, routing, errors
eve job show <job-id> --verbose    # Phase, attempts, harness, agent
eve job receipt <job-id>           # Token usage + cost

Key numbers:

  • Input tokens — how much the agent read. High = reading too much.
  • Output tokens — how much it wrote. High = verbose or excessive reasoning.
  • Attempt count — more than 1 means the agent crashed or timed out.
  • Duration — compare against what a focused agent should take.

Step 2: Stream or Replay the Logs

eve job follow <job-id>            # Real-time (if still active)
eve job logs <job-id>              # Historical

Read the log sequentially. For each tool call, ask:

  • Did this advance the goal? If not, it's waste.
  • Could this have been avoided? If the SKILL.md had told the agent where to look, would it have skipped this?
  • Was this the right tool? Could a different approach have gotten the same information faster?
  • Was the scope right? Did the agent read an entire file when it needed 10 lines?

Step 3: Map the Critical Path

Identify the minimum set of tool calls needed to achieve the goal:

  1. What files actually mattered?
  2. What commands actually produced useful output?
  3. What decisions were correct on first attempt?

Everything else is waste. Quantify: how many tool calls were on the critical path vs total? What percentage of tokens were spent on productive work?

Step 4: Identify Root Causes

For each category of waste, trace back to the root cause:

WasteRoot CauseFix
Agent explored wrong filesSKILL.md doesn't say where to lookAdd specific file paths or search patterns to SKILL.md
Agent tried wrong approach firstSKILL.md doesn't state the preferred approachAdd explicit instructions: "Do X, not Y"
Agent read files it didn't needJob description too vagueNarrow the description; specify exact scope
Agent retried failing commandNo error handling guidanceAdd failure mode instructions to SKILL.md
Agent used wrong tool for file typeSKILL.md doesn't mention native capabilitiesAdd file-type routing: "PDFs: read natively. Images: view directly."
Agent read entire large fileNo guidance on targeted readingAdd instructions: "Read only lines 1-50" or "Search for X"
Agent verbose in outputNo output format specifiedSpecify exact format: JSON schema, attachment name, concise summary
Agent lacks context for decisionsMissing resource refs or env varsAttach the right resources; ensure with_apis is configured
Agent re-discovers known factsNo persistent memory strategyUse org docs, KV store, or attachments to carry forward knowledge
Agent slow due to provisioningToo many resources, large clone, unnecessary toolchainsTrim resource refs, configure shallow clone, remove unused toolchains

The Fix Is Almost Always the SKILL.md

The SKILL.md is the highest-leverage optimisation target. A precise SKILL.md eliminates entire categories of wasted tool calls.

Write for Efficiency

  1. State the goal in one sentence. The agent should know exactly what it's trying to achieve before doing anything.
  2. Name specific files and paths. "Check the auth config" wastes tool calls searching. "Read src/config/auth.ts lines 1-30" is one tool call.
  3. State the approach explicitly. "Use native PDF reading via the Read tool — do NOT shell out to conversion tools" prevents the agent from trying the wrong path.
  4. Specify what NOT to do. If there's a common wrong turn, block it. "Do not read the entire test suite; only read the failing test file."
  5. Define the output format. "Write a JSON attachment named findings.json with schema {issues: [{file, line, severity, message}]}." This eliminates formatting deliberation.
  6. Tell the agent what context it has. "The resource index at .eve/resources/index.json lists all attached documents with mime_type. Read it first to determine processing strategy."
  7. Provide decision trees for branches. Instead of "handle different file types appropriately": Check mime_type in resource index: - application/pdf → read natively, use page ranges for >10 pages - text/* → read directly - image/* → view directly (multimodal) - other → describe and note for human review
  8. Keep it short. Every word the agent reads consumes input tokens. Cut filler. Use tables and lists over prose.

Test the SKILL.md

After rewriting, run the same job again and compare:

  • Fewer tool calls?
  • Fewer tokens?
  • Faster completion?
  • Correct result on first attempt?
eve job compare <old-job-id> <new-job-id>   # Compare receipts

Beyond the SKILL.md

When SKILL.md changes aren't sufficient, look at these levers (all require user approval to change):

Harness and Model

If the agent is consistently:

  • Too slow for the task → recommend a faster model (e.g., sonnet → haiku).
  • Not capable enough → recommend a more capable model (e.g., sonnet → opus).
  • Using too many thinking tokens → recommend lower reasoning effort.
  • Not thinking enough → recommend higher reasoning effort.

Present the tradeoff (speed vs cost vs quality) and let the user decide.

Permission Policy

If the agent is blocked waiting for approvals on every file edit:

  • Recommend yolo for automated batch work.
  • Recommend auto_edit for supervised coding.
  • Explain the security implications.

Resource Refs

If provisioning is slow:

  • Remove resource refs the agent doesn't actually use.
  • Mark optional context as required: false.
  • Thread mime_type so the agent doesn't need to probe file types.

Git Controls

If the agent wastes time on git operations:

  • commit: auto + push: on_success eliminates manual git ceremony.
  • create_branch: if_missing avoids branch creation failures.
  • ref_policy: auto minimises clone scope.

Job Scope

If the agent is doing too much in one job:

  • Split into focused children via orchestration.
  • Each child gets a narrow scope and specialised SKILL.md.
  • Cheaper models for simpler children; capable models only where needed.

Team Coordination

If child agents duplicate work:

  • Ensure skills read .eve/coordination-inbox.md at startup.
  • Wire depends_on for sequential steps.
  • Use attachments (not prose) for passing data between jobs.

Optimisation Report Template

After analysing an agent's execution, present findings in this format:

## Agent Optimisation Report: <job-id>

**Goal:** <what the agent was trying to do>
**Result:** <succeeded/failed> in <duration> using <tokens> tokens (<cost>)

### Efficiency Score
- Total tool calls: N
- Productive tool calls: M (X%)
- Wasted tool calls: N-M (Y%)

### Waste Categories
1. <category>: N calls, ~X tokens wasted
   - Example: <specific wasteful action from logs>
   - Fix: <specific SKILL.md or config change>

### Recommended Changes
- [ ] SKILL.md: <specific edit> — eliminates <category> waste
- [ ] SKILL.md: <specific edit> — eliminates <category> waste
- [ ] (Requires approval) Model: <current> → <recommended> — <reason>
- [ ] (Requires approval) Reasoning: <current> → <recommended> — <reason>

### Expected Improvement
- Estimated tool calls: N → M
- Estimated tokens: X → Y
- Estimated time: A → B

Quick Reference: Common Waste Patterns

PatternSignal in LogsFix
File huntingMultiple Read calls to different filesName the target file in SKILL.md
Grep cascadeMultiple searches with different patternsProvide the right search term
Trial and errorTool call fails, agent retries with variationDocument the correct approach
Over-readingRead tool on 5000+ line fileSpecify line ranges or tell agent to search first
Unnecessary explorationAgent reads README, CHANGELOG, etc.Explicitly say what NOT to read
Format deliberationLong assistant turns deciding output structureSpecify output format in SKILL.md
Redundant validationAgent re-checks things it already confirmedStructure the SKILL.md as a linear flow
Native capability missShell out to CLI tool when LLM can process directlyState native capabilities explicitly
Context re-discoveryAgent re-learns project structure every runUse org docs or KV store for persistent context
Approval blockingAgent pauses waiting for permissionRecommend yolo or auto_edit to user

Related Skills

  • eve-job-debugging — CLI commands for monitoring and diagnosing jobs.
  • eve-orchestration — decomposing work into parallel children.
  • eve-agent-memory — storage primitives for persistence across jobs.
  • eve-skill-distillation — encoding learned patterns into reusable skills.
  • eve-read-eve-docs — platform reference docs (CLI, manifest, jobs, harnesses).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.33%
按下载量换算216

Claude

30.88%
按下载量换算200

Cursor

20.61%
按下载量换算133

Gemini CLI

9.14%
按下载量换算59

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/incept5/eve-skillpacks --skill eve-agent-optimisation 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills