MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / aWK

Function aWK

package/cli.js:4262–4367  ·  view source on GitHub ↗
(q)

Source from the content-addressed store, hash-verified

4260`:N3Y);if(q&&q.trim()!=="")z+=`
4261
4262Additional Instructions:
4263${q}`;return z+=rWK,z}function aWK(q){let K=`CRITICAL: Respond with TEXT ONLY. Do NOT call any tools.
4264
4265- Do NOT use Read, Bash, Grep, Glob, Edit, Write, or ANY other tool.
4266- You already have all the context you need in the conversation above.
4267- Tool calls will be REJECTED and will waste your only turn — you will fail the task.
4268- Your entire response must be plain text: an <analysis> block followed by a <summary> block.
4269
4270`+`Your task is to create a detailed summary of the conversation so far, paying close attention to the user's explicit requests and your previous actions.
4271This summary should be thorough in capturing technical details, code patterns, and architectural decisions that would be essential for continuing development work without losing context.
4272
4273Before providing your final summary, wrap your analysis in <analysis> tags to organize your thoughts and ensure you've covered all necessary points. In your analysis process:
4274
42751. Chronologically analyze each message and section of the conversation. For each section thoroughly identify:
4276 - The user's explicit requests and intents
4277 - Your approach to addressing the user's requests
4278 - Key decisions, technical concepts and code patterns
4279 - Specific details like:
4280 - file names
4281 - full code snippets
4282 - function signatures
4283 - file edits
4284 - Errors that you ran into and how you fixed them
4285 - Pay special attention to specific user feedback that you received, especially if the user told you to do something differently.
42862. Double-check for technical accuracy and completeness, addressing each required element thoroughly.
4287
4288Your summary should include the following sections:
4289
42901. Primary Request and Intent: Capture all of the user's explicit requests and intents in detail
42912. Key Technical Concepts: List all important technical concepts, technologies, and frameworks discussed.
42923. Files and Code Sections: Enumerate specific files and code sections examined, modified, or created. Pay special attention to the most recent messages and include full code snippets where applicable and include a summary of why this file read or edit is important.
42934. Errors and fixes: List all errors that you ran into, and how you fixed them. Pay special attention to specific user feedback that you received, especially if the user told you to do something differently.
42945. Problem Solving: Document problems solved and any ongoing troubleshooting efforts.
42956. All user messages: List ALL user messages that are not tool results. These are critical for understanding the users' feedback and changing intent.
42967. Pending Tasks: Outline any pending tasks that you have explicitly been asked to work on.
42978. Current Work: Describe in detail precisely what was being worked on immediately before this summary request, paying special attention to the most recent messages from both user and assistant. Include file names and code snippets where applicable.
42989. Optional Next Step: List the next step that you will take that is related to the most recent work you were doing. IMPORTANT: ensure that this step is DIRECTLY in line with the user's most recent explicit requests, and the task you were working on immediately before this summary request. If your last task was concluded, then only list next steps if they are explicitly in line with the users request. Do not start on tangential requests or really old requests that were already completed without confirming with the user first.
4299 If there is a next step, include direct quotes from the most recent conversation showing exactly what task you were working on and where you left off. This should be verbatim to ensure there's no drift in task interpretation.
4300
4301Here's an example of how your output should be structured:
4302
4303<example>
4304<analysis>
4305[Your thought process, ensuring all points are covered thoroughly and accurately]
4306</analysis>
4307
4308<summary>
43091. Primary Request and Intent:
4310 [Detailed description]
4311
43122. Key Technical Concepts:
4313 - [Concept 1]
4314 - [Concept 2]
4315 - [...]
4316
43173. Files and Code Sections:
4318 - [File Name 1]
4319 - [Summary of why this file is important]

Callers 1

LE6Function · 0.85

Calls 1

trimMethod · 0.45

Tested by

no test coverage detected