MCPcopy Index your code
hub / github.com/ChinaSiro/claude-code-sourcemap / QP

Function QP

package/cli.js:7776–7779  ·  view source on GitHub ↗
(q,K,_,z)

Source from the content-addressed store, hash-verified

7774- Errors or blockers that change the plan
7775
7776If you can say it in one sentence, don't use three. Prefer short, direct sentences over long explanations. This does not apply to code or tool calls.`}function ySY(){let q=["Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.","Your responses should be short and concise.","When referencing specific functions or pieces of code include the pattern file_path:line_number to allow the user to easily navigate to the source code location.","When referencing GitHub issues or pull requests, use the owner/repo#123 format (e.g. anthropics/claude-code#100) so they render as clickable links.",'Do not use a colon before tool calls. Your tool calls may not be shown directly in the output, so text like "Let me read the file:" followed by a read tool call should just be "Let me read the file." with a period.'].filter((K)=>K!==null);return["# Tone and style",...wp(q)].join(`
7777`)}async function QP(q,K,_,z){if(i6(process.env.CLAUDE_CODE_SIMPLE))return[`You are Claude Code, Anthropic's official CLI for Claude.
7778
7779CWD: ${Z8()}
7780Date: ${Jk8()}`];let Y=Z8(),[$,A,O]=await Promise.all([NC(Y),R0K(),QgK(K,_)]),w=N7(),j=new Set(q.map((M)=>M.name)),H=[Yp("session_guidance",()=>VSY(j,$)),Yp("memory",()=>GQ8()),Yp("ant_model_override",()=>MSY()),Yp("env_info_simple",()=>QgK(K,_)),Yp("language",()=>XSY(w.language)),Yp("output_style",()=>PSY(A)),BHK("mcp_instructions",()=>_h6()?null:WSY(z),"MCP servers connect/disconnect between turns"),Yp("scratchpad",()=>RSY()),Yp("frc",()=>hSY(K)),Yp("summarize_tool_results",()=>SSY),Yp("brief",()=>CSY())],J=await gHK(H);return[DSY(A),fSY(),A===null||A.keepCodingInstructions===!0?ZSY():null,GSY(),TSY(j),ySY(),NSY(),...fG6()?[ZH6]:[],...J].filter((M)=>M!==null)}function ESY(q){let _=q.filter((Y)=>Y.type==="connected").filter((Y)=>Y.instructions);if(_.length===0)return null;return`# MCP Server Instructions
7781
7782The following MCP servers have provided instructions for how to use their tools and resources:

Callers 8

YgzFunction · 0.85
F88Function · 0.85
callFunction · 0.85
Up8Function · 0.85
OOYFunction · 0.85
AvKFunction · 0.85
GA7Function · 0.85
cA7Function · 0.85

Calls 15

i6Function · 0.85
Z8Function · 0.85
R0KFunction · 0.85
QgKFunction · 0.85
N7Function · 0.85
YpFunction · 0.85
VSYFunction · 0.85
GQ8Function · 0.85
MSYFunction · 0.85
XSYFunction · 0.85
PSYFunction · 0.85
BHKFunction · 0.85

Tested by

no test coverage detected