Appendix B: Tool Quick Reference

Positioning: This appendix is the data plane of the tool system in Chapter 6: it enumerates all 80 registered tool names visible to models on the current octos main branch (60 core + 20 admin), gives a guided tour across 10 capability domains, and pairs the P0 coding contract's ten required tools with their corresponding coding shims, the fleet worker's two tool subtables, and the 4 feature gates. Prerequisites: Chapter 6 (the tool system) and Chapter 7 (group policy and the sandbox). Who should read it: readers B/C/D configuring profiles or WorkerGrants, or debugging "why is this tool invisible": use it as an index, not a tutorial.

B.0 Methodology: organized by registered name, not by fixed total

octos has no stable "total number of tools." The same crates/octos-agent/src/tools/ directory yields three different counts under three measurement conventions, and this appendix uses the measured one throughout (commit 9c157101, measured 2026-09-03):

  • Directory convention: crates/octos-agent/src/tools/ holds 58 entries (57 .rs files plus one admin/ subdirectory), matching Chapter 6;
  • Registered-name convention: under different construction paths, those 58 entries register 80 model-visible names: the 60 core + 20 admin of this table. crates/octos-agent/src/tools/coding_tools.rs alone carries 15 registered names, while support modules like crates/octos-agent/src/tools/replacer.rs and crates/octos-agent/src/tools/write_grant.rs carry none at all, so "file count equals tool count" fails in both directions;
  • Grouping convention: policy grouping follows TOOL_GROUPS (10 groups) at crates/octos-agent/src/tools/policy.rs:186.

The old draft's approach of listing built-in tools by fixed count is retired: profile filtering, compile-time feature gates, the spawn_only marker, and chat-gateway registration all change which tool set a session actually sees, and remembering the layered registration model beats remembering a number. The "one-line duty" column in the table comes from each file's first //! doc line or its fn description() return string, verifiable row by row.

B.1 Main table: the 80 registered names

Each row gives the registered name, a one-line duty, its capability domain, and its gate. The "Gate" column is filled only when the tool is constrained by a compile-time feature or a runtime environment variable; - means visible in a default build (still subject to profile and policy filtering). Capability domains follow the 10 domains of Chapter 6.

