promptgarten ๐ŸŒฑ
๐ŸŒ ES

Command reference ยท Antigravity CLI

/add-dir

Adds an extra directory to the active workspace.

/add-dir belongs to the Utilities category of the central Antigravity CLI slash command reference. It extends the active workspace with another directory so the agent can access files outside the starting directory. It takes a path as an argument.

โœ… WHEN TO USE IT?

Bring in code from a second repo or folder

/add-dir ../shared-lib

Add a monorepo sub-project to the session

/add-dir packages/api

โ›” WHEN NOT TO?

You only need to reference a file once

/add-dir permanently attaches an entire directory to the workspace; for a one-off reference, a file path in the prompt is enough.

Better: Use @<path> directly in the prompt

SOURCES