Skip to content

API Reference parrot_tools.tool_optimizations

github-actions[bot] edited this page Dec 2, 2026 · 3 revisions

parrot_tools.tool_optimizations

View source

Claude Code / Codex tool optimizations (FEAT-543).

Three focused AbstractToolkit subclasses, exposed as ordinary AI-Parrot tools and installable as local stdio MCP capabilities:

  • LocalGitToolkit — deterministic Git workflows, no LLM calls.
  • BoundedSourceToolkit — bounded reads with hashes and continuation.
  • TargetedWriterToolkit — patch generation for already-decided TASK work.

Importing this package is deliberately cheap: names are resolved lazily via :pep:562 __getattr__ so that import parrot_tools.tool_optimizations pulls in neither pydantic nor any toolkit machinery. The host read-guard runtime depends on that — it must stay stdlib-light on import.

Exports

This package resolves its public names from its submodules, so they are documented on the pages listed below rather than here.

  • BudgetError
  • DelegationPacket
  • LockTimeoutError
  • MIN_RESULT_BYTES
  • OperationError
  • OperationResult
  • OptimizationPolicy
  • OptimizationToolkitBase
  • PatchManifest
  • PolicyError
  • ReferenceSlice
  • SourceInfo
  • SourceResult
  • StepResult
  • SymlinkRejectedError
  • TargetFile
  • WorktreeLock
  • WriterLimits
  • check_no_symlink_components
  • compact_json
  • fit_to_budget
  • measure_json_bytes
  • relative_posix
  • resolve_operand

Submodules

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally