Elektrine lite

← Feed

@michabbb@social.vivaldi.net

2026-09-16 05:29 UTC

🧪 Four versions were built. V1 ran agent-written PHP through eval() inside the app process, Code Mode style, with no boundary at all. V2 evaluated sandboxes (containers, Firecracker, E2B, Daytona, WASM), but each meant new infrastructure for a package. V3 parsed code with nikic/PHP-Parser against an allowlisted PHP subset, which models kept violating with foreach, if and array appends. V4 switched to a JSON batch format the executor supports completely.

Replies (1)

  • @michabbb@social.vivaldi.net 2026-09-16 05:29

    🛠️ What shipped: two meta-tools, search_tools and execute_tools. Declare a catalog via ToolSearch::class in the server's $tools. Frequently used tools stay advertised, the rest become discoverable on demand. Search is deterministic lexical scoring over tool names, descriptions and input schemas, no embeddings. Each batched call runs as a real JsonRpcRequest through ToolInvoker, and conditional registration is re-checked at execution.

    Open ##5103181