orchestrata_ultimate.tools
Reference › orchestrata_ultimate › tools
Tools package — the unified tool framework + registry.
The tools package is the unified tool framework (SPEC-062) and the set of first-class tools built on it. A tool is a governed capability a volk can invoke mid-conversation; each carries metadata that describes it to an LLM as a function schema and lets the system enumerate, search and dispatch it. The story and diagrams are in the tools package narrative.
Parts, by role:
- Framework: base holds the contract (
BaseTool,ToolMetadata,ToolResult), registry the thread-safe index and dispatcher, approval the governance gate, and search the SPEC-072 search over registered tools. - Execution and operations: repl_tool, worktree_tools, task_tools, schedule_cron_tool and remote_trigger_tool.
- Code and context intelligence: lsp_tool, context_tools, codebase_tools with its registry wrappers in codebase_query_tools.
- Integration: mcp_resource_tools over mcp_stdio_client, and conversation_tools.
- AST tooling: ast_query, its command line ast_query_cli and the serialize-and-compare ast_pipeline. The AST library itself is orchestrata_ast.
Flow: each tool module builds ToolMetadata and a BaseTool, a register_* function puts it into a ToolRegistry, and the agents layer calls execute by name. Tools return failed ToolResult values and do not raise. Start with base and registry.
Curated narrative
The hand-written story of this package: orchestrata_ultimate.tools.
20 modules, 13,457 lines of code.
Modules
| Module | Summary | LOC |
|---|---|---|
__init__ |
Tools package — the unified tool framework + registry. | 75 |
approval |
The governance-Prolog implementation of :class:ApprovalGate. |
95 |
ast_pipeline |
Automated AST serialization and deep-comparison pipeline. | 289 |
ast_query |
AST Query Engine — Programmatic access to serialized Python AST. | 615 |
ast_query_cli |
CLI for the AST Query Engine. | 464 |
base |
Unified tool framework — BaseTool + ToolMetadata. |
196 |
codebase_query_tools |
Registry-facing wrappers over CodebaseTools' Prolog codebase-intelligence query surface -- SPEC-062/072 unified tool… | 456 |
codebase_tools |
codebase_tools.py — LLM-facing tool layer over the Prolog codebase database. | 822 |
context_tools |
On-demand context tools for volks — get_code, get_tests, get_requirements, search_code. | 724 |
conversation_tools |
Conversation-capture volk tools — ConvStatusTool & ConvSyncTool (SPEC-021). | 175 |
lsp_tool |
LSPTool — code navigation for Python targets (SPEC-065). | 892 |
mcp_resource_tools |
ListMcpResourcesTool / ReadMcpResourceTool — SPEC-071 MCP resource tools (MVP). | 455 |
mcp_stdio_client |
McpStdioClient — a minimal JSON-RPC-over-stdio client for MCP servers. | 273 |
registry |
Unified tool registry — register, discover, describe, dispatch. | 199 |
remote_trigger_tool |
RemoteTriggerTool — outbound webhook/API trigger with auth + retry/backoff. | 1284 |
repl_tool |
REPLTool — interactive, sandboxed multi-language code execution (SPEC-063). | 1062 |
schedule_cron_tool |
ScheduleCronTool — cron-style job scheduling with timezone support. | 1445 |
search |
ToolSearchTool — semantic/keyword/fuzzy search across all registered tools. | 1608 |
task_tools |
Task management tools — TaskStopTool & TaskOutputTool (SPEC-069). | 1357 |
worktree_tools |
Git worktree lifecycle tools — EnterWorktreeTool + ExitWorktreeTool. |
971 |