Skip to content
cccskills
FreePublished on GitHub

host-file-editing

Read, create, and edit text files on the computer running the connected A0 CLI. The skill guides focused replacements and context-based patches, checking current file contents and handling read-only access or outdated edits.

OriginalShow the original description

Guide safe use of text_editor_remote for reading, writing, and patching files on the connected A0 CLI host. Use when the user asks to inspect or edit files on their computer, local files, CLI host files, or files that are explicitly not Docker/server files.

Works withDocker
See how to install

Good for

  • Read a text file on the connected local computer
  • Replace a specific passage in an existing file
  • Apply edits after file line numbers have shifted
  • Create a new text file on the CLI host

Files included (1)

  • SKILL.md2.8 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Host File Editing

Boundary

Use text_editor_remote only for file work on the machine where A0 CLI is running. These paths and files belong to the CLI host, not the Agent Zero server or Docker container.

If the task belongs inside Agent Zero's own runtime, use the normal server-side file tools instead.

Access Modes

  • Read&Write: reads, writes, and patches may modify the CLI host. Keep changes narrow and intentional.
  • Read only: inspect files only. If writes are blocked, tell the user to switch local file access to Read&Write with F3.

Editing Flow

  • Start with read when inspecting a file or preparing line-based edits.
  • Use write only when replacing or creating the whole file is truly the right operation.
  • Prefer patch with old_text and new_text for simple exact replacements.
  • Use patch_text for context-anchored edits, especially after inserts/deletes or when line numbers may have shifted.
  • Use patch with edits only for small line-range edits based on the latest remote read.
  • If freshness-aware line patching rejects an edit as stale, reread the file and retry with updated ranges.
  • Treat reads as bounded text previews (2,000 lines / 256 KiB). Follow next_line for another small slice; use the authenticated HTTP transfer path for complete large files and binary data.
  • Keep each write or patch payload within 256 KiB. Do not split a binary file into text-editor calls.

Patch Text Rules

  • Exact replace requires old_text to match one exact current span; use a longer span if it matches multiple places.
  • patch_text supports update hunks for one file.
  • Use one @@ existing line anchor, then +new line entries for insertion.
  • For replacement, use @@ before target followed by -old and +new, or use @@ old target followed by the same replacement pair.
  • Do not repeat the same old line as both context and deletion in one hunk.
  • Every non-header content line must begin with exactly one prefix: space for context, + for additions, or - for removals.
  • Do not stack multiple @@ anchors for one insert.

Failure Handling

  • If no CLI is connected, ask the user to connect A0 CLI to this Agent Zero instance.
  • If writes are blocked, tell the user to switch local file access to Read&Write with F3.
  • If a request times out or the CLI disconnects, summarize the failure and wait for reconnection.
  • If the tool rejects binary or oversized content, use the CLI/Core HTTP upload/download path when the workflow exposes it; otherwise ask the user to attach or upload the file through A0 CLI.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

a0-create-agent

FreeSummary

Create specialized Agent Zero profiles by defining their roles, working methods, and delegation criteria. The skill prepares configuration files and instructions, with optional custom tools, extensions, and model preset selection when needed.

  • Create a specialist agent for data analysis
  • Define when to delegate work to an agent
  • Customize an agent's workflow and response format
agent0ai/agent-zero19.5KUpdated Oct 15, 2026

a0-create-plugin

FreeSummary

Build, improve, review, or troubleshoot Agent Zero plugins for local use or community distribution. Follow plugin structure and installation rules, verify behavior in the target runtime, and prepare repository and Plugin Index contributions when requested.

  • Building an Agent Zero plugin for local use
  • Reviewing an existing plugin's structure and behavior
  • Investigating plugins that fail to load or run
agent0ai/agent-zero19.5KUpdated Oct 15, 2026

a0-development

FreeSummary

Operate Agent Zero projects, chats, and tasks, or develop new tools, extensions, and API features. The skill guides work through existing APIs, relevant documentation, current source code, and checks appropriate to the change.

  • Manage Agent Zero projects and chats
  • Develop custom tools and extensions
  • Add API endpoints or WebUI features
agent0ai/agent-zero19.5KUpdated Oct 15, 2026

a0-manage-plugin

FreeSummary

Find Agent Zero plugins that match a task, compare candidates and their requirements, and manage installation, updates, settings, activation, and removal. It also supports security scans and checks the resulting plugin state through framework management APIs.

  • Find and compare plugins for a specific task
  • Review service, credential, and cost requirements before installation
  • Scan, install, or update a plugin
agent0ai/agent-zero19.5KUpdated Oct 15, 2026

Automate web page tasks such as clicking, filling forms, uploading and downloading files, and taking screenshots. Work across tabs using a browser on the connected host machine or inside a Docker container.

  • Filling web forms and selecting options
  • Uploading or downloading files through websites
  • Capturing screenshots to inspect page appearance
agent0ai/agent-zero19.5KUpdated Oct 15, 2026

Create, edit, and install extensions for Agent Zero Browser, including extensions from Chrome Web Store. It guides permission reviews and checks for suspicious behavior, with new extensions built as readable files that users can inspect.

  • Create a browser extension for a specific website
  • Modify an existing extension
  • Install an extension from Chrome Web Store
agent0ai/agent-zero19.5KUpdated Oct 15, 2026

See all skills by agent0ai

Report a problem with this skill