The Sandbox
Most agents give the model a bunch of single-purpose tools; every call costs an extra round-trip and more context. imza gives it a single sandboxed Lua environment instead, where it can run many of those steps at once and only the result comes back. Every action still passes the permission gate, so you see each file touched and every command run.
Read the analysis1-- rename a symbol, then prove it still builds
2local hits = imza.fs.grep("src", "old_name")
3for _, h in ipairs(hits) do
4 local src = imza.fs.read(h.file)
5 imza.fs.write(h.file, src:gsub("old_name", "new_name"))
6end
7local out, code = imza.shell("cmake --build build -j")
8if code ~= 0 then return { step = "build", output = out } end
9local test, tcode = imza.shell("ctest --test-dir build")
10return { changed = #hits, tests = tcode == 0 and "pass" or "fail", output = test }
fs.grepaccept
fs.readaccept
fs.writeaccept
shellask
shellsession
40 void parse(Node* n) {
41−call(old_name, n);
42 return;
40 void parse(Node* n) {
41+call(new_name, n);
42 return;
What stays in the model's context after the same task