---
title: "yokoten"
description: "Your agent ran rm -rf. The project next door is still there. One command turns on your agent's sandbox, and it fails closed: npx yokoten."
canonical: https://yokoten.app/
lang: en
---

> For AI agents: the documentation index is at https://yokoten.app/llms.txt. To set up yokoten in a project, follow https://yokoten.app/agents.md.

# Your agent ran rm -rf. Next door is still there.

One command turns on your agent's sandbox, and it fails closed.

```sh
npx yokoten
```

- Works with: Claude Code, Codex, Copilot, Antigravity, Muse Code, OpenCode, Grok, DeepSeek
- Runs on: Linux, macOS, Windows (WSL), Native Windows (beta)

## What it stops

**A command that wipes your home folder.**

```text
$ rm -rf ~

yokoten stopped this: `rm` would wipe your home folder [wipe-home-or-system]

  Why       One command from an agent that lost its context can wipe the home
            folder or the system, and nothing brings the files back.

  Instead   Delete or change only files inside this project, and name each one.
            The guard refuses a wipe of home, of the system, or of a target it
            cannot read.

  More      https://github.com/yokoten-labs/yokoten/blob/main/docs/guide.md#the-safeguard
```

**A force push that throws away someone's work.**

```text
$ git push -f origin main

yokoten stopped this: git push -f can overwrite the remote [force-push]

  Why       A plain force push can throw away work that someone else pushed.

  Instead   Use --force-with-lease, which stops when the remote has work you
            have not seen.

  More      https://github.com/yokoten-labs/yokoten/blob/main/docs/guide.md#the-core-rules
```

**A release that only the owner should make.**

```text
$ git push origin v1.2.0

yokoten stopped this: git push origin v1.2.0 pushes a release tag [release]

  Why       Only the owner decides when to release.

  Instead   Stop and tell the owner: only the owner releases, with the steps in
            How to release; do not look for another way.

  More      https://github.com/yokoten-labs/yokoten/blob/main/docs/guide.md#how-to-release
```

## What `npx yokoten` does

```text
$ npx yokoten

yokoten 0.2.1 · set up; stage 1 of 5, safety net

  ok           guard on for Claude Code on this computer
  ok           38 files written in this project, none of yours changed
  ok           sandbox on for Claude Code, Codex, Grok CLI in this project

  MISSING      ~/.config/yokoten/private-marks is missing or has no marks
               Type your name, your city or a domain; it is not shown.
               Fix: `npx yokoten marks add`

  done         12 of 26 steps
  next         Run your tests on every push
  to do        Put the project on GitHub or Gitea
  to do        Name the owner (CODEOWNERS)
  to do        Set up the bot account
  to do        Add a license and a security policy
  can't check  9 steps: they read the code host; doctor checks them after a push

  note         16 uncommitted files, the oldest changed 1 minute ago

Next: `git add -A && git commit -m "chore: add yokoten"`
More: `npx yokoten doctor --all` shows every check and 5 notes
```

1. Turns the guard on, and the sandbox where your agent has one.
2. Adds the rules. Changes none of your files.
3. Shows the one next command.

## Four questions

### Is it for me?

Yes, if a coding agent runs commands on your machine. Set it up once; after that there is nothing to run day to day. If your agent already runs in its own sandbox and never pushes or releases, you may not need it.

### Is it free?

Yes. It is open source under MIT, with no account to make.

### Does it send my code anywhere?

No. It runs on your machine and in your CI, with no telemetry.

### How do I remove it?

Run `npx yokoten uninstall`. It takes back what it wrote on this computer and leaves your own files and settings as they were. The files it added to a project are plain files you can delete.
