Skip to content

docs: use --append-system-prompt-file in the longform guide - #3968

Merged
haelyra merged 1 commit into
affaan-m:mainfrom
guru-bharadwaj20:docs/append-system-prompt-file
Nov 19, 2026
Merged

haelyra merged 1 commit into
affaan-m:mainfrom
guru-bharadwaj20:docs/append-system-prompt-file

Conversation

@guru-bharadwaj20

Copy link
Copy Markdown
Contributor

What Changed

  • the-longform-guide.md: replaced claude --system-prompt "$(cat file)" with claude --append-system-prompt-file file in the example and the three aliases, and added a one-line note explaining why.
  • docs/{es,ja-JP,tr,zh-CN}/the-longform-guide.md: same command change in the code blocks only. Translated prose is untouched.

Why This Change

Per the Claude Code CLI reference, --system-prompt replaces the entire default system prompt, so readers following the guide lose Claude Code's built-in instructions. --append-system-prompt-file adds the file and keeps the defaults, which is what the section intends.

Fixes #3967

Testing Done

  • Checked flag behaviour against the official CLI reference
  • grep -rn -- '--system-prompt "' *.md docs/ returns no remaining matches in the longform guides

Type of Change

  • docs: Documentation

Security & Quality Checklist

  • No secrets or credentials
  • Docs-only change, no code or hooks affected

--system-prompt replaces Claude Code's entire default prompt. The append
variant keeps it. Applied to the English guide and the es, ja-JP, tr and
zh-CN code blocks.

Fixes #3967
Copilot AI balanced review requested due to automatic review settings November 17, 2026 03:12
@ecc-tools

ecc-tools Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Security Evidence

Commit: 67426217e401a69715b04e0916a4fe92aa9405d0

Security evidence gate passed (success)

No security-sensitive scanner-evidence gap detected.

Mode: enforce

Scanned 5 changed file(s). No missing scanner-evidence signal was detected.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Risk Taxonomy

Commit: 67426217e401a69715b04e0916a4fe92aa9405d0

PR taxonomy clear (success)

Scanned 5 changed file(s). No taxonomy bucket signals were detected.

Scanned 5 changed file(s).

No PR taxonomy bucket signals were detected.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Reference Set Readiness

Commit: 67426217e401a69715b04e0916a4fe92aa9405d0

Reference set readiness gaps detected (neutral)

Reference evidence present for 0/7 areas (0%) across 5 changed file(s).

This check is based on files changed in this PR. Repository-level readiness is still reported by /ecc-tools analyze comments and generated manifests.

Area Status Evidence / Next Step
Deep analyzer corpus Missing Add analyzer fixture, golden, benchmark, or reference-set files that can catch analyzer regressions.
RAG/evaluator comparison Missing Add retrieval or evaluator reference-set comparison fixtures with expected ranking behavior.
PR salvage/review corpus Missing Add stale-PR, review-thread, reopen-flow, or salvage reference cases for queue cleanup automation.
Discussion triage corpus Missing Add public discussion triage fixtures, golden cases, or reference sets for informational, answered, and no-response classifications.
Harness compatibility Missing Add cross-harness, adapter-compliance, or harness-audit evidence for Claude, Codex, OpenCode, Zed, dmux, and agent surfaces.
Security evidence Missing Attach security evidence such as SBOMs, SARIF, audit reports, or AgentShield evidence packs.
CI failure-mode evidence Missing Add captured CI failure logs, dry-run fixtures, or troubleshooting docs for common workflow failure modes.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@ecc-tools

ecc-tools Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Hosted Promotion Readiness

Commit: 67426217e401a69715b04e0916a4fe92aa9405d0

Hosted promotion readiness passed (success)

No hosted promotion evidence gaps detected across 5 changed file(s); 0 corpus scenarios had matching evidence.

This check compares PR file changes against the evaluator/RAG promotion corpus in src/analyzers/fixtures/evaluator-rag-corpus.ts.
Hosted output scoring inspected 0 completed cached hosted job results.

