Helpers
A helper is a tool the Code tab's agent runs with no model behind it (the 3D delegate is the one exception). It does one job the agent can't do well by itself, such as looking at a 3D model it made, and hands back what it found.
Turn a helper on
Settings → Code → Helpers has a switch for each helper, all off but Web preview. A session follows these switches until you change its own: Extras: N in the session's header lists the helpers with a checkbox each, and Use defaults goes back to the switches. A change applies from the next message. Hover a helper for what it does.
Helpers work in the Code tab only. The 3D helper needs a session that can write; Search and Web preview also work read-only.
The Search helper
Turn on Search and the agent gets a search_code tool. With a reranker set, it's also told to use it first whenever it doesn't know the exact name to grep for; without one, it's told to grep first, as when Search is off. It asks a question in plain words ("where does the message box grow as I type?") and gets back the six best snippets of code, each with its path and line numbers, best first. Snippets next to each other in one file are joined, so there can be fewer. The agent then reads around the best one.
It searches the text files in the session's folder, fresh on every call. Files your .gitignore skips, binaries, lockfiles and files over 1 MB are left out; tests and generated files are kept but ranked lower. The agent can narrow a search to one subfolder.
Use it with a reranker
Search is worth turning on only with a reranker. On its own it ranks code by the words it shares with the question, and those snippets are often not the right ones: the agent then searches and greps both, and uses more of its context than with grep alone. With a reranker it usually finds the code in fewer steps. In our tests the difference was small either way, so leave Search off if you have no reranker to point it at.
Set the reranker on the Search row (Settings → Code → Helpers → Search): the server's address, an API key if it needs one, and a model (Fetch lists the server's rerank models). Any server with /v1/rerank works, such as llama-toolchest or llama-server started with --reranking. It adds a couple of seconds a search. If the reranker is down or takes over 15 seconds, the helper uses keyword ranking and tells the agent why.
The 3D helper
Ask for a 3D asset as usual ("make a low-poly mana potion for my Godot game"). The agent writes a short Three.js file that builds the model and calls the helper's check_3d tool on it. The helper builds it hidden in the app, saves it as a .glb beside the file, and gives the agent:
- a render sheet: front, right, back, left, top and three-quarter views over a floor grid, with the height marked;
- size: width, height and depth in metres, and where the feet sit;
- parts: each named part, with parts that float free or hide inside others;
- problems: faces that vanish from behind or point inward, missing normals, big textures;
- materials;
- clips: for each animation clip, whether it goes through or off the floor, parts pass into others or come away, feet slide, knees or elbows bend the wrong way, how far its key pose reaches, and how far it ends from where it started.
The agent can also ask to see one clip moving: eight frames from the side and the front, then all of them overlaid with trails of the parts that move most.
The agent can keep a model's clips in a file of their own, beside the file that builds it. That file's animate(THREE, object, kit) gets the built model and returns its clips, and the helper checks the two files together (anim), so changing a clip never touches the model.
A model can use a PNG from the project as a texture: the file calls kit.texture('textures/bark.png') with the path written out in full, relative to the file, and the PNG ends up inside the .glb.
If the file has an error, the agent gets it with its line number and fixes it. It usually checks a few times before it's done.
The agent can also check a .glb made another way, for example with a Blender script. That writes nothing, unless it asks for a resized copy.
For every argument, check and output, see the 3d-helper page.
Three.js comes with the app, so the 3D helper needs no network. The agent sees the render sheet only if its model can read images; the text report comes either way.
Hand 3D work to another model
Set Delegate to on the 3D row (Settings → Code → Helpers → 3D) and the agent also gets delegate_3d: it hands one asset to that model, which builds and checks it and reports back. See the 3d-delegate page.
The Web preview helper
Its show_preview tool opens an HTML page from the session's folder in a preview window that reloads as the page's files change. See the web-preview page.
What it doesn't do
- No model, bar the 3D delegate: a helper can't make anything on its own.
- It doesn't check a Three.js app with its own renderer.
- Search matches words, not meaning or code structure: it knows nothing of calls, types or imports, and a question worded unlike the code can miss.
- It can't tell whether a motion looks good, only what's physically wrong. You can play the clips in the file's 3D view (Animation).
- It finds knees and elbows by name only (knee, shin, elbow, forearm and so on), and measures each to the pivot or mesh under it.
- It doesn't fix problems, rig or skin a character, unwrap UVs or make lower-detail copies.
- Not in Chat, the Shell or subtasks, bar the 3D delegate's own
check_3d. The 3D models job uses the 3D helper's checks itself; see the3d-modelspage.