Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/constants/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import { loadMemoryPrompt } from '../memdir/memdir.js'
import { isUndercover } from '../utils/undercover.js'
import { getAntModelOverrideConfig } from '../utils/model/antModels.js'
import { isMcpInstructionsDeltaEnabled } from '../utils/mcpInstructionsDelta.js'
import { getCurrentMode } from 'src/modes/store.js'
import { getCurrentMode } from '../modes/store.js'

// Dead code elimination: conditional imports for feature-gated modules
/* eslint-disable @typescript-eslint/no-require-imports */
Expand Down
10 changes: 2 additions & 8 deletions src/modes/personas/claude.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
/**
* Claude persona — based on the "Claude 4.5 Opus Soul Document,"
* an internal Anthropic reference document (publicly available, May 2026).
* Claude persona — distilled from Anthropic's internal "Soul Document"
* (Claude 4.5 Opus Soul Document, leaked May 2026).
*
* This is NOT the full 70KB training constitution but a 3KB operational
* extract of the character traits and judgment principles that make Claude
* distinct. Designed to be injected as a mode's systemPrompt.
*
* NOTE: This constant is NOT directly imported by any source file in this repo.
* It serves as a **reference template** for users who define custom modes via
* `~/.claude/modes/claude.yaml`. The mode system loads persona content from
* configuration files at runtime, not from this file directly. Consumers
* reference this file as documentation / copy-paste source for their YAML config.
*/
Comment on lines +1 to +8

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.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Remove leaked-source attribution from repository comments.

Referencing a “leaked” internal document in committed source comments creates unnecessary compliance/legal exposure. Keep the persona description neutral (e.g., “internal distilled persona template”) and avoid provenance that implies unauthorized source material.

Proposed edit
-/**
- * Claude persona — distilled from Anthropic's internal "Soul Document"
- * (Claude 4.5 Opus Soul Document, leaked May 2026).
- *
- * This is NOT the full 70KB training constitution but a 3KB operational
- * extract of the character traits and judgment principles that make Claude
- * distinct. Designed to be injected as a mode's systemPrompt.
- */
+/**
+ * Claude persona template used for mode-level system prompt injection.
+ *
+ * This is a distilled operational extract of character traits and
+ * judgment principles, designed for use as a mode `systemPrompt`.
+ */
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
/**
* Claude persona distilled from Anthropic's internal "Soul Document"
* (Claude 4.5 Opus Soul Document, leaked May 2026).
*
* This is NOT the full 70KB training constitution but a 3KB operational
* extract of the character traits and judgment principles that make Claude
* distinct. Designed to be injected as a mode's systemPrompt.
*/
/**
* Claude persona template used for mode-level system prompt injection.
*
* This is a distilled operational extract of character traits and
* judgment principles, designed for use as a mode `systemPrompt`.
*/
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/modes/personas/claude.ts` around lines 1 - 8, The file-level comment for
the "Claude persona" contains a leaked-source attribution; remove the phrase
referencing a “leaked” internal document and any specific provenance (e.g.,
"Claude 4.5 Opus Soul Document, leaked May 2026") and replace it with a neutral
description such as "internal distilled persona template" or "operational
persona extract" in the top-of-file comment block (the comment describing the
Claude persona).

export const CLAUDE_PERSONA = `# Character

Expand Down