MCPcopy Index your code
hub / github.com/codeaashu/claude-code / createSyntheticUserCaveatMessage

Function createSyntheticUserCaveatMessage

src/utils/messages.ts:566–571  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

564 * We need to create a new message each time because messages must have unique uuids.
565 */
566export function createSyntheticUserCaveatMessage(): UserMessage {
567 return createUserMessage({
568 content: `<${LOCAL_COMMAND_CAVEAT_TAG}>Caveat: The messages below were generated by the user while running local commands. DO NOT respond to these messages or otherwise consider them in your response unless the user explicitly asks you to.</${LOCAL_COMMAND_CAVEAT_TAG}>`,
569 isMeta: true,
570 })
571}
572
573/**
574 * Formats the command-input breadcrumb the model sees when a slash command runs.

Callers 4

processSlashCommandFunction · 0.85
processBashCommandFunction · 0.85

Calls 1

createUserMessageFunction · 0.85

Tested by

no test coverage detected