AgentSkillsCN

Agent Tools Reference

提供可用代理工具的参考、内置代理类型工具预设,以及记忆系统。在配置代理能力、选择代理所需工具、理解记忆系统、挑选代理基础类型,或查看代理可用工具时使用此功能。

SKILL.md
--- frontmatter
name: Agent Tools Reference
description: >
  Reference for available agent tools, built-in agent type tool presets,
  and the memory system. Use when configuring agent capabilities, choosing
  which tools agents need, understanding the memory system, selecting an
  agent base type, or checking what tools are available for agents.

Agent Tools Reference

This skill covers the tools available to Overcut agents, built-in agent type presets, and the persistent memory system.

Tool Categories Overview

Overcut provides 35 user-configurable tools plus 6 system tools, organized by category:

CategoryToolsCount
File SystemCreateDirectory, ListDirectory, ReadFile, WriteFile, DeleteFile, EditFile, AppendFile7
Code UtilitiesListCodeDefinitionNames, CodeSearch, SemanticCodeSearch, RunTerminalCmd, GetDiagnostics5
Tickets/IssuesCreateTicket, UpdateTicket, ListTickets, ReadTicket, AddCommentToTicket, UpdateCommentOnTicket6
Pull RequestsCreatePullRequest, ReadPullRequest, UpdatePullRequest, ListPullRequests, MergePullRequest, AddCommentToPullRequest, UpdateCommentOnPullRequest, ClosePullRequest8
Code ReviewAddPullRequestReviewThread, SubmitReview, AddPullRequestReviewThreadReply, GetPullRequestDiff, GetPullRequestDiffLineNumbers5
AttachmentsGetTicketAttachments, GetPullRequestAttachments2
ExplorationExploreCodebase1
Memory (auto-injected)MemoryWrite, MemoryRead2
Coordinator-only (auto-injected)DelegateToSubAgent, UpdateStatus, TaskCompletedTool3

Built-in Agent Types

When creating agents in Overcut, you select a base type that determines the default tool set:

Agent TypeToolsFocus
SeniorDeveloper26 toolsFull-stack development: all file, code, ticket, PR, and exploration tools
CodeReview22 toolsCode review: read-only file access + append, code search, review tools, PR read/update
TechWriter25 toolsDocumentation: full file access, code search, ticket and PR tools
ProductManager20 toolsPlanning: read-only file access, code search, ticket CRUD, PR read/update
ExploreAgent5 toolsExploration: ReadFile, ListDirectory, CodeSearch, SemanticCodeSearch, RunTerminalCmd

Key differences:

  • SeniorDeveloper can create PRs, merge PRs, delete files — full write access
  • CodeReview cannot create PRs or delete files, but can submit reviews and append to files
  • TechWriter has nearly the same tools as SeniorDeveloper (full write access for docs)
  • ProductManager cannot create PRs, write files, or delete files — primarily read + ticket management
  • ExploreAgent is minimal — read-only code exploration only

Automatic Tool Injection

Regardless of base type, these tools are automatically added at runtime:

  • Memory tools (memory_write, memory_read) — added to all agents (coordinator and sub-agents)
  • Coordinator tools (delegate_to_sub_agent, update_status, task_completed) — added only to coordinator agents in agent.session steps

Memory System

The memory system allows agents to persist and retrieve learnings across workflow executions.

memory_write

json
{
  "title": "Short summary of the learning (1 line)",
  "content": "Full details of the learning"
}
  • title: Short summary used as the identifier (1 line)
  • content: Full details of the learning

memory_read

json
{
  "title": "Memory title to retrieve"
}
  • title: Case-insensitive match against stored memory titles

Memory Behavior

  • Memories persist across workflow executions for the same agent
  • Auto-injected into agent context at the start of each execution
  • Use for: repository conventions, past review patterns, common issues, team preferences
  • Keep titles descriptive and unique for reliable retrieval

Tool Selection for Prompts

When writing step prompts, restrict tools to only what's needed. Use allowed/prohibited tool tables:

markdown
### Allowed Tools
| Tool | Purpose |
|------|---------|
| `read_file` | Read source files for analysis |
| `code_search` | Find relevant code patterns |
| `add_comment_to_pull_request` | Post review summary |

### Prohibited Tools
❌ `write_file` — this is a read-only analysis step
❌ `run_terminal_cmd` — no terminal commands needed
❌ `create_pull_request` — PR already exists

This pattern appears in many real playbooks and significantly improves agent focus and efficiency.

For the complete tool listing with tool identifiers, see references/tool-catalog.md.