A repo can ship its own agent hooks, MCP servers and auto-run tasks. Open any repo you didn't write in VS Code's Restricted Mode first. Then read four places: .kiro/settings/mcp.json (programs that start as MCP servers), .kiro/hooks/ (shell commands that run on agent events), .kiro/steering/ plus any AGENTS.md (instructions your agent will follow) and .vscode/tasks.json (tasks that can run when the folder opens). Only trust the folder once they look clean.

This is a 5-minute check using Kiro for VS Code.

Why it matters

Kiro for VS Code reads the project's .kiro folder, so a repo's specs, steering, hooks and MCP servers come along when you clone it. Great for teams, risky for a random repo from a tutorial.

1. Open it untrusted

Clone into a separate folder (say ForEvaluation) and open it in VS Code. If the trust prompt appears, pick No, I don't trust the authors. Restricted Mode disables AI agents, the terminal, tasks, debugging, some workspace settings and many extensions, and Kiro won't start the workspace's MCP servers in an untrusted folder.

2. Read .kiro/settings/mcp.json

Every command is a program that runs on your machine when that server starts, and every url is a server your agent will talk to. "autoApprove": ["*"] means all of that server's tools run without asking.

3. Read every file in .kiro/hooks/

A hook with "type": "command" runs a shell command in your project root when its trigger fires, such as when the agent saves a file or uses a tool. Hooks activate on their own when a session starts. Know exactly what each one runs.

4. Skim .kiro/steering/ and any AGENTS.md

These are instructions Kiro follows, and AGENTS.md files are always included. Watch for lines telling the agent to read .env, fetch a URL or skip approvals.

5. Check .vscode/tasks.json for "runOn": "folderOpen"

That task runs when the folder opens. VS Code never runs it in an untrusted workspace and asks first by default, but you should know it's there.

6. Then trust it, or fix it first

Delete anything you don't want, then trust the folder from the banner or Workspaces: Manage Workspace Trust in the Command Palette.

Quick scan from your own terminal

Run this on Mac or Linux, outside the repo:

cd ~/ForEvaluation grep -rnE '"command"|"url"|autoApprove|"runOn"' some-repo/.kiro some-repo/.vscode 2>/dev/null find some-repo -name AGENTS.md -not -path "*/node_modules/*" 

Further reading: Workspace Trust · Kiro MCP config · Kiro hooks · Kiro steering

This was first published in The Weekly Stack, a free newsletter of AI tool tips for builders. Subscribe: https://weeklystackhq.beehiiv.com/subscribe