letta-code — tool call: backend proposes, client gates and executes

letta-code — tool call: backend proposes, client gates and executes A workflow diagram generated by Archify. 01 / Backend / model EX / Permission gate 03 / Tool manager 04 / Execution runtime Propose + classify Execute Return Model step · approval_request · Backend / model › Propose + classify Model step approval_request Next run · {type: approval} · Backend / model › Return Next run {type: approval} Classify · checker rules · Permission gate › Propose + classify Classify checker rules Denied · approve: false · Permission gate › Execute Denied approve: false Pre hooks · block / rewrite · Tool manager › Execute Pre hooks block / rewrite Tool impl · batched by resource · Tool manager › Execute Tool impl batched by resource Scrub + clamp · secrets · 32k · Tool manager › Execute Scrub + clamp secrets · 32k OS sandbox · bwrap/Seatbelt · Execution runtime › Execute OS sandbox bwrap/Seatbelt Files + shell · bash -c, cwd · Execution runtime › Execute Files + shell bash -c, cwd Overflow file · full output · Execution runtime › Execute Overflow file full output allow args tool calls approve:false + reason deny / ask file op / exec result tool_return full text LETTA_FS_SANDBOX Legend Agent logic Policy Context / trace Cloud service External system