Skip to content

run: choose the tool set per run (--tools), instead of all nine on every call #246

Description

@byapparov

Problem

A headless run declares all nine default tools on every call: bash, read, glob, grep, edit, write, task, webfetch and skill. A workflow step that only reads and comments still pays for task, webfetch, skill, glob and grep on every model call.

Removing them globally is wrong: in production, task appears in about 58% of executions, grep in ~40%, glob in ~34% and webfetch in ~8% (#160). What is missing is a supported way for the caller to choose the tools for one run.

Today the only working way is a permission deny per tool in AICTRL_CONFIG_CONTENT. A tools: { name: false } map is ignored (#244), and there is no CLI flag.

Measurements (headless CLI benchmark, aictrl 0.5.4, o200k_base reference tokens)

Config First request Short task (3 reads, 4 calls)
Default, 9 tools 3,442 15,209
bash, read, edit, write + task 2,518 11,513
bash, read, edit, write 2,091 9,805
pi 1.3.0 default (same 4 tools), for reference 1,276 6,074

The five extra tools cost about 5,400 tokens per short task.

Proposal

  • A --tools <list> flag on aictrl run (for example --tools read,bash,edit,write) and the equivalent config key, honoured in the request: undeclared tools are not sent.
  • Prompt and tool descriptions mention only declared tools (Prompt and tool descriptions reference tools removed by permission deny #244).
  • Docs: recommended tool sets for common workflow steps (review, fix, explain), with the token figures above.

Acceptance

  • --tools and the config key declare exactly the listed tools; an unknown tool name is an error.
  • A test asserts the request's tool list for a given --tools value.
  • The short-task capture in the public benchmark shows the reduced tokens.

Related: #153, #160, #158, #244.

Activity

  1. added
    enhancement
    P1
    performance
    on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1enhancementperformance

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions