Skip to content

File Operations

Agent Nine can read, write, edit, and search files in your project.

Reading Files

text
Read app.ts

Supports:

  • Text files — displayed with line numbers
  • PDF — analyzed directly
  • Jupyter notebooks — renders cells with outputs
  • Images — PNG, JPG, GIF, WebP, SVG displayed visually

Large files are handled automatically.

Editing Files

text
In auth.ts, change the login timeout from 30 to 60 seconds

Agent Nine finds the exact location in the file and replaces the text. If there are multiple matches, it shows each location with line numbers so you can clarify.

Writing Files

text
Create a new file utils/validate.ts with an email validation function

Agent Nine will warn you if the file contains credentials or API keys and won't write them.

Searching

Find files by pattern

text
Find all TypeScript files in my project

Search by content

text
Search for "TODO" in the codebase

List directory

text
List files in the current directory

Undo

Every file change can be undone:

text
/undo

This reverts all files modified in the current session to their original state.

Agent Nine — AI coding assistant