file, git, agent
These commands read and write files on the Host machine, stage and commit Git changes, and list agents. Paths are resolved by the Host and belong to that machine. A caller with the Host token is authorized; production scripts keep paths inside a known workspace. A running Host and VIBEX_TOKEN are required.
npx vibex file tree
List the file tree under a directory.
npx vibex file tree --path /home/you/src/demo
npx vibex file tree --path /home/you/src/demo --depth 2--path is required and is an absolute path on the Host. --depth is how many levels to expand, default 3, and must be a number. Use it in scripts to confirm layout before npx vibex file read / npx vibex file write. A missing path returns a Host error.
npx vibex file read
Read a file’s text and print it.
npx vibex file read --path /home/you/src/demo/README.md--path is required. Large or binary files may be truncated or rejected; the error code is in the response. Default print is the text; with --json the whole contents are a JSON string.
npx vibex file write
Write contents to a file on the Host. Supply --text or --file; if both are present, --text is used.
npx vibex file write --path /home/you/src/demo/notes.md --text "hello"
npx vibex file write --path /home/you/src/demo/notes.md --file ./local.md--path is required. --file points at a local file on the machine running the CLI; contents are read as UTF-8 and sent to the Host. This writes disk directly, with no agent permission prompt. Missing both content sources raises Missing required --file.
npx vibex git status
Read Git status (changed files, branch, and related fields) for a workspace repository.
npx vibex git status --workspace WORKSPACE_ID --repo REPO_ID--workspace and --repo are required. --repo comes from the repository list in npx vibex project show --id PROJECT_ID. Exact fields are those in the JSON.
npx vibex git stage
Stage one path inside the workspace.
npx vibex git stage --workspace WORKSPACE_ID --repo REPO_ID --path relative/path.tsAll three flags are required. --path is relative to the workspace. One path per call; repeat the command for more files.
npx vibex git commit
Create a commit from staged changes.
npx vibex git commit --workspace WORKSPACE_ID --repo REPO_ID --message "describe this change"--workspace, --repo, and --message are required. An empty index returns a Host error. Push, pull requests, and rebase stay in the desktop Git panel, or an agent performs them after approval. This CLI stops at commit.
npx vibex agent list
List agents added to the Host, with install, auth, and enabled status.
npx vibex agent list
npx vibex agent list --jsonNo extra flags. The stable kind in the array (for example claude_code) is the value for --agent. Disabled or unauthenticated rows still appear; npx vibex conversation create against them is rejected. Enable and sign in under desktop Settings → Agents first.
This command needs a running Host and VIBEX_TOKEN. To list installable Agents and write Runtime and ACP on this machine, use npx vibex list and npx vibex install; HTTP can stay down. See Install Agents locally. Sign-in remains desktop Settings → Agents.

