---
canonical: "https://agi-labo.com/tools/cockpit/docs/cockpit-cli/reference/system-prompt"
title: "cockpit system-prompt"
description: "cockpit system-promptの構文、オプション、結果、制約をcockpit CLIの正本から自動生成したリファレンスです。"
section: "リファレンス"
order: 114
pageType: reference
lastVerifiedVersion: 4.61.0
lastVerifiedAt: "2026-08-27"
draft: false
surfaces:
  - cli
operatingSystems:
  - windows
  - macos
  - linux
plans:
  - guest
  - member
navigation: false
---

このReference本文は、アプリが配布するcockpit CLIヘルプと同じ英語の正本から自動生成されています。日本語の概念説明と安全な使い方は[cockpit CLI](/tools/cockpit/docs/cockpit-cli)を参照してください。

Manage custom system prompts stored as user-owned Markdown files under `<dataDir>/master/system-prompts/`. AGI Cockpit never overwrites this directory when it redeploys Master Agent files.

```bash
cockpit system-prompt list
cockpit system-prompt add reviewer --prompt "Review changes for correctness and clarity."
cockpit system-prompt add persona --mode replace --file ./persona.md
cat research.md | cockpit system-prompt add researcher --stdin
cockpit system-prompt remove reviewer
```

`add` requires a name and exactly one of `--prompt <text>`, `--file <path>`, or `--stdin`. `--mode` accepts `append` or `replace` and defaults to `append`.

- `append` adds the custom content after Cockpit's standard system prompt and preserves built-in Cockpit CLI knowledge.
- `replace` uses only the custom content. Cockpit CLI knowledge is then available only through the installed Cockpit skill.

Each prompt is stored as `<name>.md` with its mode in YAML frontmatter. Existing prompts and built-in prompt names cannot be overwritten by `add`. `list` returns built-in defaults and custom prompts, including their supported agents and composition mode. `remove` deletes only a custom prompt with the exact validated name.

Use a prompt for a task or Autorun:

```bash
cockpit task create --instruction "Review this repository" --directory /path/to/repo --agent-type codex --system-prompt reviewer
cockpit autorun create --name "Daily review" --instruction "Review recent changes" --directory /path/to/repo --agent-type codex --ui-mode visual --system-prompt reviewer --type cron --expression "0 9 * * *"
```

Custom prompts are supported by visual Claude, visual Codex, visual Qoder, and Cockpit. Cursor, Grok, Antigravity, Terminal, and terminal UI modes reject prompt selection.
