promptgarten ๐ŸŒฑ

Command reference ยท Antigravity CLI

/open

Opens a path in the system default editor.

/open belongs to the Utilities category and forces a given path to open in the default editor configured on your system โ€” outside the CLI, in your familiar environment with syntax highlighting, search, and all the editor features the plain terminal view doesn't offer. While typing, the command has supported shell-like path autocompletion since version 1.0.6, just like /add-dir โ€” so you don't need to know the full filename by heart, but can complete it step by step. /open is the right choice when you want to keep editing a file manually or read through it at leisure, instead of only seeing it as a snippet in the terminal. If you just want to give the agent a file as context in the prompt without opening it separately, the @<path> reference in the prompt is the more direct route.

โœ… WHEN TO USE IT?

Open a file for manual editing outside the CLI

/open src/index.ts

Find a path via autocompletion

Type /open src/ and complete it step by step through the directory structure until you reach the file you want.

โ›” WHEN NOT TO?

Just inserting a file path into the prompt

/open launches the external editor, which isn't needed for a plain prompt reference.

Better: Use @<path> in the prompt

SOURCES

MORE COMMANDS ยท Antigravity CLI

/permissions/planning/rename/resume/rewind/skills/statusline/tasks/title/usageagyagy -p / --print

All commands ยท Antigravity CLI โ†’

Share:๐•in๐Ÿ’ฌ