Working with Files
CodeBot can read, inspect, create, edit, copy, rename, delete, and open files when the current solution or workspace allows it. You usually ask for the change you want, and CodeBot chooses the safest file tool for the job.
CodeBot asks for approval before guarded actions such as writing, deleting, copying outside expected locations, or touching files that are outside the known solution or workspace.
Ask CodeBot to Inspect Files
CodeBot can read a whole text file, inspect a focused line range, or attach a file such as an image or PDF for model inspection.
Typical prompts:
- "Explain what this file does."
- "Read lines 120 through 180 and tell me why this branch is wrong."
- "Inspect this PDF and summarize the action items."
- "Look at this screenshot and tell me what looks broken."
For large files, CodeBot should inspect focused line ranges first instead of loading the entire file.
Ask CodeBot to Edit Files
CodeBot can make targeted edits, replace a full generated file, or show you a proposed diff before writing.
Typical prompts:
- "Fix this typo everywhere in the file."
- "Add this small feature and show me the diff."
- "Rewrite this generated config file."
- "Make the narrowest edit needed to fix this compiler error."
For ordinary code changes, CodeBot should read the existing text first, then apply exact replacements. This keeps edits reviewable and avoids accidental rewrites.
Ask CodeBot to Create or Manage Files
CodeBot can create new project files, create plain local text files, rename or copy files, delete files, and open files in the IDE.
Typical prompts:
- "Add a new source file to this project."
- "Create a README in this folder."
- "Rename this file to match the class name."
- "Delete this generated file and remove it from the project."
- "Open the file at the failing line."
For project-based hosts, CodeBot uses project-aware creation when a new file should become part of the project. For Campfire folder workspaces, it uses workspace file creation instead.
Approval and Safety
Reading known project or workspace files is usually lightweight. Writing, renaming, copying, deleting, and opening external paths can require approval. When a change affects file contents, CodeBot can show a diff so you can review what will change.