Registered nameOne-line dutyDomainGate
read_fileRead file contentsFilesystem-
write_fileCreate or overwrite a fileFilesystem-
edit_fileExact string-replacement editingFilesystem-
diff_editApply unified-diff patchesFilesystem-
apply_patchCodex-style multi-file patch (#1773), P0 memberFilesystem-
list_dirList directory contentsFilesystem-
globFind file paths by patternFilesystem-
grepSearch file contents by regexFilesystem-
workspace_logRead-only view of workspace git historyFilesystem-
workspace_showRead a file's historical version at a commitFilesystem-
workspace_diffView the diff between two commitsFilesystem-
shellExecute shell commands under policy and sandbox constraintsShell & execution-
exec_commandLong-running execution with sessionized stdin and incremental output recovery, P0 memberShell & execution-
write_stdinWrite stdin to a running exec session and recover output, P0 memberShell & execution-
bashCodex naming-aligned one-shot shell alias (#1172)Shell & execution-
checkProject static check (#1772, lite scope)Shell & execution-
web_searchMulti-provider web searchWeb & research-
web_fetchFetch a URL and extract textWeb & research-
browserchromiumoxide-based headless browser automationWeb & research-
searchDeep search: web search plus parallel crawling, persisted to diskWeb & research-
synthesize_researchRead search artifact files and produce a synthesisWeb & research-
deep_crawlCDP-based recursive site crawlingWeb & research-
memory_noteAppend an observation worth rememberingMemory-
record_memory_useReport which memory entries actually informed the answerMemory-
recallRetrieve tool outputs displaced by context compaction (#2131)Memory-
recall_memoryLoad a full entity page from the memory bankMemory-
save_memoryWrite or update a memory-bank entity pageMemory-
messageSend messages across channelsMessaging & interaction-
send_fileDeliver files to a chat channelMessaging & interaction-
send_app_cardDeliver structured mini-app card payloadsMessaging & interaction-
ask_user_questionStructured mid-turn user question (UPCR-2026-023)Messaging & interaction-
spawnSpawn a subagent, sync-wait or run in backgroundPeer & background tasks-
delegate_taskSynchronous delegation tool (delegate is the coding-side alias)Peer & background tasks-
peer_handoffLLM-initiated peer staging (#1801 v3)Peer & background tasks-
peer_send_inputMaster injects cross-session input to a peer (#436)Peer & background tasks-
peer_gatherRead the peer blackboard (#1801 v3 fan-in)Peer & background tasks-
peer_listCompact status index of the caller's peersPeer & background tasks-
peer_respondAnswer a BLOCKED peer (human in the loop)Peer & background tasks-
peer_closeRetire a peer you createdPeer & background tasks-
check_background_tasksSession-scoped background task checkPeer & background tasks-
read_task_outputSelectively inspect background task outputPeer & background tasks-
code_structuretree-sitter-based code structure analysisCode & structurefeature = "ast" (compile time)
spawn_agentLaunch a supervised Codex-compatible subagent, P0 memberCode & structure-
delegateOne-stop wrapper of spawn_agent plus wait_agent (#1172)Code & structure-
view_imageImage metadata inspection within the workspace (#972)Code & structure-
tool_searchDynamically discover tools from the live catalog (#1148)Code & structure-
tool_suggestRecommend tools by task description (#1148)Code & structure-
image_generationImage generation entry, currently returns typed coding_tool_unsupported (#1149)Code & structure-
update_planUpdate the visible task plan, P0 memberCode & structure-
request_user_inputRequest structured input from the host UI, P0 memberCode & structure-
send_inputSend input to a subagent, P0 member (not real-time conversation delivery)Code & structure-
resume_agentResume a subagent handle, P0 memberCode & structure-
wait_agentInspect or wait on subagents, P0 memberCode & structure-
close_agentClose a subagent handle, P0 memberCode & structure-
gitPure-Rust (gix) native git integrationGitfeature = "git" (compile time)
manage_skillsSkill management on the regular gatewaySkills & platform-
mofa_makeContent-generation dispatcher (RFC-1, #1290), registered spawn_onlySkills & platform-
check_workspace_contractRead-only inspection of workspace contract stateSkills & platform-
configure_toolPersistent per-tool configuration accessSkills & platform-
model_checkModel and provider inventory (registered by the chat gateway)Skills & platform-
admin_platform_skillsServer-level ASR/TTS engine management (ominix-api)admin-
admin_list_profilesList profilesadmin-
admin_profile_statusQuery profile statusadmin-
admin_start_profileStart a profileadmin-
admin_stop_profileStop a profileadmin-
admin_restart_profileRestart a profileadmin-
admin_enable_profileEnable a profileadmin-
admin_update_profileUpdate a profileadmin-
admin_manage_skillsInstall or remove GitHub skills per profileadmin-
admin_list_sub_accountsList sub-accountsadmin-
admin_create_sub_accountCreate a sub-accountadmin-
admin_view_logsView server logsadmin-
admin_system_healthSystem health checkadmin-
admin_provider_metricsProvider metricsadmin-
admin_manage_watchdogWatchdog managementadmin-
admin_system_metricsSystem metricsadmin-
admin_view_sessionsView sessionsadmin-
admin_cron_statusScheduled-job statusadmin-
admin_check_configConfiguration checkadmin-
admin_update_octosCheck and apply octos updates via the serve APIadmin-

Count reconciliation: Filesystem 11 + Shell & execution 5 + Web & research 6 + Memory 5 + Messaging & interaction 4 + Peer & background tasks 10 + Code & structure 13 + Git 1 + Skills & platform 5 = 60 core, plus 20 admin, 80 total.

B.2 A guided tour of the ten capability domains

B.2.1 Filesystem (fs)

The filesystem domain is the foundation of every writing and repository-reconnaissance capability: from the byte-level read_file/write_file, through exact-replacement edit_file and the patch-style diff_edit/apply_patch, to the directory-and-content trio (list_dir/glob/grep) and the read-only workspace-history trio. The policy group group:fs covers the 5 write-side tools among them (read_file, write_file, apply_patch, edit_file, diff_edit, crates/octos-agent/src/tools/policy.rs:191-196).

B.2.2 Shell & execution (runtime)

The four registered names in the execution domain share one command policy and sandbox, so when any one path is denied, the rest die with it; group:runtime therefore always contains shell, exec_command, write_stdin, bash (crates/octos-agent/src/tools/policy.rs:206), and check is the parallel static-checking entry, sharing the shell session sandbox.

B.2.3 Web & research (web/search/research)

This domain maps to three policy groups: the search-fetch-browser trio of group:web (crates/octos-agent/src/tools/policy.rs:211), the local-retrieval trio of group:search (crates/octos-agent/src/tools/policy.rs:216), and the multi-round deep-research trio search, synthesize_research, deep_crawl of group:research (crates/octos-agent/src/tools/policy.rs:251).

B.2.4 Memory (memory)

The four tools of group:memory (recall_memory, save_memory, memory_note, record_memory_use) form the read-write loop of cross-session memory (crates/octos-agent/src/tools/policy.rs:239-246); recall is the same domain's tool pointing the other way: it re-materializes in-session tool output that compaction threw away.

B.2.5 Messaging & interaction

The messaging domain boils the agent's outward-facing surface down to four openings: cross-channel text (message), file delivery (send_file), structured cards (send_app_card), and structured questioning (ask_user_question); the last is the synchronous, route-answers superset of request_user_input (UPCR-2026-023).

B.2.6 Peer & background tasks (sessions)

group:sessions collects every subagent entry: spawn, spawn_agent, send_input, resume_agent, wait_agent, close_agent, delegate (crates/octos-agent/src/tools/policy.rs:228-236); add the five peer-lifecycle tools and the two background-task checks, and this domain is the complete index of multi-agent collaboration.

B.2.7 Code & structure (coding)

This domain is the bulk of the Codex-compatible tool surface: crates/octos-agent/src/tools/coding_tools.rs carries 15 registered names in a single file, 9 of which enter the P0 contract, the other 6 being extension entries from #972/#1148/#1149; add the feature-gated code_structure and the domain totals 13 registered names; all 15 are registered in with_builtins_and_permissions at crates/octos-agent/src/tools/registry.rs:1254 (registration body from 1283).

B.2.8 Git

git is the only VCS registered name, using the pure-Rust gix implementation instead of shelling out, gated at compile time by feature = "git" (crates/octos-agent/src/tools/mod.rs:861), and rebound with the CWD binding list at crates/octos-agent/src/tools/registry.rs:1466-1469.

B.2.9 Skills & platform

The skills-and-platform domain mixes two registration classes: the regular gateway's manage_skills, configure_tool, and the chat-gateway-registered model_check (the three forming group:admin, crates/octos-agent/src/tools/policy.rs:253-257), plus the spawn_only-registered content-generation dispatcher mofa_make and the workspace-contract inspection check_workspace_contract.

B.2.10 The admin subdirectory

All 20 admin-domain registered names come from the 7 files of crates/octos-agent/src/tools/admin/, facing the operations surface of the Serve/Admin API: seven profile-lifecycle tools, eight system-observability tools, two sub-account tools, and three skills-and-platform update tools; ordinary profiles do not see them by default.

B.3 The P0 required ten and their coding shims

The P0 required set declared by the Codex-compatible contract is defined in CODING_P0_REQUIRED_TOOL_NAMES at crates/octos-cli/src/api/coding_tool_contract.rs:85, ten names in all: apply_patch, exec_command, write_stdin, update_plan, request_user_input, spawn_agent, send_input, resume_agent, wait_agent, close_agent. Nine of the ten come from crates/octos-agent/src/tools/coding_tools.rs; the sole exception, apply_patch, is a native file tool (crates/octos-agent/src/tools/apply_patch.rs), outside coding_tools.rs.

graph LR
    subgraph P0["P0 required 10(crates/octos-cli/src/api/coding_tool_contract.rs:85)"]
        AP["apply_patch<br/>crates/octos-agent/src/tools/apply_patch.rs"]
        C9["crates/octos-agent/src/tools/coding_tools.rs 内 9 名:exec_command、write_stdin、update_plan、request_user_input、spawn_agent、send_input、resume_agent、wait_agent、close_agent"]
    end
    OUT["P0 之外的 6 个 headline shim:bash、delegate、view_image、tool_search、tool_suggest、image_generation"]
    AP --> P0
    C9 --> P0
    OUT -.->|不属于 P0| P0

The row-by-row relation between the ten headline shims (nine under the briefing convention, plus representatives of the six macro-registered ones) and P0 is tabulated below; the first three are P0 members, and each of the remaining six has a stated reason for exclusion:

Registered nameRelation to P0Evidence (full path)
exec_commandP0 membercrates/octos-agent/src/tools/coding_tools.rs:382;crates/octos-cli/src/api/coding_tool_contract.rs:85
write_stdinP0 membercrates/octos-agent/src/tools/coding_tools.rs:739
spawn_agentP0 membercrates/octos-agent/src/tools/coding_tools.rs:1284
bashOutside P0, #1172 naming-aligned alias, shares policy and sandbox with shell/exec_command; deny one of the three and all three are deniedcrates/octos-agent/src/tools/coding_tools.rs:1946;crates/octos-agent/src/tools/registry.rs:1281-1290
delegateOutside P0, #1172 one-stop wrapper (DelegateAliasTool, bound to spawn_agent, group:sessions member)crates/octos-agent/src/tools/coding_tools.rs:2429;crates/octos-agent/src/tools/registry.rs:548,566,1284
view_imageOutside P0, #972/M14-B P1 image inspection, read-only and constrained by filesystem_scopecrates/octos-agent/src/tools/coding_tools.rs:2801;crates/octos-agent/src/tools/registry.rs:1461-1464
tool_searchOutside P0, #1148 dynamic-discovery entry, reads the live catalogcrates/octos-agent/src/tools/coding_tools.rs:3150
tool_suggestOutside P0, #1148 recommend-by-task entrycrates/octos-agent/src/tools/coding_tools.rs:3251
image_generationOutside P0, #1149/M14-B P2; currently returns typed coding_tool_unsupported (wire contract complete, no generation backend bound yet)crates/octos-agent/src/tools/coding_tools.rs:3391;crates/octos-agent/src/tools/registry.rs:1368-1370 comment verbatim

Two contract semantics deserve separate note. First, although send_input is listed in P0, it is not real-time conversation delivery today: it registers through the simple_codex_tool! macro (crates/octos-agent/src/tools/coding_tools.rs:1839-1842) and writes to a supervised task's input channel, not an interactive session. Second, image_generation's typed unsupported is a deliberate contract posture: the caller receives a structured "not supported in this environment" envelope rather than a tool-not-found error, so a frontend can degrade its UI without breaking the protocol.

Engineering decision: why aliases must join groups (#1172) The deny-wins policy matches by "registered name or group name." If aliases like bash and delegate stayed out of group:runtime/group:sessions, a profile that disabled execution or subagents could still loop back to the original capability through the alias. The fix writes the aliases into the group definitions (verbatim comment at crates/octos-agent/src/tools/policy.rs:201-205) and makes the fact that delegate holds an Arc handle to the bound spawn_agent part of the group comment as well: the policy layer covers "every entry point," not "every implementation file."

B.4 The fleet worker's two subtables

The tool surface of a fleet worker (Chapter 16) is bounded by the constant tables in crates/octos-fleet/src/grant.rs; what the master can grant is capped by the allowlist:

SubtableMembersEvidence (full path)
BASE_TOOLS (default 7)read_file, write_file, edit_file, glob, grep, list_dir, shellcrates/octos-fleet/src/grant.rs:27
GRANTABLE_TOOLS (grantable 9)the above 7 plus web_fetch, web_searchcrates/octos-fleet/src/grant.rs:41
WEB_TOOLS (network 2)web_fetch, web_search (grantable only under a network grant)crates/octos-fleet/src/grant.rs:56

Verification command: sed -n '27,60p' crates/octos-fleet/src/grant.rs.

The lean coding profile's tool surface is decided by the allow_list of crates/octos-agent/src/assets/profiles/coding.json, 12 entries in all (4 single names plus three groups plus 5 single names), which expand against TOOL_GROUPS to 20 registered names:

allow_list entryExpanded registered names
read_file, write_file, edit_file, diff_editthe same 4 names
group:runtimeshell, exec_command, write_stdin, bash
group:searchglob, grep, list_dir
group:memoryrecall_memory, save_memory, memory_note, record_memory_use
spawn, ask_user_question, check, update_plan, tool_searchthe same 5 names

The design intent is written verbatim in the json description: add the three previously missing loop tools check, update_plan, tool_search, and drop only apply_patch (edit_file/diff_edit cover its duty); when the excluded tools are needed again, restore with --profile coding-full rather than discovering at runtime. run_pipeline is registered spawn_only and is not in the allow_list (crates/octos-agent/src/profile/mod.rs:874). One convention discrepancy needs stating: the facts-table label says "19 names after expansion," but group-by-group expansion measures 20 (the table above totals 4+4+3+4+5); this table follows the group-by-group expansion.

B.5 Feature gates: 2 compile-time + 2 runtime

Only 4 of the 80 registered names are gated, two in each class:

Gate typeRegistered nameSwitchEvidence (full path)
Compile-time featuregitfeature = "git"crates/octos-agent/src/tools/mod.rs:861
Compile-time featurecode_structurefeature = "ast"crates/octos-agent/src/tools/mod.rs:864
Runtime environment variableread_window (internal, not a registered name)OCTOS_READ_WINDOW=1, default offcrates/octos-agent/src/tools/read_window.rs:177-179
Runtime environment variableread_paging_probe (internal, not a registered name)OCTOS_READ_PAGING_PROBE=1, not armed, not recordedcrates/octos-agent/src/tools/read_paging_probe.rs:131

Both runtime gates act on "internal components" rather than standalone registered names, consistent with Chapter 6's conclusion: tightening the read path starts with probes collecting data, then decides whether to become default behavior. The compile-time gates appear in the CWD binding list at crates/octos-agent/src/tools/registry.rs:1466-1469 behind #[cfg]; without the feature enabled, even the rebinding list omits these two names.

B.6 Further reading and exercises

Further reading: Chapter 6 (the capability-domain division of the 58 entries and the registration layers), Chapter 7 (group policy evaluation, the sandbox, and write_grant), Chapter 16 (fleet's WorkerGrant and its relation to this appendix's two subtables).

Exercises:

  1. group:delegated is a deny table, not an allow table (crates/octos-agent/src/tools/policy.rs:307-331), yet it explicitly does not restrict command execution. Why is "recursive delegation breaks, command execution doesn't" a coherent boundary choice?
  2. coding.json's allow_list has only 12 entries but expands to 20 names. When you want to add or remove a tool from the lean profile, which downstream effects differ between editing an allow_list entry and editing a TOOL_GROUPS member?
  3. image_generation chose to return typed unsupported instead of being removed from the registry. If it were removed, what would frontend contract validation and user messaging each lose?

Version note: This appendix's baseline is octos main @ 9c157101 (measured 2026-09-03). Data source: assets/appendixB-facts.md (commit ad387d1, same batch); all line numbers were re-verified by hand this session. Against the old draft: the retired convention listed "core built-in tools" by fixed count; the current registered-name total is 80 (60 core + 20 admin) across 10 capability domains, and the shim attribution of the P0 contract's ten, the fleet's two subtables, and the 4 feature gates were all newly collected this round; bash/delegate joining groups (#1172) and image_generation's typed unsupported (#1149) are behavior changes that postdate the old draft.