---
title: "yokoten"
description: "あなたのエージェントが rm -rf を実行しました。隣のプロジェクトは無事です。 コマンドひとつで、エージェントのサンドボックスが有効になります。サンドボックスが起動できなければ、エージェントは止まります：npx yokoten。"
canonical: https://yokoten.app/ja/
lang: ja
---

> 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.

# エージェントが rm -rf を実行。隣のプロジェクトは無事です。

コマンドひとつで、エージェントのサンドボックスを有効にします。サンドボックスが起動できなければ、エージェントは止まります。

```sh
npx yokoten
```

- 対応ツール: Claude Code, Codex, Copilot, Antigravity, Muse Code, OpenCode, Grok, DeepSeek
- 対応 OS: Linux, macOS, Windows（WSL）, Windows ネイティブ（ベータ）

## 何を止めるか

**ホームフォルダーを丸ごと消すコマンド。**

```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
```

**ほかの人の作業を消してしまう強制プッシュ。**

```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
```

**オーナーだけが行うべきリリース。**

```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
```

## `npx yokoten` がすること

```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. ガードを有効にし、サンドボックスのあるエージェントではサンドボックスも有効にします。
2. ルールを追加します。あなたのファイルは変えません。
3. 次のコマンドを一つ示します。

## 四つの質問

### 私に必要ですか？

はい。コーディングエージェントがあなたのマシンでコマンドを実行しているなら、必要です。設定は一度だけです。その後、普段は実行するものがありません。エージェントがすでに専用のサンドボックスで動いていて、プッシュもリリースもしないなら、必要ないかもしれません。

### 無料ですか？

はい。MIT のオープンソースで、アカウントも要りません。

### コードはどこかに送られますか？

いいえ。あなたのマシンと CI の中だけで動き、テレメトリもありません。

### どうやって削除しますか？

`npx yokoten uninstall` を実行します。このコンピューターに書き込んだものを元に戻し、あなた自身のファイルと設定はそのまま残します。プロジェクトに追加したファイルは普通のファイルなので、削除してかまいません。
