# Editor

> Editor is the embedded code editor in AgentForge. Editor contains a file tree, a Monaco-based text editor and a diff view that compares the working copy with HEAD. Files changed by agents can be read and corrected without leaving the application, and a selection or a file can be sent straight to an open agent.

- Canonical: https://www.zekfy.com/agentforge/features/editor/
- Türkçe: https://www.zekfy.com/tr/agentforge/ozellikler/editor/
- Last updated: 2026-12-04
- Module: Read and fix what agents changed
- Shortcut: `Ctrl+E`

File tree, Monaco editor and diff against HEAD

## File tree and quick open

The project's file tree sits on the left side of Editor; the tree filters by name and all folders collapse with one button. Ctrl+P opens a file by name, and a line number can be added after the name. Ctrl+Shift+F searches across the project.

The quick open and search index skips dependency and cache folders and the folder rules in .gitignore; the tree still shows those folders. In projects whose index would exceed 20,000 files, quick open and search cover only a first set of files, and Editor says so. Binary files are not shown in the text editor and files above 8 MB are not opened.

## The Monaco editor

Editor uses the Monaco editor for text editing. Files open in tabs; Ctrl+S saves, Ctrl+Shift+S saves all open files, Ctrl+G goes to a line and Ctrl+Shift+P opens the command palette. Ctrl+Shift+M toggles the Problems panel. The editor's menus appear in Turkish or English according to the interface language.

## Diff against HEAD

Editor compares the working copy of the open file with its version at git HEAD. The diff is shown inline or side by side. This view makes it possible to see exactly what an agent changed in a file before it is committed.

## Sending a selection or a file to an agent

In Editor an agent can be asked to explain a selected piece of code or to answer a question about the selection, and a whole file can be sent to an agent. The target is chosen from the agent panes open in the project, and each agent's idle, working or awaiting-approval status is shown in the list. If no agent is open in the project, Editor asks for one to be opened from [Grid](https://www.zekfy.com/agentforge/features/grid/) first.

## At a glance

- **Name in the app menu:** Code editor
- **Editor component:** Monaco
- **Diff:** against HEAD, inline or side by side
- **File size limit:** 8 MB
- **Shortcuts inside Editor:** Ctrl+P open file, Ctrl+Shift+F search in project, Ctrl+Shift+P command palette

## Questions about Editor

### Is a separate code editor needed when using AgentForge?

No, AgentForge includes its own code editor: a file tree, a Monaco-based editor, project search and a diff against HEAD. Because the project is an ordinary folder, any other editor can be used alongside it on the same files.

### How do I see what an agent changed?

In the Editor view the file's diff against HEAD opens and the change is shown inline or side by side. If the [builder](https://www.zekfy.com/glossary/#builder) worked on a separate branch, the whole branch diff is reviewed in the branch panel of the [Metrics](https://www.zekfy.com/agentforge/features/metrics/) view, where comments can be written on lines.

See also: [Metrics](https://www.zekfy.com/agentforge/features/metrics/)

### Can I ask an agent about code I selected in the editor?

Yes, in the AgentForge Editor an agent can be asked to explain selected code or answer a question about the selection, and the whole file can be sent as well. The request goes to one of the agent panes open in the project.

## Related feature pages

- [Browser](https://www.zekfy.com/agentforge/features/browser/): A preview the agents test in
- [Metrics](https://www.zekfy.com/agentforge/features/metrics/): What each agent costs and produces
- [Grid](https://www.zekfy.com/agentforge/features/grid/): Up to 16 agent terminals side by side
- [Memory](https://www.zekfy.com/agentforge/features/memory/): Notes you and the agents share

- Previous feature: [Memory](https://www.zekfy.com/agentforge/features/memory/)
- Next feature: [Browser](https://www.zekfy.com/agentforge/features/browser/)
- [All features](https://www.zekfy.com/agentforge/features/)