No evaluator corpus scenarios matched this PR.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Documentation
    • Updated the long-form guide and its translated versions with revised examples for adding prompt files and context to Claude commands and aliases.
    • Clarified that replacing the default prompt can remove its built-in tool-use instructions, and recommended using append options when adding custom context.

The English longform guide and its Spanish, Japanese, Turkish, and Simplified Chinese copies now use --append-system-prompt-file in memory and context-file examples. The English guide also warns that --system-prompt replaces Claude Code’s default prompt.

Changes: Longform guide prompt examples

Layer / File(s) Summary
Append context files in examples and aliases
the-longform-guide.md, docs/es/the-longform-guide.md, docs/ja-JP/the-longform-guide.md, docs/tr/the-longform-guide.md, docs/zh-CN/the-longform-guide.md
The example commands and aliases use --append-system-prompt-file to load memory and context files. The English guide adds a warning that --system-prompt replaces Claude Code’s default prompt.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other · Severity of issue fixed: Medium

Merge Risk: Minimal · up to 67426

This documentation-only change updates the longform guides to append context files instead of replacing Claude Code's default prompt. It has no runtime impact and is safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed Title 'docs: use --append-system-prompt-file in the longform guide' matches the main change: replacing --system-prompt with --append-system-prompt-file in the longform guide examples and aliases acros…
Description check Passed Description states the change (replacing claude --system-prompt with --append-system-prompt-file in the English guide and four translated copies), the reason (--system-prompt replaces the default syst…
Linked Issues check Passed Issue #3967 has one coding requirement: replace claude --system-prompt "$(cat file)" with claude --append-system-prompt-file file in the-longform-guide.md and the es, ja-JP, tr, and zh-CN copies. …
Out of Scope Changes check Passed All reported changes fall within issue #3967. They are the flag replacement in the longform guide command examples and aliases in five language files. The English guide also gains a one-line note expl…
Full details: Title check

Explanation

Title 'docs: use --append-system-prompt-file in the longform guide' matches the main change: replacing --system-prompt with --append-system-prompt-file in the longform guide examples and aliases across the English and translated copies. It is specific and follows the docs: prefix convention.

Full details: Description check

Explanation

Description states the change (replacing claude --system-prompt with --append-system-prompt-file in the English guide and four translated copies), the reason (--system-prompt replaces the default system prompt), the linked issue #3967, and the testing performed. It is directly related to the changeset.

Full details: Linked Issues check

Explanation

Issue #3967 has one coding requirement: replace claude --system-prompt "$(cat file)" with claude --append-system-prompt-file file in the-longform-guide.md and the es, ja-JP, tr, and zh-CN copies. The PR summary and PR description report this change in the English example and three aliases, and in the code blocks of all four translated guides. The raw per-file summaries for the English, es, ja-JP, tr, and zh-CN files match this description. The issue asks for no test changes. The PR description states that a grep for --system-prompt " finds no remaining matches in the longform guides. The inspection of the file diff failed because the changed blobs were missing from the checkout, so this verdict relies on the PR description and per-file summaries, not on a direct read of the diff.

Full details: Out of Scope Changes check

Explanation

All reported changes fall within issue #3967. They are the flag replacement in the longform guide command examples and aliases in five language files. The English guide also gains a one-line note explaining why the append flag keeps Claude Code's default system prompt. That note supports the issue's stated concern and is documentation for the change. The translated prose is reported as unchanged. No unrelated files or code changes are reported. The diff read failed, so this verdict also relies on the PR summaries rather than a direct diff inspection.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: affaan-m/ECC
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 8abdf32
  • Layers: Repository YAML
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: a350e6ad-e0b5-4e37-91f3-8414415eaef4
Commits

Reviewing files that changed from the base of the PR and between 8abdf32 and 6742621.

Files selected for processing: 5

  • docs/es/the-longform-guide.md
  • docs/ja-JP/the-longform-guide.md
  • docs/tr/the-longform-guide.md
  • docs/zh-CN/the-longform-guide.md
  • the-longform-guide.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Recent review details

Context from checks skipped due to timeout: 2

  • GitHub Check: CodeRabbit
  • GitHub Check: Greptile Review
Additional context used

Code guidelines: 14

docs/ja-JP/AGENTS.md — auto-discovered
docs/zh-CN/AGENTS.md — auto-discovered
docs/es/AGENTS.md — auto-discovered
docs/tr/AGENTS.md — auto-discovered
docs/ja-JP/CLAUDE.md — auto-discovered
docs/zh-CN/CLAUDE.md — auto-discovered
docs/tr/CLAUDE.md — auto-discovered
.cursor/rules/common-patterns.md — auto-discovered
.cursor/rules/kotlin-testing.md — auto-discovered
.cursor/rules/python-coding-style.md — auto-discovered
.cursor/rules/swift-patterns.md — auto-discovered
.cursor/rules/common-testing.md — auto-discovered
.agents/skills/verification-loop/SKILL.md — Agent Skill
docs/es/CLAUDE.md — auto-discovered
Path-based instructions: 14

Source excerpt: **テスト駆動** — 実装前にテストを書き、80%以上のカバレッジを必須とする Source excerpt: **セキュリティファースト** — セキュリティに妥協せず、すべての入力を検証する Source excerpt: **イミュータビリティ** — 常に新しいオブジェクトを生成し、既存のものを変更しない Source excerpt: ハードコードされたシークレットがないこと(APIキー、パスワード、トークン) Source exc...

CodeRabbit inference engine (docs/ja-JP/AGENTS.md)

Files:

  • docs/ja-JP/the-longform-guide.md
Source excerpt: **不可变性(关键):** 总是创建新对象,永不修改。返回带有更改的新副本。 Source excerpt: **文件组织:** 许多小文件优于少数大文件。通常 200-400 行,最多 800 行。按功能/领域组织,而不是按类型组织。高内聚,低耦合。 Source excerpt: **错误处理:** 在每个层级处理错误。在 UI 代码中提供用户友好的消息。在服务器端记录详细的上下文。绝不静默地忽略错误。 Source excerpt: **...

CodeRabbit inference engine (docs/zh-CN/AGENTS.md)

Files:

  • docs/zh-CN/the-longform-guide.md
Source excerpt: **Inmutabilidad (CRÍTICO):** Siempre crea nuevos objetos, nunca mutes.

CodeRabbit inference engine (docs/es/AGENTS.md)

Files:

  • docs/es/the-longform-guide.md
Source excerpt: **HERHANGİ BİR committen önce:** Sabit kodlanmış sırlar yok (API anahtarları, şifreler, tokenlar) Source excerpt: **HERHANGİ BİR committen önce:** Tüm kullanıcı girdileri doğrulanmış Source excerpt: **HERHANGİ BİR committen...

CodeRabbit inference engine (docs/tr/AGENTS.md)

Files:

  • docs/tr/the-longform-guide.md
Source excerpt: エージェント形式:YAMLフロントマター付きMarkdown(name、description、tools、model) Source excerpt: スキル形式:使用タイミング、仕組み、例の明確なセクションを含むMarkdown Source excerpt: スキル配置:キュレート済みは skills/ に、生成/インポートは ~/.claude/skills/ に。docs/SKILL-PLACEMENT-POLICY.md を参照 S...

CodeRabbit inference engine (docs/ja-JP/CLAUDE.md)

Files:

  • docs/ja-JP/the-longform-guide.md
Source excerpt: 代理格式:带有 YAML 前言的 Markdown(名称、描述、工具、模型) Source excerpt: 技能格式:带有清晰章节的 Markdown(何时使用、如何工作、示例) Source excerpt: 钩子格式:带有匹配器条件和命令/通知钩子的 JSON Source excerpt: 代理:带有前言的 Markdown(名称、描述、工具、模型) Source excerpt: 技能:清晰的章节(何时使用、如何工作、示例) Sour...

CodeRabbit inference engine (docs/zh-CN/CLAUDE.md)

Files:

  • docs/zh-CN/the-longform-guide.md
Source excerpt: CONTRIBUTING.md'deki formatları takip edin: Agents: Frontmatter ile Markdown (name, description, tools, model) Source excerpt: CONTRIBUTING.md'deki formatları takip edin: Skills: Açık bölümler (When to Use, How It Works, Exa...

CodeRabbit inference engine (docs/tr/CLAUDE.md)

Files:

  • docs/tr/the-longform-guide.md
Source excerpt: Encapsulate data access behind a consistent interface: Define standard operations: findAll, findById, create, update, delete Concrete implementations handle storage details (database, API, file, etc.) Business logic depends...

CodeRabbit inference engine (.cursor/rules/common-patterns.md)

Files:

  • docs/es/the-longform-guide.md
  • docs/ja-JP/the-longform-guide.md
  • docs/tr/the-longform-guide.md
  • docs/zh-CN/the-longform-guide.md
  • the-longform-guide.md
Source excerpt: Use **Kotest** with spec styles (StringSpec, FunSpec, BehaviorSpec) and **MockK** for mocking.

CodeRabbit inference engine (.cursor/rules/kotlin-testing.md)

Files:

  • docs/es/the-longform-guide.md
  • docs/ja-JP/the-longform-guide.md
  • docs/tr/the-longform-guide.md
  • docs/zh-CN/the-longform-guide.md
  • the-longform-guide.md
Source excerpt: Follow **PEP 8** conventions Source excerpt: Use **type annotations** on all function signatures Source excerpt: Prefer immutable data structures: Source excerpt: **black** for code formatting Source excerpt: **isort** for i...

CodeRabbit inference engine (.cursor/rules/python-coding-style.md)

Files:

  • docs/es/the-longform-guide.md
  • docs/ja-JP/the-longform-guide.md
  • docs/tr/the-longform-guide.md
  • docs/zh-CN/the-longform-guide.md
  • the-longform-guide.md
Source excerpt: Define small, focused protocols.

CodeRabbit inference engine (.cursor/rules/swift-patterns.md)

Files:

  • docs/es/the-longform-guide.md
  • docs/ja-JP/the-longform-guide.md
  • docs/tr/the-longform-guide.md
  • docs/zh-CN/the-longform-guide.md
  • the-longform-guide.md
Source excerpt: Test Types (ALL required): **Unit Tests** - Individual functions, utilities, components **Integration Tests** - API endpoints, database operations **E2E Tests** - Critical user flows (framework chosen per language)

CodeRabbit inference engine (.cursor/rules/common-testing.md)

Files:

  • docs/es/the-longform-guide.md
  • docs/ja-JP/the-longform-guide.md
  • docs/tr/the-longform-guide.md
  • docs/zh-CN/the-longform-guide.md
  • the-longform-guide.md
Source excerpt: Review each changed file for: Unintended changes Source excerpt: Review each changed file for: Missing error handling Source excerpt: Review each changed file for: Potential edge cases

CodeRabbit inference engine (.agents/skills/verification-loop/SKILL.md)

Files:

  • docs/es/the-longform-guide.md
  • docs/ja-JP/the-longform-guide.md
  • docs/tr/the-longform-guide.md
  • docs/zh-CN/the-longform-guide.md
  • the-longform-guide.md
Source excerpt: Nomenclatura de archivos: minúsculas con guiones (por ejemplo, `python-reviewer.md`, `tdd-workflow.md`)

CodeRabbit inference engine (docs/es/CLAUDE.md)

Files:

  • docs/es/the-longform-guide.md

@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The documentation changes appear safe to merge.

Summary

Updates the longform guide’s examples to use --append-system-prompt-file instead of replacing Claude Code’s default prompt.

  • The guide's context examples add files without replacing Claude Code's default prompt.

Reviews (3) · Last reviewed commit: "docs: use --append-system-prompt-file in..." · Reviewed by Greptile

@haelyra
haelyra merged commit c1591d5 into affaan-m:main Nov 19, 2026
4 checks passed
@haelyra

haelyra commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Thank you for preserving Claude Code defaults when appending context files. We merged your original commit history through #4048 so the related changes could be tested together.

The resulting main commit fbb1a85c59a8468c96454fc5b48cf7e4f8f79b55 passed CI, CodeQL, and Supply-Chain Watch. Thank you for helping improve ECC!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: longform guide uses --system-prompt, which replaces Claude Code's default prompt

3 participants