Neutralize remaining internal-only diagnostic labels (#359)

This pass rewrites a small set of ant-only diagnostic and UI labels to
neutral internal wording while leaving command definitions, flags, and
runtime logic untouched. It focuses on internal debug output, dead UI
branches, and noninteractive headings rather than broader product text.

Constraint: Label cleanup only; do not change command semantics or ant-only logic gates
Rejected: Renaming ant-only command descriptions in main.tsx | broader UX surface better handled in a separate reviewed pass
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Remaining ANT-ONLY hits are mostly command descriptions and intentionally deferred user-facing strings
Tested: bun run build
Tested: bun run smoke
Tested: bun run verify:privacy
Tested: bun run test:provider
Tested: bun run test:provider-recommendation
Not-tested: Full repo typecheck (upstream baseline remains noisy)

Co-authored-by: anandh8x <test@example.com>
This commit is contained in:
Anandan
2026-04-04 23:50:15 +05:30
committed by GitHub
parent 8fc40ee8c4
commit 0d27ca596a
15 changed files with 22 additions and 22 deletions

View File

@@ -223,7 +223,7 @@ export function createBridgeLogger(options: {
if (process.env.USER_TYPE === 'ant' && debugLogPath) { if (process.env.USER_TYPE === 'ant' && debugLogPath) {
writeStatus( writeStatus(
`${chalk.yellow('[ANT-ONLY] Logs:')} ${chalk.dim(debugLogPath)}\n`, `${chalk.yellow('[internal] Logs:')} ${chalk.dim(debugLogPath)}\n`,
) )
} }
writeStatus(`${indicatorColor(indicator)} ${stateText}${suffix}\n`) writeStatus(`${indicatorColor(indicator)} ${stateText}${suffix}\n`)

View File

@@ -205,7 +205,7 @@ function formatContextAsMarkdownTable(data: ContextData): string {
systemTools.length > 0 && systemTools.length > 0 &&
process.env.USER_TYPE === 'ant' process.env.USER_TYPE === 'ant'
) { ) {
output += `### [ANT-ONLY] System Tools\n\n` output += `### [internal] System Tools\n\n`
output += `| Tool | Tokens |\n` output += `| Tool | Tokens |\n`
output += `|------|--------|\n` output += `|------|--------|\n`
for (const tool of systemTools) { for (const tool of systemTools) {
@@ -220,7 +220,7 @@ function formatContextAsMarkdownTable(data: ContextData): string {
systemPromptSections.length > 0 && systemPromptSections.length > 0 &&
process.env.USER_TYPE === 'ant' process.env.USER_TYPE === 'ant'
) { ) {
output += `### [ANT-ONLY] System Prompt Sections\n\n` output += `### [internal] System Prompt Sections\n\n`
output += `| Section | Tokens |\n` output += `| Section | Tokens |\n`
output += `|---------|--------|\n` output += `|---------|--------|\n`
for (const section of systemPromptSections) { for (const section of systemPromptSections) {
@@ -290,7 +290,7 @@ function formatContextAsMarkdownTable(data: ContextData): string {
// Message breakdown (internal-only) // Message breakdown (internal-only)
if (messageBreakdown && process.env.USER_TYPE === 'ant') { if (messageBreakdown && process.env.USER_TYPE === 'ant') {
output += `### [ANT-ONLY] Message Breakdown\n\n` output += `### [internal] Message Breakdown\n\n`
output += `| Category | Tokens |\n` output += `| Category | Tokens |\n`
output += `|----------|--------|\n` output += `|----------|--------|\n`
output += `| Tool calls | ${formatTokens(messageBreakdown.toolCallTokens)} |\n` output += `| Tool calls | ${formatTokens(messageBreakdown.toolCallTokens)} |\n`

View File

@@ -270,7 +270,7 @@ export function ContextVisualization(t0) {
} else { } else {
t4 = $[53]; t4 = $[53];
} }
t5 = (systemTools && systemTools.length > 0 || hasDeferredBuiltinTools) && false && <Box flexDirection="column" marginTop={1}><Box><Text bold={true}>[ANT-ONLY] System tools</Text>{hasDeferredBuiltinTools && <Text dimColor={true}> (some loaded on-demand)</Text>}</Box><Box flexDirection="column" marginTop={1}><Text dimColor={true}>Loaded</Text>{systemTools?.map(_temp14)}{deferredBuiltinTools.filter(_temp15).map(_temp16)}</Box>{hasDeferredBuiltinTools && deferredBuiltinTools.some(_temp17) && <Box flexDirection="column" marginTop={1}><Text dimColor={true}>Available</Text>{deferredBuiltinTools.filter(_temp18).map(_temp19)}</Box>}</Box>; t5 = (systemTools && systemTools.length > 0 || hasDeferredBuiltinTools) && false && <Box flexDirection="column" marginTop={1}><Box><Text bold={true}>[internal] System tools</Text>{hasDeferredBuiltinTools && <Text dimColor={true}> (some loaded on-demand)</Text>}</Box><Box flexDirection="column" marginTop={1}><Text dimColor={true}>Loaded</Text>{systemTools?.map(_temp14)}{deferredBuiltinTools.filter(_temp15).map(_temp16)}</Box>{hasDeferredBuiltinTools && deferredBuiltinTools.some(_temp17) && <Box flexDirection="column" marginTop={1}><Text dimColor={true}>Available</Text>{deferredBuiltinTools.filter(_temp18).map(_temp19)}</Box>}</Box>;
$[0] = categories; $[0] = categories;
$[1] = gridRows; $[1] = gridRows;
$[2] = mcpTools; $[2] = mcpTools;
@@ -304,7 +304,7 @@ export function ContextVisualization(t0) {
} }
let t10; let t10;
if ($[54] !== systemPromptSections) { if ($[54] !== systemPromptSections) {
t10 = systemPromptSections && systemPromptSections.length > 0 && false && <Box flexDirection="column" marginTop={1}><Text bold={true}>[ANT-ONLY] System prompt sections</Text>{systemPromptSections.map(_temp20)}</Box>; t10 = systemPromptSections && systemPromptSections.length > 0 && false && <Box flexDirection="column" marginTop={1}><Text bold={true}>[internal] System prompt sections</Text>{systemPromptSections.map(_temp20)}</Box>;
$[54] = systemPromptSections; $[54] = systemPromptSections;
$[55] = t10; $[55] = t10;
} else { } else {
@@ -336,7 +336,7 @@ export function ContextVisualization(t0) {
} }
let t14; let t14;
if ($[62] !== messageBreakdown) { if ($[62] !== messageBreakdown) {
t14 = messageBreakdown && false && <Box flexDirection="column" marginTop={1}><Text bold={true}>[ANT-ONLY] Message breakdown</Text><Box flexDirection="column" marginLeft={1}><Box><Text>Tool calls: </Text><Text dimColor={true}>{formatTokens(messageBreakdown.toolCallTokens)} tokens</Text></Box><Box><Text>Tool results: </Text><Text dimColor={true}>{formatTokens(messageBreakdown.toolResultTokens)} tokens</Text></Box><Box><Text>Attachments: </Text><Text dimColor={true}>{formatTokens(messageBreakdown.attachmentTokens)} tokens</Text></Box><Box><Text>Assistant messages (non-tool): </Text><Text dimColor={true}>{formatTokens(messageBreakdown.assistantMessageTokens)} tokens</Text></Box><Box><Text>User messages (non-tool-result): </Text><Text dimColor={true}>{formatTokens(messageBreakdown.userMessageTokens)} tokens</Text></Box></Box>{messageBreakdown.toolCallsByType.length > 0 && <Box flexDirection="column" marginTop={1}><Text bold={true}>[ANT-ONLY] Top tools</Text>{messageBreakdown.toolCallsByType.slice(0, 5).map(_temp26)}</Box>}{messageBreakdown.attachmentsByType.length > 0 && <Box flexDirection="column" marginTop={1}><Text bold={true}>[ANT-ONLY] Top attachments</Text>{messageBreakdown.attachmentsByType.slice(0, 5).map(_temp27)}</Box>}</Box>; t14 = messageBreakdown && false && <Box flexDirection="column" marginTop={1}><Text bold={true}>[internal] Message breakdown</Text><Box flexDirection="column" marginLeft={1}><Box><Text>Tool calls: </Text><Text dimColor={true}>{formatTokens(messageBreakdown.toolCallTokens)} tokens</Text></Box><Box><Text>Tool results: </Text><Text dimColor={true}>{formatTokens(messageBreakdown.toolResultTokens)} tokens</Text></Box><Box><Text>Attachments: </Text><Text dimColor={true}>{formatTokens(messageBreakdown.attachmentTokens)} tokens</Text></Box><Box><Text>Assistant messages (non-tool): </Text><Text dimColor={true}>{formatTokens(messageBreakdown.assistantMessageTokens)} tokens</Text></Box><Box><Text>User messages (non-tool-result): </Text><Text dimColor={true}>{formatTokens(messageBreakdown.userMessageTokens)} tokens</Text></Box></Box>{messageBreakdown.toolCallsByType.length > 0 && <Box flexDirection="column" marginTop={1}><Text bold={true}>[internal] Top tools</Text>{messageBreakdown.toolCallsByType.slice(0, 5).map(_temp26)}</Box>}{messageBreakdown.attachmentsByType.length > 0 && <Box flexDirection="column" marginTop={1}><Text bold={true}>[internal] Top attachments</Text>{messageBreakdown.attachmentsByType.slice(0, 5).map(_temp27)}</Box>}</Box>;
$[62] = messageBreakdown; $[62] = messageBreakdown;
$[63] = t14; $[63] = t14;
} else { } else {

View File

@@ -35,7 +35,7 @@ export function DevBar() {
const recentOps = t1; const recentOps = t1;
let t2; let t2;
if ($[3] !== recentOps) { if ($[3] !== recentOps) {
t2 = <Text wrap="truncate-end" color="warning">[ANT-ONLY] slow sync: {recentOps}</Text>; t2 = <Text wrap="truncate-end" color="warning">[internal] slow sync: {recentOps}</Text>;
$[3] = recentOps; $[3] = recentOps;
$[4] = t2; $[4] = t2;
} else { } else {

View File

@@ -114,7 +114,7 @@ export function HelpV2(t0) {
if (false && antOnlyCommands.length > 0) { if (false && antOnlyCommands.length > 0) {
let t7; let t7;
if ($[26] !== antOnlyCommands || $[27] !== close || $[28] !== columns || $[29] !== maxHeight) { if ($[26] !== antOnlyCommands || $[27] !== close || $[28] !== columns || $[29] !== maxHeight) {
t7 = <Tab key="ant-only" title="[ant-only]"><Commands commands={antOnlyCommands} maxHeight={maxHeight} columns={columns} title="Browse ant-only commands:" onCancel={close} /></Tab>; t7 = <Tab key="ant-only" title="[internal-only]"><Commands commands={antOnlyCommands} maxHeight={maxHeight} columns={columns} title="Browse internal-only commands:" onCancel={close} /></Tab>;
$[26] = antOnlyCommands; $[26] = antOnlyCommands;
$[27] = close; $[27] = close;
$[28] = columns; $[28] = columns;

View File

@@ -4,7 +4,7 @@ export function InterruptedByUser() {
const $ = _c(1); const $ = _c(1);
let t0; let t0;
if ($[0] === Symbol.for("react.memo_cache_sentinel")) { if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
t0 = <><Text dimColor={true}>Interrupted </Text>{false ? <Text dimColor={true}>· [ANT-ONLY] /issue to report a model issue</Text> : <Text dimColor={true}>· What should Claude do instead?</Text>}</>; t0 = <><Text dimColor={true}>Interrupted </Text>{false ? <Text dimColor={true}>· [internal] /issue to report a model issue</Text> : <Text dimColor={true}>· What should Claude do instead?</Text>}</>;
$[0] = t0; $[0] = t0;
} else { } else {
t0 = $[0]; t0 = $[0];

View File

@@ -225,7 +225,7 @@ export function LogoV2() {
let t22; let t22;
if ($[25] === Symbol.for("react.memo_cache_sentinel")) { if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
t19 = false && !process.env.DEMO_VERSION && <Box paddingLeft={2} flexDirection="column"><Text dimColor={true}>Use /issue to report model behavior issues</Text></Box>; t19 = false && !process.env.DEMO_VERSION && <Box paddingLeft={2} flexDirection="column"><Text dimColor={true}>Use /issue to report model behavior issues</Text></Box>;
t20 = false && !process.env.DEMO_VERSION && <Box paddingLeft={2} flexDirection="column"><Text color="warning">[ANT-ONLY] Logs:</Text><Text dimColor={true}>API calls: {getDisplayPath(getDumpPromptsPath())}</Text><Text dimColor={true}>Debug logs: {getDisplayPath(getDebugLogPath())}</Text>{isDetailedProfilingEnabled() && <Text dimColor={true}>Startup Perf: {getDisplayPath(getStartupPerfLogPath())}</Text>}</Box>; t20 = false && !process.env.DEMO_VERSION && <Box paddingLeft={2} flexDirection="column"><Text color="warning">[internal] Logs:</Text><Text dimColor={true}>API calls: {getDisplayPath(getDumpPromptsPath())}</Text><Text dimColor={true}>Debug logs: {getDisplayPath(getDebugLogPath())}</Text>{isDetailedProfilingEnabled() && <Text dimColor={true}>Startup Perf: {getDisplayPath(getStartupPerfLogPath())}</Text>}</Box>;
t21 = false && <GateOverridesWarning />; t21 = false && <GateOverridesWarning />;
t22 = false && <ExperimentEnrollmentNotice />; t22 = false && <ExperimentEnrollmentNotice />;
$[25] = t19; $[25] = t19;
@@ -502,7 +502,7 @@ export function LogoV2() {
let t40; let t40;
if ($[86] === Symbol.for("react.memo_cache_sentinel")) { if ($[86] === Symbol.for("react.memo_cache_sentinel")) {
t37 = false && !process.env.DEMO_VERSION && <Box paddingLeft={2} flexDirection="column"><Text dimColor={true}>Use /issue to report model behavior issues</Text></Box>; t37 = false && !process.env.DEMO_VERSION && <Box paddingLeft={2} flexDirection="column"><Text dimColor={true}>Use /issue to report model behavior issues</Text></Box>;
t38 = false && !process.env.DEMO_VERSION && <Box paddingLeft={2} flexDirection="column"><Text color="warning">[ANT-ONLY] Logs:</Text><Text dimColor={true}>API calls: {getDisplayPath(getDumpPromptsPath())}</Text><Text dimColor={true}>Debug logs: {getDisplayPath(getDebugLogPath())}</Text>{isDetailedProfilingEnabled() && <Text dimColor={true}>Startup Perf: {getDisplayPath(getStartupPerfLogPath())}</Text>}</Box>; t38 = false && !process.env.DEMO_VERSION && <Box paddingLeft={2} flexDirection="column"><Text color="warning">[internal] Logs:</Text><Text dimColor={true}>API calls: {getDisplayPath(getDumpPromptsPath())}</Text><Text dimColor={true}>Debug logs: {getDisplayPath(getDebugLogPath())}</Text>{isDetailedProfilingEnabled() && <Text dimColor={true}>Startup Perf: {getDisplayPath(getStartupPerfLogPath())}</Text>}</Box>;
t39 = false && <GateOverridesWarning />; t39 = false && <GateOverridesWarning />;
t40 = false && <ExperimentEnrollmentNotice />; t40 = false && <ExperimentEnrollmentNotice />;
$[86] = t37; $[86] = t37;

View File

@@ -764,7 +764,7 @@ export function getAssistantMessageFromError(
) { ) {
// Get organization ID from config - only use OAuth account data when actively using OAuth // Get organization ID from config - only use OAuth account data when actively using OAuth
const orgId = getOauthAccountInfo()?.organizationUuid const orgId = getOauthAccountInfo()?.organizationUuid
const baseMsg = `[ANT-ONLY] Your org isn't gated into the \`${model}\` model. Either run \`claude\` with \`ANTHROPIC_MODEL=${getDefaultMainLoopModelSetting()}\`` const baseMsg = `[internal] Your org isn't gated into the \`${model}\` model. Either run \`claude\` with \`ANTHROPIC_MODEL=${getDefaultMainLoopModelSetting()}\``
const msg = orgId const msg = orgId
? `${baseMsg} or share your orgId (${orgId}) in ${MACRO.FEEDBACK_CHANNEL} for help getting access.` ? `${baseMsg} or share your orgId (${orgId}) in ${MACRO.FEEDBACK_CHANNEL} for help getting access.`
: `${baseMsg} or reach out in ${MACRO.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${MACRO.FEEDBACK_CHANNEL} for help getting access.`

View File

@@ -638,14 +638,14 @@ const internalOnlyTips: Tip[] =
{ {
id: 'important-claudemd', id: 'important-claudemd',
content: async () => content: async () =>
'[ANT-ONLY] Use "IMPORTANT:" prefix for must-follow CLAUDE.md rules', '[internal] Use "IMPORTANT:" prefix for must-follow CLAUDE.md rules',
cooldownSessions: 30, cooldownSessions: 30,
isRelevant: async () => true, isRelevant: async () => true,
}, },
{ {
id: 'skillify', id: 'skillify',
content: async () => content: async () =>
'[ANT-ONLY] Use /skillify at the end of a workflow to turn it into a reusable skill', '[internal] Use /skillify at the end of a workflow to turn it into a reusable skill',
cooldownSessions: 15, cooldownSessions: 15,
isRelevant: async () => true, isRelevant: async () => true,
}, },

View File

@@ -387,7 +387,7 @@ export function renderToolResultMessage(data: Output, progressMessagesForMessage
return <Box flexDirection="column"> return <Box flexDirection="column">
{"external" === 'ant' && <MessageResponse> {"external" === 'ant' && <MessageResponse>
<Text color="warning"> <Text color="warning">
[ANT-ONLY] API calls: {getDisplayPath(getDumpPromptsPath(agentId))} [internal] API calls: {getDisplayPath(getDumpPromptsPath(agentId))}
</Text> </Text>
</MessageResponse>} </MessageResponse>}
{isTranscriptMode && prompt && <MessageResponse> {isTranscriptMode && prompt && <MessageResponse>
@@ -593,7 +593,7 @@ export function renderToolUseRejectedMessage(_input: {
return <> return <>
{"external" === 'ant' && agentId && <MessageResponse> {"external" === 'ant' && agentId && <MessageResponse>
<Text color="warning"> <Text color="warning">
[ANT-ONLY] API calls: {getDisplayPath(getDumpPromptsPath(agentId))} [internal] API calls: {getDisplayPath(getDumpPromptsPath(agentId))}
</Text> </Text>
</MessageResponse>} </MessageResponse>}
{renderToolUseProgressMessage(progressMessagesForMessage, { {renderToolUseProgressMessage(progressMessagesForMessage, {

View File

@@ -1023,7 +1023,7 @@ export async function analyzeContextUsage(
cats.push({ cats.push({
name: name:
process.env.USER_TYPE === 'ant' process.env.USER_TYPE === 'ant'
? '[ANT-ONLY] System tools' ? '[internal] System tools'
: 'System tools', : 'System tools',
tokens: systemToolsTokens, tokens: systemToolsTokens,
color: 'inactive', color: 'inactive',

View File

@@ -261,7 +261,7 @@ export function logAntError(context: string, error: unknown): void {
} }
if (error instanceof Error && error.stack) { if (error instanceof Error && error.stack) {
logForDebugging(`[ANT-ONLY] ${context} stack trace:\n${error.stack}`, { logForDebugging(`[internal] ${context} stack trace:\n${error.stack}`, {
level: 'error', level: 'error',
}) })
} }

View File

@@ -359,7 +359,7 @@ function getModelOptionsBase(fastMode = false): ModelOption[] {
const antModelOptions: ModelOption[] = getAntModels().map(m => ({ const antModelOptions: ModelOption[] = getAntModels().map(m => ({
value: m.alias, value: m.alias,
label: m.label, label: m.label,
description: m.description ?? `[ANT-ONLY] ${m.label} (${m.model})`, description: m.description ?? `[internal] ${m.label} (${m.model})`,
})) }))
return [ return [

View File

@@ -274,7 +274,7 @@ async function executeForkedSlashCommand(command: CommandBase & PromptCommand, a
// Prepend debug log for ant users so it appears inside the command output // Prepend debug log for ant users so it appears inside the command output
if ("external" === 'ant') { if ("external" === 'ant') {
resultText = `[ANT-ONLY] API calls: ${getDisplayPath(getDumpPromptsPath(agentId))}\n${resultText}`; resultText = `[internal] API calls: ${getDisplayPath(getDumpPromptsPath(agentId))}\n${resultText}`;
} }
// Return the result as a user message (simulates the agent's output) // Return the result as a user message (simulates the agent's output)

View File

@@ -73,7 +73,7 @@ export function getMacOSPlistPaths(): Array<{ path: string; label: string }> {
'Preferences', 'Preferences',
`${MACOS_PREFERENCE_DOMAIN}.plist`, `${MACOS_PREFERENCE_DOMAIN}.plist`,
), ),
label: 'user preferences (ant-only)', label: 'user preferences (internal-only)',
}) })
} }