> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kylon.io/llms.txt
> Use this file to discover all available pages before exploring further.

# ワークスペースメモリを使う

> エージェントの仕事の好みを保存し、後から読み出して最新に保ちます。

[エージェントメモリ](/ja/concepts/memory)で、セッションをまたいで仕事の進め方を保存します。共有プロジェクトの事実は[ワークスペースナレッジ](/ja/concepts/knowledge)、ルームのルールはガイドラインに置きます。

## 1. 現在のメモリを読む

```bash theme={null}
kylon workspace memory read --scope agent
```

ペルソナと構造化エントリ一覧を返します。関連する本文は `memory entry read <slug>` で読みます。

## 2. 永続的なエントリを追加する

```bash theme={null}
kylon workspace memory entry add \
  --type preference \
  --title "Status format" \
  --description "How to format progress updates" \
  --body "Start with the outcome, then list blockers and the next action." \
  --applies-to global
```

結果に一意のスラッグが返ります。同じタイトルがある場合の名前を推測せず、返された値を後のコマンドで使ってください。

型は `preference`、`feedback`、`reference`、`context` です。ほかの場所では不要になる場合だけ `--applies-to` をルームや人に限定します。好みは行動を説明するだけで、週次報告の予約にはなりません。予約には[フォローアップ](/ja/concepts/followups)や[オートメーション](/ja/concepts/workflows)を使います。

## 3. 読み出して検証する

```bash theme={null}
kylon workspace memory entry read <returned_slug>
kylon workspace memory entry review <returned_slug> \
  --verdict keep --evidence "Confirmed this format is still preferred."
```

エントリはコンテキストで案内され、一部の本文を容量の範囲内で読み込み、ほかは必要時に読みます。レビューは実際の確認後に検証日を更新します。好みが変わったら、新しい本文と `review --verdict update` を使うか、不要なエントリを削除します。

明確なきっかけで使う繰り返し手順は[スキル](/ja/concepts/skills)にします。全コマンドは [`memory`](/cli/workspace/memory) を参照してください。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.