Agent code tools
Agents can use the same language intelligence you use in the editor: go to a definition, find every reference, rename a symbol across files, organize imports and read the Problems list. That is faster and more exact than searching text, and renames don't miss a file.
The tools
| Tool | Does | Changes files |
|---|---|---|
go_to_definition | finds where a symbol is defined | no |
find_references | lists every place a symbol is used | no |
rename_symbol | renames a symbol in every file that uses it | yes, as edits you review |
organize_imports | sorts imports and removes unused ones in a file | yes, as edits you review |
diagnostics | reads errors and warnings for a file or the whole project | no |
The agent names a symbol and file, for example:
{ "path": "src/math.ts", "symbol": "add", "new_name": "sum" }
Results come back as file positions:
3 references in 2 files:
src/math.ts:1:17 export function add(a: number, b: number) {
src/cart.ts:4:30 const total = items.reduce((s, i) => add(s, i.price), 0);
src/cart.test.ts:9:12 expect(add(1, 2)).toBe(3);
In the chat
Each call shows as a card: Went to definition, Found references, Renamed symbol, Organized imports or Checked problems, with the symbol and file (add → sum · src/math.ts). Click a card to see the full result. The agent's checklist names the step the same way, for example Rename: add → sum · src/math.ts.
- The tools are available in Agent, Multi-agent and Debug modes.
- Reading tools run without asking.
- Renames and import changes arrive as normal edits for review, file by file (Agent chat & modes). Edits outside the project are refused.
Checking its own work
After editing a file, the agent can call diagnostics on it. Ingot opens the file in the background and waits for the language server's fresh report on the new text, so the agent sees the errors it just introduced, not the old ones.
Languages
The tools work for every language whose language server or extension is installed in Ingot. The first call for a language can take a little longer while the server loads the project. If no server answers, the agent is told to fall back to text search.