Skip to content

Say when to use the python tool and how it differs from a script - #1533

Merged
AnthonyRonning merged 1 commit into
masterfrom
agent/python-tool-purpose
Nov 10, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
agent/python-tool-purpose

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

The python tool's description now says what it is for before how it works.

What changed

  • Purpose first. The description, the one-line summary in the tool list and the guideline now lead with the point: a persistent workspace where data and results stay loaded between calls. Unlike running a script, the model can load data once, then inspect, transform and check it step by step.
  • Where the shell fits. The shell stays the place for the project's own scripts, tests and CLIs, and anything long-running or interactive.
  • Shorter. The description is 191 words instead of 211, with the same facts:
    • shell-level machine access, which the permission classifier reads;
    • call order;
    • _;
    • top-level await;
    • errors keeping partial effects;
    • bounded output;
    • state-loss notices;
    • reset;
    • the wheel recipe.
  • One addition: subinterpreters, like process pools, need functions from importable modules.

Validation

  • The agent::tools tests pass, 40 of them against the bundled CPython.
  • The pre-commit hook passes: just ci-lint and just ci-test.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Lead the description, the tool-list summary and the guideline with what
the workspace is for: data and results stay loaded between calls, so the
model loads data once and then inspects, transforms and checks it step by
step, while the project's own scripts, tests and CLIs stay in the shell.
The description is shorter, keeps every fact, and now says that
subinterpreters, like process pools, need importable functions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AnthonyRonning
AnthonyRonning merged commit c4ef380 into master Nov 10, 2026
23 checks passed
@AnthonyRonning
AnthonyRonning deleted the agent/python-tool-purpose branch November 10, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant