- A host terminal connects to an inventory host over SSH, Telnet, or serial.
- A local shell command runs through a real shell selected for the workstation.
- An interactive local terminal stays open when a command needs persistent state, visibility, or input.
- Code tools inspect and change files inside a grounded repository with operations designed for source work.
show interfaces in a router terminal and git status in a local repository can appear in the same conversation but affect different systems.
Choose the execution path
This routing keeps repository reads precise and prevents a local shell command from being mistaken for a command on the active network device.
Local shell commands
For one-shot work, Copilot uses the local shell tool. The selected shell depends on the workstation:- On macOS, Studio uses an available
zshorbashpath with the appropriate shell syntax. - On Windows, Studio selects from PowerShell 7, Windows PowerShell, Git Bash, and
cmdaccording to availability.
- “Run the tests for this repository and summarize only the failures.”
- “Show the Git status and diff without changing anything.”
- “Start the development server in the background and tell me when it is ready.”
- “Stop the background job that is still listening on the test port.”
Interactive local terminal
Use the local Terminal surface when you need to watch output, answer a prompt, maintain shell state, or interact with a process directly. Open it from the Terminal launcher or ask Studio to show the local terminal. By default, Copilot can prepare a local terminal in the background and return command details in the conversation. Ask it to show the panel when you need to see or control the session. On Windows, the persistent Terminal can use Studio’s portable built-in shell. It supports common file, text, network, pipeline, redirection, history, and completion operations, but it is not a complete PowerShell or POSIX scripting environment. Use a real local shell command for a script, build tool, Git workflow, or platform-specific command.Ground a repository
When your prompt clearly refers to a local repository or codebase, Studio can activate the Code domain for that workspace. State the repository path or attach the relevant workspace context when more than one repository is plausible. The structured workflow is:- Map the repository at a useful level.
- Locate paths with file matching and symbols or text with code search.
- Read only the relevant ranges.
- Inspect the repository diff before and after a change.
- Use the local shell for tests, builds, formatters, and Git operations.
Code tabs and source files
Studio can open generated code or configuration in a Monaco editor tab. A code tab is useful for review, syntax highlighting, comparison, and iteration. It is not automatically the source file in a repository. Before asking Studio to edit code, make the destination explicit:- Repository edit — change the named file in the grounded workspace and verify the diff.
- Generated snippet — create or update a Studio code artifact without touching the filesystem.
- Remote file — edit the named path through the host’s SFTP connection.
Review local changes safely
Before approving a local write or command:- Confirm the workstation, repository root, and working directory.
- Inspect existing uncommitted and untracked work.
- Read the exact command or patch and its targets.
- Keep unrelated user changes intact.
- Run the narrowest relevant validation.
- Inspect the final diff and generated files.
- Do not commit, push, publish, install software, or delete work unless that action is part of the stated task.
Secrets and output
- Keep tokens and passwords in Key Chain or the platform’s approved secret path.
- Do not put a secret in a command argument when it will appear in the transcript, process list, shell history, or telemetry.
- Treat build logs and test output as possible model context once returned to the conversation.
- Stop background jobs and local servers when their task ends.
- Verify generated configuration against the target version and environment before deployment.
Troubleshooting
Related
Terminal
Connect to tracked devices and review staged remote commands and replays.
Files and artifacts
Distinguish generated artifacts, remote SFTP files, replays, and saved work.
Browser and Computer Use
Prefer structured and command-line paths before graphical control.
Security and privacy
Understand local execution, secrets, approvals, and recordings.