Repository navigation
v4.1.0 — Caller-Aware Agent Runtime
Tooli v4.1.0 — Caller-Aware Agent Runtime
Highlights
TOOLI_CALLERconvention — Set one environment variable to identify your agent with 100% confidence. 21 well-known agent identifiers pre-registered (Claude Code, Cursor, Aider, Devin, LangChain, CrewAI, etc.).- 5-category heuristic detection — When
TOOLI_CALLERisn't set, tooli inspects environment variables, process trees, TTY status, and container markers to classify callers as human, AI agent, CI/CD, container, or unknown automation. detect-contextbuiltin command — Debug your agent integration:TOOLI_CALLER=my-agent mytool detect-context --json- Caller metadata in envelope —
caller_id,caller_version, andsession_idin every JSON response'smetasection. - Adaptive behavior — Agents with
--yesskip confirmations; convention-identified agents get structured YAML from--help. - Full observability — Caller attributes in OTel spans and invocation recordings (schema v2).
Stats
- 100 new tests (359 total)
- 21 files changed, 2,757 insertions
- Backward compatible — no breaking changes
Install
pip install tooli==4.1.0See CHANGELOG.md for full details and docs/AGENT_INTEGRATION.md for the integration guide.