mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-08-22 03:18:54 +08:00
* docs: map custom_instructions to --append-system-prompt (#1480) The v1 migration guide mapped the v0 `custom_instructions` input to `claude_args: --system-prompt`, but these have different semantics: `custom_instructions` *appended* to Claude Code's default system prompt, while `--system-prompt` *replaces* it entirely. Users who followed the guide silently lost the whole built-in system prompt (tool-usage guidance, sub-agent conventions, etc.), keeping only their few custom lines. Fixes #1480: - Map `custom_instructions` -> `--append-system-prompt` (matches v0 append semantics) in the deprecated-inputs table, the migration example, and the checklist. - Correct the claude_args options table: `--system-prompt` replaces the entire prompt; add an `--append-system-prompt` row for append behavior. Docs-only; no code changes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * docs: fix remaining custom_instructions migration references (#1480) Update usage.md, faq.md, and configuration.md to map custom_instructions to --append-system-prompt, matching the migration-guide fix. The override_prompt row is left unchanged since replacement semantics may be intended there. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+11
-11
@@ -337,17 +337,17 @@ For a complete list of available settings and their descriptions, see the [Claud
|
||||
|
||||
Many individual input parameters have been consolidated into `claude_args` or `settings`. Here's how to migrate:
|
||||
|
||||
| Old Input | New Approach |
|
||||
| --------------------- | -------------------------------------------------------- |
|
||||
| `allowed_tools` | Use `claude_args: "--allowedTools Tool1,Tool2"` |
|
||||
| `disallowed_tools` | Use `claude_args: "--disallowedTools Tool1,Tool2"` |
|
||||
| `max_turns` | Use `claude_args: "--max-turns 10"` |
|
||||
| `model` | Use `claude_args: "--model claude-4-0-sonnet-20250805"` |
|
||||
| `claude_env` | Use `settings` with `"env"` object |
|
||||
| `custom_instructions` | Use `claude_args: "--system-prompt 'Your instructions'"` |
|
||||
| `mcp_config` | Use `claude_args: "--mcp-config '{...}'"` |
|
||||
| `direct_prompt` | Use `prompt` input instead |
|
||||
| `override_prompt` | Use `prompt` with GitHub context variables |
|
||||
| Old Input | New Approach |
|
||||
| --------------------- | --------------------------------------------------------------- |
|
||||
| `allowed_tools` | Use `claude_args: "--allowedTools Tool1,Tool2"` |
|
||||
| `disallowed_tools` | Use `claude_args: "--disallowedTools Tool1,Tool2"` |
|
||||
| `max_turns` | Use `claude_args: "--max-turns 10"` |
|
||||
| `model` | Use `claude_args: "--model claude-4-0-sonnet-20250805"` |
|
||||
| `claude_env` | Use `settings` with `"env"` object |
|
||||
| `custom_instructions` | Use `claude_args: "--append-system-prompt 'Your instructions'"` |
|
||||
| `mcp_config` | Use `claude_args: "--mcp-config '{...}'"` |
|
||||
| `direct_prompt` | Use `prompt` input instead |
|
||||
| `override_prompt` | Use `prompt` with GitHub context variables |
|
||||
|
||||
## Custom Executables for Specialized Environments
|
||||
|
||||
|
||||
Reference in New Issue
Block a user