cc-viewer 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/cli.js +7 -0
- package/concepts/ar/BodyDiffJSON.md +32 -0
- package/concepts/ar/CacheRebuild.md +40 -0
- package/concepts/ar/MainAgent.md +30 -0
- package/concepts/ar/Tool-AskUserQuestion.md +54 -0
- package/concepts/ar/Tool-Bash.md +47 -0
- package/concepts/ar/Tool-Edit.md +38 -0
- package/concepts/ar/Tool-EnterPlanMode.md +43 -0
- package/concepts/ar/Tool-ExitPlanMode.md +39 -0
- package/concepts/ar/Tool-Glob.md +34 -0
- package/concepts/ar/Tool-Grep.md +47 -0
- package/concepts/ar/Tool-NotebookEdit.md +33 -0
- package/concepts/ar/Tool-Read.md +41 -0
- package/concepts/ar/Tool-Skill.md +35 -0
- package/concepts/ar/Tool-Task.md +53 -0
- package/concepts/ar/Tool-TaskCreate.md +38 -0
- package/concepts/ar/Tool-TaskGet.md +35 -0
- package/concepts/ar/Tool-TaskList.md +36 -0
- package/concepts/ar/Tool-TaskOutput.md +34 -0
- package/concepts/ar/Tool-TaskStop.md +27 -0
- package/concepts/ar/Tool-TaskUpdate.md +49 -0
- package/concepts/ar/Tool-WebFetch.md +36 -0
- package/concepts/ar/Tool-WebSearch.md +32 -0
- package/concepts/ar/Tool-Write.md +32 -0
- package/concepts/ar/Tool-executeCode.md +33 -0
- package/concepts/ar/Tool-getDiagnostics.md +32 -0
- package/concepts/ar/Tools.md +73 -0
- package/concepts/ar/TranslateContextPollution.md +46 -0
- package/concepts/da/BodyDiffJSON.md +32 -0
- package/concepts/da/CacheRebuild.md +40 -0
- package/concepts/da/MainAgent.md +30 -0
- package/concepts/da/Tool-AskUserQuestion.md +54 -0
- package/concepts/da/Tool-Bash.md +47 -0
- package/concepts/da/Tool-Edit.md +38 -0
- package/concepts/da/Tool-EnterPlanMode.md +43 -0
- package/concepts/da/Tool-ExitPlanMode.md +39 -0
- package/concepts/da/Tool-Glob.md +34 -0
- package/concepts/da/Tool-Grep.md +47 -0
- package/concepts/da/Tool-NotebookEdit.md +33 -0
- package/concepts/da/Tool-Read.md +41 -0
- package/concepts/da/Tool-Skill.md +35 -0
- package/concepts/da/Tool-Task.md +53 -0
- package/concepts/da/Tool-TaskCreate.md +38 -0
- package/concepts/da/Tool-TaskGet.md +35 -0
- package/concepts/da/Tool-TaskList.md +36 -0
- package/concepts/da/Tool-TaskOutput.md +34 -0
- package/concepts/da/Tool-TaskStop.md +27 -0
- package/concepts/da/Tool-TaskUpdate.md +49 -0
- package/concepts/da/Tool-WebFetch.md +36 -0
- package/concepts/da/Tool-WebSearch.md +32 -0
- package/concepts/da/Tool-Write.md +32 -0
- package/concepts/da/Tool-executeCode.md +33 -0
- package/concepts/da/Tool-getDiagnostics.md +32 -0
- package/concepts/da/Tools.md +73 -0
- package/concepts/da/TranslateContextPollution.md +46 -0
- package/concepts/de/BodyDiffJSON.md +32 -0
- package/concepts/de/CacheRebuild.md +40 -0
- package/concepts/de/MainAgent.md +30 -0
- package/concepts/de/Tool-AskUserQuestion.md +54 -0
- package/concepts/de/Tool-Bash.md +47 -0
- package/concepts/de/Tool-Edit.md +38 -0
- package/concepts/de/Tool-EnterPlanMode.md +43 -0
- package/concepts/de/Tool-ExitPlanMode.md +39 -0
- package/concepts/de/Tool-Glob.md +34 -0
- package/concepts/de/Tool-Grep.md +47 -0
- package/concepts/de/Tool-NotebookEdit.md +33 -0
- package/concepts/de/Tool-Read.md +41 -0
- package/concepts/de/Tool-Skill.md +35 -0
- package/concepts/de/Tool-Task.md +53 -0
- package/concepts/de/Tool-TaskCreate.md +38 -0
- package/concepts/de/Tool-TaskGet.md +35 -0
- package/concepts/de/Tool-TaskList.md +36 -0
- package/concepts/de/Tool-TaskOutput.md +34 -0
- package/concepts/de/Tool-TaskStop.md +27 -0
- package/concepts/de/Tool-TaskUpdate.md +49 -0
- package/concepts/de/Tool-WebFetch.md +36 -0
- package/concepts/de/Tool-WebSearch.md +32 -0
- package/concepts/de/Tool-Write.md +32 -0
- package/concepts/de/Tool-executeCode.md +33 -0
- package/concepts/de/Tool-getDiagnostics.md +32 -0
- package/concepts/de/Tools.md +73 -0
- package/concepts/de/TranslateContextPollution.md +46 -0
- package/concepts/en/BodyDiffJSON.md +32 -0
- package/concepts/en/CacheRebuild.md +40 -0
- package/concepts/en/MainAgent.md +30 -0
- package/concepts/en/Tool-AskUserQuestion.md +54 -0
- package/concepts/en/Tool-Bash.md +47 -0
- package/concepts/en/Tool-Edit.md +38 -0
- package/concepts/en/Tool-EnterPlanMode.md +43 -0
- package/concepts/en/Tool-ExitPlanMode.md +39 -0
- package/concepts/en/Tool-Glob.md +34 -0
- package/concepts/en/Tool-Grep.md +47 -0
- package/concepts/en/Tool-NotebookEdit.md +33 -0
- package/concepts/en/Tool-Read.md +41 -0
- package/concepts/en/Tool-Skill.md +35 -0
- package/concepts/en/Tool-Task.md +53 -0
- package/concepts/en/Tool-TaskCreate.md +38 -0
- package/concepts/en/Tool-TaskGet.md +35 -0
- package/concepts/en/Tool-TaskList.md +36 -0
- package/concepts/en/Tool-TaskOutput.md +34 -0
- package/concepts/en/Tool-TaskStop.md +27 -0
- package/concepts/en/Tool-TaskUpdate.md +49 -0
- package/concepts/en/Tool-WebFetch.md +36 -0
- package/concepts/en/Tool-WebSearch.md +32 -0
- package/concepts/en/Tool-Write.md +32 -0
- package/concepts/en/Tool-executeCode.md +33 -0
- package/concepts/en/Tool-getDiagnostics.md +32 -0
- package/concepts/en/Tools.md +73 -0
- package/concepts/en/TranslateContextPollution.md +46 -0
- package/concepts/es/BodyDiffJSON.md +32 -0
- package/concepts/es/CacheRebuild.md +40 -0
- package/concepts/es/MainAgent.md +30 -0
- package/concepts/es/Tool-AskUserQuestion.md +54 -0
- package/concepts/es/Tool-Bash.md +47 -0
- package/concepts/es/Tool-Edit.md +38 -0
- package/concepts/es/Tool-EnterPlanMode.md +43 -0
- package/concepts/es/Tool-ExitPlanMode.md +39 -0
- package/concepts/es/Tool-Glob.md +34 -0
- package/concepts/es/Tool-Grep.md +47 -0
- package/concepts/es/Tool-NotebookEdit.md +33 -0
- package/concepts/es/Tool-Read.md +41 -0
- package/concepts/es/Tool-Skill.md +35 -0
- package/concepts/es/Tool-Task.md +53 -0
- package/concepts/es/Tool-TaskCreate.md +38 -0
- package/concepts/es/Tool-TaskGet.md +35 -0
- package/concepts/es/Tool-TaskList.md +36 -0
- package/concepts/es/Tool-TaskOutput.md +34 -0
- package/concepts/es/Tool-TaskStop.md +27 -0
- package/concepts/es/Tool-TaskUpdate.md +49 -0
- package/concepts/es/Tool-WebFetch.md +36 -0
- package/concepts/es/Tool-WebSearch.md +32 -0
- package/concepts/es/Tool-Write.md +32 -0
- package/concepts/es/Tool-executeCode.md +33 -0
- package/concepts/es/Tool-getDiagnostics.md +32 -0
- package/concepts/es/Tools.md +73 -0
- package/concepts/es/TranslateContextPollution.md +46 -0
- package/concepts/fr/BodyDiffJSON.md +32 -0
- package/concepts/fr/CacheRebuild.md +40 -0
- package/concepts/fr/MainAgent.md +30 -0
- package/concepts/fr/Tool-AskUserQuestion.md +54 -0
- package/concepts/fr/Tool-Bash.md +47 -0
- package/concepts/fr/Tool-Edit.md +38 -0
- package/concepts/fr/Tool-EnterPlanMode.md +43 -0
- package/concepts/fr/Tool-ExitPlanMode.md +39 -0
- package/concepts/fr/Tool-Glob.md +34 -0
- package/concepts/fr/Tool-Grep.md +47 -0
- package/concepts/fr/Tool-NotebookEdit.md +33 -0
- package/concepts/fr/Tool-Read.md +41 -0
- package/concepts/fr/Tool-Skill.md +35 -0
- package/concepts/fr/Tool-Task.md +53 -0
- package/concepts/fr/Tool-TaskCreate.md +38 -0
- package/concepts/fr/Tool-TaskGet.md +35 -0
- package/concepts/fr/Tool-TaskList.md +36 -0
- package/concepts/fr/Tool-TaskOutput.md +34 -0
- package/concepts/fr/Tool-TaskStop.md +27 -0
- package/concepts/fr/Tool-TaskUpdate.md +49 -0
- package/concepts/fr/Tool-WebFetch.md +36 -0
- package/concepts/fr/Tool-WebSearch.md +32 -0
- package/concepts/fr/Tool-Write.md +32 -0
- package/concepts/fr/Tool-executeCode.md +33 -0
- package/concepts/fr/Tool-getDiagnostics.md +32 -0
- package/concepts/fr/Tools.md +73 -0
- package/concepts/fr/TranslateContextPollution.md +46 -0
- package/concepts/it/BodyDiffJSON.md +32 -0
- package/concepts/it/CacheRebuild.md +40 -0
- package/concepts/it/MainAgent.md +30 -0
- package/concepts/it/Tool-AskUserQuestion.md +54 -0
- package/concepts/it/Tool-Bash.md +47 -0
- package/concepts/it/Tool-Edit.md +38 -0
- package/concepts/it/Tool-EnterPlanMode.md +43 -0
- package/concepts/it/Tool-ExitPlanMode.md +39 -0
- package/concepts/it/Tool-Glob.md +34 -0
- package/concepts/it/Tool-Grep.md +47 -0
- package/concepts/it/Tool-NotebookEdit.md +33 -0
- package/concepts/it/Tool-Read.md +41 -0
- package/concepts/it/Tool-Skill.md +35 -0
- package/concepts/it/Tool-Task.md +53 -0
- package/concepts/it/Tool-TaskCreate.md +38 -0
- package/concepts/it/Tool-TaskGet.md +35 -0
- package/concepts/it/Tool-TaskList.md +36 -0
- package/concepts/it/Tool-TaskOutput.md +34 -0
- package/concepts/it/Tool-TaskStop.md +27 -0
- package/concepts/it/Tool-TaskUpdate.md +49 -0
- package/concepts/it/Tool-WebFetch.md +36 -0
- package/concepts/it/Tool-WebSearch.md +32 -0
- package/concepts/it/Tool-Write.md +32 -0
- package/concepts/it/Tool-executeCode.md +33 -0
- package/concepts/it/Tool-getDiagnostics.md +32 -0
- package/concepts/it/Tools.md +73 -0
- package/concepts/it/TranslateContextPollution.md +46 -0
- package/concepts/ja/BodyDiffJSON.md +32 -0
- package/concepts/ja/CacheRebuild.md +40 -0
- package/concepts/ja/MainAgent.md +30 -0
- package/concepts/ja/Tool-AskUserQuestion.md +54 -0
- package/concepts/ja/Tool-Bash.md +47 -0
- package/concepts/ja/Tool-Edit.md +38 -0
- package/concepts/ja/Tool-EnterPlanMode.md +43 -0
- package/concepts/ja/Tool-ExitPlanMode.md +39 -0
- package/concepts/ja/Tool-Glob.md +34 -0
- package/concepts/ja/Tool-Grep.md +47 -0
- package/concepts/ja/Tool-NotebookEdit.md +33 -0
- package/concepts/ja/Tool-Read.md +41 -0
- package/concepts/ja/Tool-Skill.md +35 -0
- package/concepts/ja/Tool-Task.md +53 -0
- package/concepts/ja/Tool-TaskCreate.md +38 -0
- package/concepts/ja/Tool-TaskGet.md +35 -0
- package/concepts/ja/Tool-TaskList.md +36 -0
- package/concepts/ja/Tool-TaskOutput.md +34 -0
- package/concepts/ja/Tool-TaskStop.md +27 -0
- package/concepts/ja/Tool-TaskUpdate.md +49 -0
- package/concepts/ja/Tool-WebFetch.md +36 -0
- package/concepts/ja/Tool-WebSearch.md +32 -0
- package/concepts/ja/Tool-Write.md +32 -0
- package/concepts/ja/Tool-executeCode.md +33 -0
- package/concepts/ja/Tool-getDiagnostics.md +32 -0
- package/concepts/ja/Tools.md +73 -0
- package/concepts/ja/TranslateContextPollution.md +46 -0
- package/concepts/ko/BodyDiffJSON.md +32 -0
- package/concepts/ko/CacheRebuild.md +40 -0
- package/concepts/ko/MainAgent.md +30 -0
- package/concepts/ko/Tool-AskUserQuestion.md +54 -0
- package/concepts/ko/Tool-Bash.md +47 -0
- package/concepts/ko/Tool-Edit.md +38 -0
- package/concepts/ko/Tool-EnterPlanMode.md +43 -0
- package/concepts/ko/Tool-ExitPlanMode.md +39 -0
- package/concepts/ko/Tool-Glob.md +34 -0
- package/concepts/ko/Tool-Grep.md +47 -0
- package/concepts/ko/Tool-NotebookEdit.md +33 -0
- package/concepts/ko/Tool-Read.md +41 -0
- package/concepts/ko/Tool-Skill.md +35 -0
- package/concepts/ko/Tool-Task.md +53 -0
- package/concepts/ko/Tool-TaskCreate.md +38 -0
- package/concepts/ko/Tool-TaskGet.md +35 -0
- package/concepts/ko/Tool-TaskList.md +36 -0
- package/concepts/ko/Tool-TaskOutput.md +34 -0
- package/concepts/ko/Tool-TaskStop.md +27 -0
- package/concepts/ko/Tool-TaskUpdate.md +49 -0
- package/concepts/ko/Tool-WebFetch.md +36 -0
- package/concepts/ko/Tool-WebSearch.md +32 -0
- package/concepts/ko/Tool-Write.md +32 -0
- package/concepts/ko/Tool-executeCode.md +33 -0
- package/concepts/ko/Tool-getDiagnostics.md +32 -0
- package/concepts/ko/Tools.md +73 -0
- package/concepts/ko/TranslateContextPollution.md +46 -0
- package/concepts/no/BodyDiffJSON.md +32 -0
- package/concepts/no/CacheRebuild.md +40 -0
- package/concepts/no/MainAgent.md +30 -0
- package/concepts/no/Tool-AskUserQuestion.md +54 -0
- package/concepts/no/Tool-Bash.md +47 -0
- package/concepts/no/Tool-Edit.md +38 -0
- package/concepts/no/Tool-EnterPlanMode.md +43 -0
- package/concepts/no/Tool-ExitPlanMode.md +39 -0
- package/concepts/no/Tool-Glob.md +34 -0
- package/concepts/no/Tool-Grep.md +47 -0
- package/concepts/no/Tool-NotebookEdit.md +33 -0
- package/concepts/no/Tool-Read.md +41 -0
- package/concepts/no/Tool-Skill.md +35 -0
- package/concepts/no/Tool-Task.md +53 -0
- package/concepts/no/Tool-TaskCreate.md +38 -0
- package/concepts/no/Tool-TaskGet.md +35 -0
- package/concepts/no/Tool-TaskList.md +36 -0
- package/concepts/no/Tool-TaskOutput.md +34 -0
- package/concepts/no/Tool-TaskStop.md +27 -0
- package/concepts/no/Tool-TaskUpdate.md +49 -0
- package/concepts/no/Tool-WebFetch.md +36 -0
- package/concepts/no/Tool-WebSearch.md +32 -0
- package/concepts/no/Tool-Write.md +32 -0
- package/concepts/no/Tool-executeCode.md +33 -0
- package/concepts/no/Tool-getDiagnostics.md +32 -0
- package/concepts/no/Tools.md +73 -0
- package/concepts/no/TranslateContextPollution.md +46 -0
- package/concepts/pl/BodyDiffJSON.md +32 -0
- package/concepts/pl/CacheRebuild.md +40 -0
- package/concepts/pl/MainAgent.md +30 -0
- package/concepts/pl/Tool-AskUserQuestion.md +54 -0
- package/concepts/pl/Tool-Bash.md +47 -0
- package/concepts/pl/Tool-Edit.md +38 -0
- package/concepts/pl/Tool-EnterPlanMode.md +43 -0
- package/concepts/pl/Tool-ExitPlanMode.md +39 -0
- package/concepts/pl/Tool-Glob.md +34 -0
- package/concepts/pl/Tool-Grep.md +47 -0
- package/concepts/pl/Tool-NotebookEdit.md +33 -0
- package/concepts/pl/Tool-Read.md +41 -0
- package/concepts/pl/Tool-Skill.md +35 -0
- package/concepts/pl/Tool-Task.md +53 -0
- package/concepts/pl/Tool-TaskCreate.md +38 -0
- package/concepts/pl/Tool-TaskGet.md +35 -0
- package/concepts/pl/Tool-TaskList.md +36 -0
- package/concepts/pl/Tool-TaskOutput.md +34 -0
- package/concepts/pl/Tool-TaskStop.md +27 -0
- package/concepts/pl/Tool-TaskUpdate.md +49 -0
- package/concepts/pl/Tool-WebFetch.md +36 -0
- package/concepts/pl/Tool-WebSearch.md +32 -0
- package/concepts/pl/Tool-Write.md +32 -0
- package/concepts/pl/Tool-executeCode.md +33 -0
- package/concepts/pl/Tool-getDiagnostics.md +32 -0
- package/concepts/pl/Tools.md +73 -0
- package/concepts/pl/TranslateContextPollution.md +46 -0
- package/concepts/pt-BR/BodyDiffJSON.md +32 -0
- package/concepts/pt-BR/CacheRebuild.md +40 -0
- package/concepts/pt-BR/MainAgent.md +30 -0
- package/concepts/pt-BR/Tool-AskUserQuestion.md +54 -0
- package/concepts/pt-BR/Tool-Bash.md +47 -0
- package/concepts/pt-BR/Tool-Edit.md +38 -0
- package/concepts/pt-BR/Tool-EnterPlanMode.md +43 -0
- package/concepts/pt-BR/Tool-ExitPlanMode.md +39 -0
- package/concepts/pt-BR/Tool-Glob.md +34 -0
- package/concepts/pt-BR/Tool-Grep.md +47 -0
- package/concepts/pt-BR/Tool-NotebookEdit.md +33 -0
- package/concepts/pt-BR/Tool-Read.md +41 -0
- package/concepts/pt-BR/Tool-Skill.md +35 -0
- package/concepts/pt-BR/Tool-Task.md +53 -0
- package/concepts/pt-BR/Tool-TaskCreate.md +38 -0
- package/concepts/pt-BR/Tool-TaskGet.md +35 -0
- package/concepts/pt-BR/Tool-TaskList.md +36 -0
- package/concepts/pt-BR/Tool-TaskOutput.md +34 -0
- package/concepts/pt-BR/Tool-TaskStop.md +27 -0
- package/concepts/pt-BR/Tool-TaskUpdate.md +49 -0
- package/concepts/pt-BR/Tool-WebFetch.md +36 -0
- package/concepts/pt-BR/Tool-WebSearch.md +32 -0
- package/concepts/pt-BR/Tool-Write.md +32 -0
- package/concepts/pt-BR/Tool-executeCode.md +33 -0
- package/concepts/pt-BR/Tool-getDiagnostics.md +32 -0
- package/concepts/pt-BR/Tools.md +73 -0
- package/concepts/pt-BR/TranslateContextPollution.md +46 -0
- package/concepts/ru/BodyDiffJSON.md +32 -0
- package/concepts/ru/CacheRebuild.md +40 -0
- package/concepts/ru/MainAgent.md +30 -0
- package/concepts/ru/Tool-AskUserQuestion.md +54 -0
- package/concepts/ru/Tool-Bash.md +47 -0
- package/concepts/ru/Tool-Edit.md +38 -0
- package/concepts/ru/Tool-EnterPlanMode.md +43 -0
- package/concepts/ru/Tool-ExitPlanMode.md +39 -0
- package/concepts/ru/Tool-Glob.md +34 -0
- package/concepts/ru/Tool-Grep.md +47 -0
- package/concepts/ru/Tool-NotebookEdit.md +33 -0
- package/concepts/ru/Tool-Read.md +41 -0
- package/concepts/ru/Tool-Skill.md +35 -0
- package/concepts/ru/Tool-Task.md +53 -0
- package/concepts/ru/Tool-TaskCreate.md +38 -0
- package/concepts/ru/Tool-TaskGet.md +35 -0
- package/concepts/ru/Tool-TaskList.md +36 -0
- package/concepts/ru/Tool-TaskOutput.md +34 -0
- package/concepts/ru/Tool-TaskStop.md +27 -0
- package/concepts/ru/Tool-TaskUpdate.md +49 -0
- package/concepts/ru/Tool-WebFetch.md +36 -0
- package/concepts/ru/Tool-WebSearch.md +32 -0
- package/concepts/ru/Tool-Write.md +32 -0
- package/concepts/ru/Tool-executeCode.md +33 -0
- package/concepts/ru/Tool-getDiagnostics.md +32 -0
- package/concepts/ru/Tools.md +73 -0
- package/concepts/ru/TranslateContextPollution.md +46 -0
- package/concepts/th/BodyDiffJSON.md +32 -0
- package/concepts/th/CacheRebuild.md +40 -0
- package/concepts/th/MainAgent.md +30 -0
- package/concepts/th/Tool-AskUserQuestion.md +54 -0
- package/concepts/th/Tool-Bash.md +47 -0
- package/concepts/th/Tool-Edit.md +38 -0
- package/concepts/th/Tool-EnterPlanMode.md +43 -0
- package/concepts/th/Tool-ExitPlanMode.md +39 -0
- package/concepts/th/Tool-Glob.md +34 -0
- package/concepts/th/Tool-Grep.md +47 -0
- package/concepts/th/Tool-NotebookEdit.md +33 -0
- package/concepts/th/Tool-Read.md +41 -0
- package/concepts/th/Tool-Skill.md +35 -0
- package/concepts/th/Tool-Task.md +53 -0
- package/concepts/th/Tool-TaskCreate.md +38 -0
- package/concepts/th/Tool-TaskGet.md +35 -0
- package/concepts/th/Tool-TaskList.md +36 -0
- package/concepts/th/Tool-TaskOutput.md +34 -0
- package/concepts/th/Tool-TaskStop.md +27 -0
- package/concepts/th/Tool-TaskUpdate.md +49 -0
- package/concepts/th/Tool-WebFetch.md +36 -0
- package/concepts/th/Tool-WebSearch.md +32 -0
- package/concepts/th/Tool-Write.md +32 -0
- package/concepts/th/Tool-executeCode.md +33 -0
- package/concepts/th/Tool-getDiagnostics.md +32 -0
- package/concepts/th/Tools.md +73 -0
- package/concepts/th/TranslateContextPollution.md +46 -0
- package/concepts/tr/BodyDiffJSON.md +32 -0
- package/concepts/tr/CacheRebuild.md +40 -0
- package/concepts/tr/MainAgent.md +30 -0
- package/concepts/tr/Tool-AskUserQuestion.md +54 -0
- package/concepts/tr/Tool-Bash.md +47 -0
- package/concepts/tr/Tool-Edit.md +38 -0
- package/concepts/tr/Tool-EnterPlanMode.md +43 -0
- package/concepts/tr/Tool-ExitPlanMode.md +39 -0
- package/concepts/tr/Tool-Glob.md +34 -0
- package/concepts/tr/Tool-Grep.md +47 -0
- package/concepts/tr/Tool-NotebookEdit.md +33 -0
- package/concepts/tr/Tool-Read.md +41 -0
- package/concepts/tr/Tool-Skill.md +35 -0
- package/concepts/tr/Tool-Task.md +53 -0
- package/concepts/tr/Tool-TaskCreate.md +38 -0
- package/concepts/tr/Tool-TaskGet.md +35 -0
- package/concepts/tr/Tool-TaskList.md +36 -0
- package/concepts/tr/Tool-TaskOutput.md +34 -0
- package/concepts/tr/Tool-TaskStop.md +27 -0
- package/concepts/tr/Tool-TaskUpdate.md +49 -0
- package/concepts/tr/Tool-WebFetch.md +36 -0
- package/concepts/tr/Tool-WebSearch.md +32 -0
- package/concepts/tr/Tool-Write.md +32 -0
- package/concepts/tr/Tool-executeCode.md +33 -0
- package/concepts/tr/Tool-getDiagnostics.md +32 -0
- package/concepts/tr/Tools.md +73 -0
- package/concepts/tr/TranslateContextPollution.md +46 -0
- package/concepts/uk/BodyDiffJSON.md +32 -0
- package/concepts/uk/CacheRebuild.md +40 -0
- package/concepts/uk/MainAgent.md +30 -0
- package/concepts/uk/Tool-AskUserQuestion.md +54 -0
- package/concepts/uk/Tool-Bash.md +47 -0
- package/concepts/uk/Tool-Edit.md +38 -0
- package/concepts/uk/Tool-EnterPlanMode.md +43 -0
- package/concepts/uk/Tool-ExitPlanMode.md +39 -0
- package/concepts/uk/Tool-Glob.md +34 -0
- package/concepts/uk/Tool-Grep.md +47 -0
- package/concepts/uk/Tool-NotebookEdit.md +33 -0
- package/concepts/uk/Tool-Read.md +41 -0
- package/concepts/uk/Tool-Skill.md +35 -0
- package/concepts/uk/Tool-Task.md +53 -0
- package/concepts/uk/Tool-TaskCreate.md +38 -0
- package/concepts/uk/Tool-TaskGet.md +35 -0
- package/concepts/uk/Tool-TaskList.md +36 -0
- package/concepts/uk/Tool-TaskOutput.md +34 -0
- package/concepts/uk/Tool-TaskStop.md +27 -0
- package/concepts/uk/Tool-TaskUpdate.md +49 -0
- package/concepts/uk/Tool-WebFetch.md +36 -0
- package/concepts/uk/Tool-WebSearch.md +32 -0
- package/concepts/uk/Tool-Write.md +32 -0
- package/concepts/uk/Tool-executeCode.md +33 -0
- package/concepts/uk/Tool-getDiagnostics.md +32 -0
- package/concepts/uk/Tools.md +73 -0
- package/concepts/uk/TranslateContextPollution.md +46 -0
- package/concepts/zh/BodyDiffJSON.md +32 -0
- package/concepts/zh/CacheRebuild.md +40 -0
- package/concepts/zh/MainAgent.md +30 -0
- package/concepts/zh/Tool-AskUserQuestion.md +54 -0
- package/concepts/zh/Tool-Bash.md +47 -0
- package/concepts/zh/Tool-Edit.md +38 -0
- package/concepts/zh/Tool-EnterPlanMode.md +43 -0
- package/concepts/zh/Tool-ExitPlanMode.md +39 -0
- package/concepts/zh/Tool-Glob.md +34 -0
- package/concepts/zh/Tool-Grep.md +47 -0
- package/concepts/zh/Tool-NotebookEdit.md +33 -0
- package/concepts/zh/Tool-Read.md +41 -0
- package/concepts/zh/Tool-Skill.md +35 -0
- package/concepts/zh/Tool-Task.md +53 -0
- package/concepts/zh/Tool-TaskCreate.md +38 -0
- package/concepts/zh/Tool-TaskGet.md +35 -0
- package/concepts/zh/Tool-TaskList.md +36 -0
- package/concepts/zh/Tool-TaskOutput.md +34 -0
- package/concepts/zh/Tool-TaskStop.md +27 -0
- package/concepts/zh/Tool-TaskUpdate.md +49 -0
- package/concepts/zh/Tool-WebFetch.md +36 -0
- package/concepts/zh/Tool-WebSearch.md +32 -0
- package/concepts/zh/Tool-Write.md +32 -0
- package/concepts/zh/Tool-executeCode.md +33 -0
- package/concepts/zh/Tool-getDiagnostics.md +32 -0
- package/concepts/zh/Tools.md +73 -0
- package/concepts/zh/TranslateContextPollution.md +47 -0
- package/concepts/zh-TW/BodyDiffJSON.md +32 -0
- package/concepts/zh-TW/CacheRebuild.md +40 -0
- package/concepts/zh-TW/MainAgent.md +30 -0
- package/concepts/zh-TW/Tool-AskUserQuestion.md +54 -0
- package/concepts/zh-TW/Tool-Bash.md +47 -0
- package/concepts/zh-TW/Tool-Edit.md +38 -0
- package/concepts/zh-TW/Tool-EnterPlanMode.md +43 -0
- package/concepts/zh-TW/Tool-ExitPlanMode.md +39 -0
- package/concepts/zh-TW/Tool-Glob.md +34 -0
- package/concepts/zh-TW/Tool-Grep.md +47 -0
- package/concepts/zh-TW/Tool-NotebookEdit.md +33 -0
- package/concepts/zh-TW/Tool-Read.md +41 -0
- package/concepts/zh-TW/Tool-Skill.md +35 -0
- package/concepts/zh-TW/Tool-Task.md +53 -0
- package/concepts/zh-TW/Tool-TaskCreate.md +38 -0
- package/concepts/zh-TW/Tool-TaskGet.md +35 -0
- package/concepts/zh-TW/Tool-TaskList.md +36 -0
- package/concepts/zh-TW/Tool-TaskOutput.md +34 -0
- package/concepts/zh-TW/Tool-TaskStop.md +27 -0
- package/concepts/zh-TW/Tool-TaskUpdate.md +49 -0
- package/concepts/zh-TW/Tool-WebFetch.md +36 -0
- package/concepts/zh-TW/Tool-WebSearch.md +32 -0
- package/concepts/zh-TW/Tool-Write.md +32 -0
- package/concepts/zh-TW/Tool-executeCode.md +33 -0
- package/concepts/zh-TW/Tool-getDiagnostics.md +32 -0
- package/concepts/zh-TW/Tools.md +73 -0
- package/concepts/zh-TW/TranslateContextPollution.md +46 -0
- package/dist/assets/{index-DjCjusqk.js → index-CSuPDSgh.js} +45 -45
- package/dist/index.html +1 -1
- package/interceptor.js +19 -4
- package/package.json +3 -2
- package/server.js +15 -14
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# getDiagnostics (mcp__ide__getDiagnostics)
|
|
2
|
+
|
|
3
|
+
## Definition
|
|
4
|
+
|
|
5
|
+
Ruft Sprachdiagnoseinformationen von VS Code ab, einschließlich Syntaxfehler, Typfehler, Lint-Warnungen usw.
|
|
6
|
+
|
|
7
|
+
## Parameter
|
|
8
|
+
|
|
9
|
+
| Parameter | Typ | Erforderlich | Beschreibung |
|
|
10
|
+
|-----------|-----|--------------|--------------|
|
|
11
|
+
| `uri` | string | Nein | Datei-URI. Wenn nicht angegeben, werden Diagnoseinformationen aller Dateien abgerufen |
|
|
12
|
+
|
|
13
|
+
## Anwendungsfälle
|
|
14
|
+
|
|
15
|
+
**Geeignet für:**
|
|
16
|
+
- Syntax-, Typ-, Lint- und andere semantische Probleme im Code prüfen
|
|
17
|
+
- Nach Codebearbeitung überprüfen, ob neue Fehler eingeführt wurden
|
|
18
|
+
- Als Alternative zu Bash-Befehlen zur Codequalitätsprüfung
|
|
19
|
+
|
|
20
|
+
**Nicht geeignet für:**
|
|
21
|
+
- Tests ausführen – dafür Bash verwenden
|
|
22
|
+
- Laufzeitfehler prüfen – dafür Code über Bash ausführen
|
|
23
|
+
|
|
24
|
+
## Hinweise
|
|
25
|
+
|
|
26
|
+
- Dies ist ein MCP-Tool (Model Context Protocol), bereitgestellt durch die IDE-Integration
|
|
27
|
+
- Nur in VS Code / IDE-Umgebungen verfügbar
|
|
28
|
+
- Dieses Tool gegenüber Bash-Befehlen zur Codeprüfung bevorzugen
|
|
29
|
+
|
|
30
|
+
## Bedeutung in cc-viewer
|
|
31
|
+
|
|
32
|
+
getDiagnostics ist ein MCP-Tool und erscheint im `tools`-Array des Anfrage-Logs unter dem Namen `mcp__ide__getDiagnostics`. Aufrufe und Rückgaben folgen dem Standard-`tool_use` / `tool_result`-Muster. Änderungen an MCP-Tools führen zu Änderungen im tools-Array und können einen Cache-Neuaufbau auslösen.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Claude Code Tool-Übersicht
|
|
2
|
+
|
|
3
|
+
Claude Code stellt dem Modell über den tool_use-Mechanismus der Anthropic API eine Reihe integrierter Tools zur Verfügung. Das `tools`-Array jeder MainAgent-Anfrage enthält die vollständigen JSON-Schema-Definitionen dieser Tools, und das Modell ruft sie in der Antwort über `tool_use` Content Blocks auf.
|
|
4
|
+
|
|
5
|
+
Im Folgenden finden Sie den kategorisierten Index aller Tools.
|
|
6
|
+
|
|
7
|
+
## Agent-System
|
|
8
|
+
|
|
9
|
+
| Tool | Zweck |
|
|
10
|
+
|------|-------|
|
|
11
|
+
| [Task](Tool-Task.md) | Startet einen Sub-Agent (SubAgent) für komplexe mehrstufige Aufgaben |
|
|
12
|
+
| [TaskOutput](Tool-TaskOutput.md) | Ruft die Ausgabe von Hintergrundaufgaben ab |
|
|
13
|
+
| [TaskStop](Tool-TaskStop.md) | Stoppt eine laufende Hintergrundaufgabe |
|
|
14
|
+
| [TaskCreate](Tool-TaskCreate.md) | Erstellt einen strukturierten Aufgabenlisteneintrag |
|
|
15
|
+
| [TaskGet](Tool-TaskGet.md) | Ruft Aufgabendetails ab |
|
|
16
|
+
| [TaskUpdate](Tool-TaskUpdate.md) | Aktualisiert Aufgabenstatus, Abhängigkeiten usw. |
|
|
17
|
+
| [TaskList](Tool-TaskList.md) | Listet alle Aufgaben auf |
|
|
18
|
+
|
|
19
|
+
## Dateioperationen
|
|
20
|
+
|
|
21
|
+
| Tool | Zweck |
|
|
22
|
+
|------|-------|
|
|
23
|
+
| [Read](Tool-Read.md) | Liest Dateiinhalte (unterstützt Text, Bilder, PDF, Jupyter Notebook) |
|
|
24
|
+
| [Edit](Tool-Edit.md) | Bearbeitet Dateien durch exakte Zeichenkettenersetzung |
|
|
25
|
+
| [Write](Tool-Write.md) | Schreibt oder überschreibt Dateien |
|
|
26
|
+
| [NotebookEdit](Tool-NotebookEdit.md) | Bearbeitet Jupyter-Notebook-Zellen |
|
|
27
|
+
|
|
28
|
+
## Suche
|
|
29
|
+
|
|
30
|
+
| Tool | Zweck |
|
|
31
|
+
|------|-------|
|
|
32
|
+
| [Glob](Tool-Glob.md) | Sucht Dateien nach Dateinamenmustern |
|
|
33
|
+
| [Grep](Tool-Grep.md) | Dateiinhaltssuche basierend auf ripgrep |
|
|
34
|
+
|
|
35
|
+
## Terminal
|
|
36
|
+
|
|
37
|
+
| Tool | Zweck |
|
|
38
|
+
|------|-------|
|
|
39
|
+
| [Bash](Tool-Bash.md) | Führt Shell-Befehle aus |
|
|
40
|
+
|
|
41
|
+
## Web
|
|
42
|
+
|
|
43
|
+
| Tool | Zweck |
|
|
44
|
+
|------|-------|
|
|
45
|
+
| [WebFetch](Tool-WebFetch.md) | Ruft Webinhalte ab und verarbeitet sie mit KI |
|
|
46
|
+
| [WebSearch](Tool-WebSearch.md) | Suchmaschinenabfrage |
|
|
47
|
+
|
|
48
|
+
## Planung und Interaktion
|
|
49
|
+
|
|
50
|
+
| Tool | Zweck |
|
|
51
|
+
|------|-------|
|
|
52
|
+
| [EnterPlanMode](Tool-EnterPlanMode.md) | Wechselt in den Planungsmodus zur Entwurfsplanung |
|
|
53
|
+
| [ExitPlanMode](Tool-ExitPlanMode.md) | Verlässt den Planungsmodus und reicht den Plan zur Benutzerfreigabe ein |
|
|
54
|
+
| [AskUserQuestion](Tool-AskUserQuestion.md) | Stellt dem Benutzer Fragen zur Klärung oder Entscheidungsfindung |
|
|
55
|
+
|
|
56
|
+
## Erweiterungen
|
|
57
|
+
|
|
58
|
+
| Tool | Zweck |
|
|
59
|
+
|------|-------|
|
|
60
|
+
| [Skill](Tool-Skill.md) | Führt einen Skill (Slash Command) aus |
|
|
61
|
+
|
|
62
|
+
## IDE-Integration
|
|
63
|
+
|
|
64
|
+
| Tool | Zweck |
|
|
65
|
+
|------|-------|
|
|
66
|
+
| [getDiagnostics](Tool-getDiagnostics.md) | Ruft VS Code Sprachdiagnoseinformationen ab |
|
|
67
|
+
| [executeCode](Tool-executeCode.md) | Führt Code im Jupyter-Kernel aus |
|
|
68
|
+
|
|
69
|
+
## Bedeutung in cc-viewer
|
|
70
|
+
|
|
71
|
+
Tool-Aufrufe gehören zu den wichtigsten beobachtbaren Daten in den Claude Code Anfrage-Logs. Das `tools`-Array jeder MainAgent-Anfrage definiert die verfügbaren Tools des Modells, während die `tool_use` / `tool_result` Content Blocks in der Antwort die tatsächlichen Tool-Aufrufe und Rückgaben aufzeichnen. cc-viewer analysiert diese Daten und rekonstruiert im Chat Mode die vollständige Tool-Aufrufkette.
|
|
72
|
+
|
|
73
|
+
Änderungen an Tool-Definitionen (z.B. durch MCP-Server-Verbindung/-Trennung verursachte Tool-Änderungen) lösen einen Cache-Neuaufbau aus, siehe [CacheRebuild](CacheRebuild.md).
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Kontextverschmutzung der Übersetzungs-API
|
|
2
|
+
|
|
3
|
+
## Hintergrund
|
|
4
|
+
|
|
5
|
+
CC-Viewer enthält eine integrierte Übersetzungsfunktion (`POST /api/translate`), die von der Anthropic Messages API angetrieben wird. In der frühen Implementierung verwendeten Übersetzungsanfragen die zwischengespeicherten Authentifizierungsdaten der Claude Code-Sitzung wieder — einschließlich der Header `x-api-key` und `authorization`. Dies verursachte ein subtiles, aber schwerwiegendes Problem: Übersetzungsergebnisse lieferten häufig irrelevante Inhalte zurück.
|
|
6
|
+
|
|
7
|
+
## Ursache
|
|
8
|
+
|
|
9
|
+
### Grundlegender Unterschied zwischen zwei Authentifizierungsmethoden
|
|
10
|
+
|
|
11
|
+
Die Anthropic API unterstützt zwei Authentifizierungsmethoden:
|
|
12
|
+
|
|
13
|
+
| Methode | Header | Typische Quelle | Eigenschaften |
|
|
14
|
+
|---------|--------|-----------------|---------------|
|
|
15
|
+
| API-Schlüssel | `x-api-key: sk-ant-...` | Umgebungsvariable / Console | Zustandslos, jede Anfrage ist unabhängig |
|
|
16
|
+
| OAuth-Token | `authorization: Bearer sessionToken` | Claude Code-Abonnement-Login | Sitzungsgebunden, Server pflegt Kontextzuordnung |
|
|
17
|
+
|
|
18
|
+
Der entscheidende Unterschied: **API-Schlüssel sind zustandslos** — jede Anfrage ist vollständig unabhängig; während **OAuth-Sitzungstoken zustandsbehaftet sind** — der Anthropic-Server ordnet Anfragen mit demselben Token demselben Sitzungskontext zu.
|
|
19
|
+
|
|
20
|
+
### Verschmutzungskette
|
|
21
|
+
|
|
22
|
+
Wenn Claude Code die OAuth-Anmeldung über ein Abonnement verwendet, sieht der Authentifizierungsfluss folgendermaßen aus:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
Claude Code Hauptkonversation ──(authorization: Bearer sessionToken)──→ Anthropic API
|
|
26
|
+
↑
|
|
27
|
+
CC-Viewer Übersetzungsanfrage ──(authorization: Bearer sessionToken)──→ Anthropic API
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Da Übersetzungsanfragen dasselbe Sitzungstoken wiederverwendeten, konnte der Anthropic-Server Übersetzungsanfragen mit dem Hauptkonversationskontext von Claude Code verknüpfen. Dies führt zu:
|
|
31
|
+
|
|
32
|
+
1. **Übersetzungsergebnisse werden vom Hauptkonversationskontext beeinflusst**: Der Systemprompt der Übersetzungsanfrage lautet „Du bist ein Übersetzer", aber der Serverkontext enthält weiterhin den Gesprächsverlauf von Claude Code, was das Modell beeinträchtigen kann
|
|
33
|
+
2. **Hauptkonversation wird durch Übersetzungsanfragen gestört**: Inhalte der Übersetzungsanfrage (UI-Textfragmente) können in den Hauptkonversationskontext injiziert werden, wodurch die Antworten von Claude Code abweichen
|
|
34
|
+
3. **Unvorhersehbares Verhalten**: Da die Kontextverschmutzung serverseitiges Verhalten ist, kann der Client sie weder erkennen noch kontrollieren
|
|
35
|
+
|
|
36
|
+
## Erkenntnisse
|
|
37
|
+
|
|
38
|
+
- **OAuth-Sitzungstoken sind nicht „einfach ein weiterer API-Schlüssel"** — sie tragen serverseitigen Zustand, ihre Wiederverwendung bedeutet gemeinsame Nutzung des Kontexts
|
|
39
|
+
- **Interne Dienstaufrufe sollten eine unabhängige, zustandslose Authentifizierung verwenden**, um eine Verknüpfung mit Benutzersitzungen zu vermeiden
|
|
40
|
+
|
|
41
|
+
## Referenzen
|
|
42
|
+
|
|
43
|
+
- [Anthropic API Authentication Docs](https://docs.anthropic.com/en/api/getting-started)
|
|
44
|
+
- [Claude Code Authentication](https://support.claude.com/en/articles/12304248-managing-api-key-environment-variables-in-claude-code)
|
|
45
|
+
- [Anthropic Bans Subscription OAuth in Third-Party Apps](https://winbuzzer.com/2026/02/19/anthropic-bans-claude-subscription-oauth-in-third-party-apps-xcxwbn/)
|
|
46
|
+
- [Claude Code Authentication: API Keys, Subscriptions, and SSO](https://developertoolkit.ai/en/claude-code/quick-start/authentication/)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Body Diff JSON (Request Body Incremental Comparison)
|
|
2
|
+
|
|
3
|
+
## Background
|
|
4
|
+
|
|
5
|
+
Claude Code's MainAgent uses a full-context sending mechanism — each request carries the complete conversation history, system prompt, tool definitions, and more. This means the request body grows increasingly large as the conversation progresses, making it difficult to quickly identify "what was actually added this round" when viewing the raw body.
|
|
6
|
+
|
|
7
|
+
Body Diff JSON solves exactly this problem: it automatically compares the bodies of two consecutive MainAgent requests, extracts the incremental differences, and lets you see at a glance what content was actually added in the current request.
|
|
8
|
+
|
|
9
|
+
## How It Works
|
|
10
|
+
|
|
11
|
+
1. **Identify consecutive MainAgent requests**: The current request must be a MainAgent type, and a previous MainAgent request must exist
|
|
12
|
+
2. **Field-by-field comparison**: Iterates through all top-level fields of the request body, skipping internal properties prefixed with `_`
|
|
13
|
+
3. **Smart diff extraction**:
|
|
14
|
+
- New fields: Displayed directly
|
|
15
|
+
- Deleted fields: Not shown (usually doesn't affect understanding)
|
|
16
|
+
- Changed fields: Shows the current value
|
|
17
|
+
- `messages` array special handling: Only shows newly added messages (since normal conversation is append-only, prefix messages remain unchanged)
|
|
18
|
+
4. **Request body shrinkage detection**: If the current request body is smaller than the previous one, it indicates context truncation or session reset, and a notice is displayed instead of a diff
|
|
19
|
+
|
|
20
|
+
## Typical Scenarios
|
|
21
|
+
|
|
22
|
+
In a normal conversation round, Body Diff JSON typically contains only:
|
|
23
|
+
- `messages`: 1-2 newly added messages (the user's input + the assistant's reply from the previous round)
|
|
24
|
+
|
|
25
|
+
If you see changes to `system`, `tools`, `model`, or other fields in the diff, it means a configuration change occurred in this round, which is often the cause of a cache rebuild.
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
- Body Diff JSON is displayed in the MainAgent request detail panel
|
|
30
|
+
- Click the title to expand/collapse
|
|
31
|
+
- Supports both JSON and Text viewing modes, plus one-click copy
|
|
32
|
+
- In the top-left **CC-Viewer → Global Settings**, you can set "Expand Body Diff JSON by default"
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Cache Rebuild
|
|
2
|
+
|
|
3
|
+
## Background
|
|
4
|
+
|
|
5
|
+
Anthropic's prompt caching mechanism concatenates system → tools → messages (up to the cache breakpoint) in order to form the cache key. When the cache key matches the previous request exactly, the API returns `cache_read_input_tokens` (cache hit); when the cache key changes, the API recreates the cache and returns a large number of `cache_creation_input_tokens`, i.e., a cache rebuild.
|
|
6
|
+
|
|
7
|
+
Cache rebuilds mean additional token charges (cache creation is priced higher than cache read), so identifying rebuild causes has direct value for cost optimization.
|
|
8
|
+
|
|
9
|
+
## Cache Rebuild Reason Categories
|
|
10
|
+
|
|
11
|
+
cc-viewer compares the bodies of two consecutive MainAgent requests to precisely determine the cause of a cache rebuild:
|
|
12
|
+
|
|
13
|
+
| reason | Meaning | Detection Method |
|
|
14
|
+
|--------|---------|------------------|
|
|
15
|
+
| `ttl` | Cache expired | More than 5 minutes since the last MainAgent request |
|
|
16
|
+
| `system_change` | System prompt changed | `JSON.stringify(prev.system) !== JSON.stringify(curr.system)` |
|
|
17
|
+
| `tools_change` | Tool definitions changed | `JSON.stringify(prev.tools) !== JSON.stringify(curr.tools)` |
|
|
18
|
+
| `model_change` | Model switched | `prev.model !== curr.model` |
|
|
19
|
+
| `msg_truncated` | Message stack truncated | Current request has fewer messages than the previous one, usually triggered by context window overflow |
|
|
20
|
+
| `msg_modified` | Historical messages modified | Prefix message content is inconsistent (prefix should be identical during normal appending) |
|
|
21
|
+
| `key_change` | Unknown key change | Fallback when none of the above conditions match |
|
|
22
|
+
|
|
23
|
+
## Detection Priority
|
|
24
|
+
|
|
25
|
+
1. First check the time interval — if more than 5 minutes, immediately classify as `ttl` without body comparison
|
|
26
|
+
2. Then check model, system, tools, and messages in sequence
|
|
27
|
+
3. A single request may match multiple reasons (e.g., model switch + system prompt change), in which case the `reasons` array contains all matches and the tooltip displays them on separate lines
|
|
28
|
+
|
|
29
|
+
## Common Scenarios
|
|
30
|
+
|
|
31
|
+
- **`ttl`**: The user paused for more than 5 minutes before continuing, and the cache naturally expired
|
|
32
|
+
- **`system_change`**: Claude Code updated the system prompt (e.g., loaded new CLAUDE.md, project instructions changed)
|
|
33
|
+
- **`tools_change`**: MCP server connection/disconnection caused changes to the available tool list
|
|
34
|
+
- **`model_change`**: The user switched models via the `/model` command
|
|
35
|
+
- **`msg_truncated`**: A long conversation triggered context window management, and Claude Code truncated earlier messages
|
|
36
|
+
- **`msg_modified`**: Claude Code edited historical messages (e.g., `/compact` replaced original messages with a compressed summary)
|
|
37
|
+
|
|
38
|
+
## Display in cc-viewer
|
|
39
|
+
|
|
40
|
+
In the request list, requests with cache rebuilds show a red dot indicator on the cache row. Hovering displays a tooltip with the specific rebuild reason description (supports 18 languages).
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# MainAgent
|
|
2
|
+
|
|
3
|
+
## Definition
|
|
4
|
+
|
|
5
|
+
MainAgent is the primary request chain in Claude Code when not in agent team mode. Every interaction between the user and Claude Code produces a series of API requests, where MainAgent requests form the core conversation chain — they carry the complete system prompt, tool definitions, and message history.
|
|
6
|
+
|
|
7
|
+
## Identification
|
|
8
|
+
|
|
9
|
+
In cc-viewer, MainAgent is identified by `req.mainAgent === true`, automatically tagged by `interceptor.js` during request capture.
|
|
10
|
+
|
|
11
|
+
Criteria (all must be met):
|
|
12
|
+
- The request body contains a `system` field (system prompt)
|
|
13
|
+
- The request body contains a `tools` array (tool definitions)
|
|
14
|
+
- The system prompt contains "Claude Code" signature text
|
|
15
|
+
|
|
16
|
+
## Differences from SubAgent
|
|
17
|
+
|
|
18
|
+
| Feature | MainAgent | SubAgent |
|
|
19
|
+
|---------|-----------|----------|
|
|
20
|
+
| system prompt | Complete Claude Code main prompt | Streamlined task-specific prompt |
|
|
21
|
+
| tools array | Contains all available tools | Usually contains only a few tools needed for the task |
|
|
22
|
+
| Message history | Accumulates full conversation context | Contains only sub-task related messages |
|
|
23
|
+
| Caching behavior | Has prompt caching (5-minute TTL) | Usually no caching or smaller cache |
|
|
24
|
+
|
|
25
|
+
## Significance in cc-viewer
|
|
26
|
+
|
|
27
|
+
- **Cache tracking**: The prompt caching status of MainAgent requests directly affects costs. By monitoring the ratio of `cache_creation_input_tokens` to `cache_read_input_tokens`, you can assess cache hit rates
|
|
28
|
+
- **Cache miss analysis**: When MainAgent requests show large amounts of cache creation (rather than cache read), it indicates cache misses and rebuilds. cc-viewer marks these requests with a red dot indicator
|
|
29
|
+
- **Main chain analysis**: The MainAgent request sequence reflects the complete interaction between the user and Claude Code, serving as the core data for analyzing session behavior
|
|
30
|
+
- **Session reconstruction**: cc-viewer reconstructs the conversation view (Chat Mode) from MainAgent request message history
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# AskUserQuestion
|
|
2
|
+
|
|
3
|
+
## Definition
|
|
4
|
+
|
|
5
|
+
Asks the user a question during execution to obtain clarification, validate assumptions, or request decisions.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
| Parameter | Type | Required | Description |
|
|
10
|
+
|-----------|------|----------|-------------|
|
|
11
|
+
| `questions` | array | Yes | List of questions (1-4 questions) |
|
|
12
|
+
| `answers` | object | No | Answers collected from the user |
|
|
13
|
+
| `annotations` | object | No | Annotations for each question (e.g., notes for preview selections) |
|
|
14
|
+
| `metadata` | object | No | Metadata for tracking and analysis |
|
|
15
|
+
|
|
16
|
+
Each `question` object:
|
|
17
|
+
|
|
18
|
+
| Field | Type | Required | Description |
|
|
19
|
+
|-------|------|----------|-------------|
|
|
20
|
+
| `question` | string | Yes | Full question text, should end with a question mark |
|
|
21
|
+
| `header` | string | Yes | Short label (max 12 characters), displayed as a tag chip |
|
|
22
|
+
| `options` | array | Yes | 2-4 options |
|
|
23
|
+
| `multiSelect` | boolean | Yes | Whether multiple selections are allowed |
|
|
24
|
+
|
|
25
|
+
Each `option` object:
|
|
26
|
+
|
|
27
|
+
| Field | Type | Required | Description |
|
|
28
|
+
|-------|------|----------|-------------|
|
|
29
|
+
| `label` | string | Yes | Option display text (1-5 words) |
|
|
30
|
+
| `description` | string | Yes | Option description |
|
|
31
|
+
| `markdown` | string | No | Preview content (for visual comparison of ASCII layouts, code snippets, etc.) |
|
|
32
|
+
|
|
33
|
+
## Use Cases
|
|
34
|
+
|
|
35
|
+
**Good for:**
|
|
36
|
+
- Collecting user preferences or requirements
|
|
37
|
+
- Clarifying ambiguous instructions
|
|
38
|
+
- Getting decisions during implementation
|
|
39
|
+
- Providing directional choices to the user
|
|
40
|
+
|
|
41
|
+
**Not good for:**
|
|
42
|
+
- Asking "Is the plan okay?" — use ExitPlanMode instead
|
|
43
|
+
|
|
44
|
+
## Notes
|
|
45
|
+
|
|
46
|
+
- The user can always choose "Other" to provide custom input
|
|
47
|
+
- Place the recommended option first and append "(Recommended)" to its label
|
|
48
|
+
- `markdown` preview is only supported for single-select questions
|
|
49
|
+
- Options with `markdown` switch to a side-by-side layout
|
|
50
|
+
- In plan mode, used to clarify requirements before finalizing the plan
|
|
51
|
+
|
|
52
|
+
## Significance in cc-viewer
|
|
53
|
+
|
|
54
|
+
AskUserQuestion calls appear in request logs as `tool_use` content blocks containing the question and option definitions. The user's answers appear in the message history of subsequent requests.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Bash
|
|
2
|
+
|
|
3
|
+
## Definition
|
|
4
|
+
|
|
5
|
+
Executes shell commands with optional timeout settings. The working directory persists between commands, but shell state (environment variables, etc.) does not persist.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
| Parameter | Type | Required | Description |
|
|
10
|
+
|-----------|------|----------|-------------|
|
|
11
|
+
| `command` | string | Yes | The bash command to execute |
|
|
12
|
+
| `description` | string | No | A short description of the command |
|
|
13
|
+
| `timeout` | number | No | Timeout in milliseconds, max 600000, default 120000 |
|
|
14
|
+
| `run_in_background` | boolean | No | Whether to run in the background |
|
|
15
|
+
|
|
16
|
+
## Use Cases
|
|
17
|
+
|
|
18
|
+
**Good for:**
|
|
19
|
+
- git operations (commit, push, branch, etc.)
|
|
20
|
+
- npm/yarn and other package management commands
|
|
21
|
+
- docker operations
|
|
22
|
+
- Compilation and build commands
|
|
23
|
+
- Listing directory contents (`ls`)
|
|
24
|
+
- Other system commands that require shell execution
|
|
25
|
+
|
|
26
|
+
**Not good for:**
|
|
27
|
+
- Reading files — use Read instead
|
|
28
|
+
- Searching for filenames — use Glob instead
|
|
29
|
+
- Searching file contents — use Grep instead
|
|
30
|
+
- Editing files — use Edit instead
|
|
31
|
+
- Writing files — use Write instead
|
|
32
|
+
- Outputting information to the user — output directly in the response text
|
|
33
|
+
- Long-running processes (dev server, watch mode) — recommend the user run them manually
|
|
34
|
+
|
|
35
|
+
## Notes
|
|
36
|
+
|
|
37
|
+
- Paths containing spaces must be wrapped in double quotes
|
|
38
|
+
- Output exceeding 30000 characters will be truncated
|
|
39
|
+
- Background commands retrieve results via TaskOutput
|
|
40
|
+
- Use absolute paths whenever possible, avoid `cd`
|
|
41
|
+
- Independent commands can invoke multiple Bash calls in parallel
|
|
42
|
+
- Dependent commands should be chained with `&&`
|
|
43
|
+
- The shell environment is initialized from the user's profile (bash or zsh)
|
|
44
|
+
|
|
45
|
+
## Significance in cc-viewer
|
|
46
|
+
|
|
47
|
+
Bash calls appear in request logs as `tool_use` (containing the command) and `tool_result` (containing the output) content block pairs. The command execution output can be used to analyze the model's operational behavior.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Edit
|
|
2
|
+
|
|
3
|
+
## Definition
|
|
4
|
+
|
|
5
|
+
Edits files via exact string replacement. Replaces `old_string` with `new_string` in the file.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
| Parameter | Type | Required | Description |
|
|
10
|
+
|-----------|------|----------|-------------|
|
|
11
|
+
| `file_path` | string | Yes | Absolute path of the file to modify |
|
|
12
|
+
| `old_string` | string | Yes | The original text to replace |
|
|
13
|
+
| `new_string` | string | Yes | The new replacement text (must differ from old_string) |
|
|
14
|
+
| `replace_all` | boolean | No | Whether to replace all matches, default `false` |
|
|
15
|
+
|
|
16
|
+
## Use Cases
|
|
17
|
+
|
|
18
|
+
**Good for:**
|
|
19
|
+
- Modifying specific code sections in existing files
|
|
20
|
+
- Fixing bugs, updating logic
|
|
21
|
+
- Renaming variables (with `replace_all: true`)
|
|
22
|
+
- Any scenario requiring precise file content modification
|
|
23
|
+
|
|
24
|
+
**Not good for:**
|
|
25
|
+
- Creating new files — use Write instead
|
|
26
|
+
- Large-scale rewrites — may need Write to overwrite the entire file
|
|
27
|
+
|
|
28
|
+
## Notes
|
|
29
|
+
|
|
30
|
+
- You must first read the file via Read before using this tool, otherwise it will error
|
|
31
|
+
- `old_string` must be unique in the file, otherwise the edit fails. If not unique, provide more context to make it unique, or use `replace_all`
|
|
32
|
+
- When editing text, preserve the original indentation (tabs/spaces); do not include the line number prefix from Read output
|
|
33
|
+
- Prefer editing existing files over creating new ones
|
|
34
|
+
- `new_string` must differ from `old_string`
|
|
35
|
+
|
|
36
|
+
## Significance in cc-viewer
|
|
37
|
+
|
|
38
|
+
Edit calls appear in request logs as `tool_use` content blocks, with `input` containing `old_string` and `new_string`, which can be used to track what modifications the model made to files.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# EnterPlanMode
|
|
2
|
+
|
|
3
|
+
## Definition
|
|
4
|
+
|
|
5
|
+
Switches Claude Code into plan mode for exploring the codebase and designing an implementation plan before execution.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
No parameters.
|
|
10
|
+
|
|
11
|
+
## Use Cases
|
|
12
|
+
|
|
13
|
+
**Good for:**
|
|
14
|
+
- New feature implementation — requires architectural decisions
|
|
15
|
+
- Multiple viable approaches exist — requires user selection
|
|
16
|
+
- Code changes affect existing behavior or structure
|
|
17
|
+
- Multi-file changes — potentially involving 2-3 or more files
|
|
18
|
+
- Requirements are unclear — need to explore first to understand scope
|
|
19
|
+
- User preferences matter — implementation can go in multiple reasonable directions
|
|
20
|
+
|
|
21
|
+
**Not good for:**
|
|
22
|
+
- Single-line or few-line fixes (typos, obvious bugs)
|
|
23
|
+
- The user has given very specific instructions
|
|
24
|
+
- Pure research/exploration tasks — use Task (Explore type) instead
|
|
25
|
+
|
|
26
|
+
## Behavior in Plan Mode
|
|
27
|
+
|
|
28
|
+
After entering plan mode, Claude Code will:
|
|
29
|
+
1. Use Glob, Grep, and Read tools to deeply explore the codebase
|
|
30
|
+
2. Understand existing patterns and architecture
|
|
31
|
+
3. Design an implementation plan
|
|
32
|
+
4. Submit the plan for user approval
|
|
33
|
+
5. Use AskUserQuestion if clarification is needed
|
|
34
|
+
6. Exit via ExitPlanMode when the plan is ready
|
|
35
|
+
|
|
36
|
+
## Notes
|
|
37
|
+
|
|
38
|
+
- This tool requires user consent to enter plan mode
|
|
39
|
+
- When unsure whether planning is needed, lean toward planning — aligning upfront is better than rework
|
|
40
|
+
|
|
41
|
+
## Significance in cc-viewer
|
|
42
|
+
|
|
43
|
+
EnterPlanMode calls appear in request logs as `tool_use` content blocks. The request sequence after entering plan mode is typically dominated by exploratory tool calls (Glob, Grep, Read) until ExitPlanMode is called.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# ExitPlanMode
|
|
2
|
+
|
|
3
|
+
## Definition
|
|
4
|
+
|
|
5
|
+
Exits plan mode and submits the plan for user approval. The plan content is read from a previously written plan file.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
| Parameter | Type | Required | Description |
|
|
10
|
+
|-----------|------|----------|-------------|
|
|
11
|
+
| `allowedPrompts` | array | No | List of permission descriptions required for the implementation plan |
|
|
12
|
+
|
|
13
|
+
Each element in the `allowedPrompts` array:
|
|
14
|
+
|
|
15
|
+
| Field | Type | Required | Description |
|
|
16
|
+
|-------|------|----------|-------------|
|
|
17
|
+
| `tool` | enum | Yes | The applicable tool, currently only supports `Bash` |
|
|
18
|
+
| `prompt` | string | Yes | Semantic description of the operation (e.g., "run tests", "install dependencies") |
|
|
19
|
+
|
|
20
|
+
## Use Cases
|
|
21
|
+
|
|
22
|
+
**Good for:**
|
|
23
|
+
- The plan is complete in plan mode and ready for user approval
|
|
24
|
+
- Only for implementation tasks that require writing code
|
|
25
|
+
|
|
26
|
+
**Not good for:**
|
|
27
|
+
- Pure research/exploration tasks — no need to exit plan mode
|
|
28
|
+
- Asking the user "Is the plan okay?" — that is exactly what this tool does, do not use AskUserQuestion for that
|
|
29
|
+
|
|
30
|
+
## Notes
|
|
31
|
+
|
|
32
|
+
- This tool does not accept plan content as a parameter — it reads from a previously written plan file
|
|
33
|
+
- The user will see the plan file content for approval
|
|
34
|
+
- Do not use AskUserQuestion to ask "Is the plan okay?" before calling this tool, as that would be redundant
|
|
35
|
+
- Do not mention "the plan" in questions, since the user cannot see the plan content before ExitPlanMode
|
|
36
|
+
|
|
37
|
+
## Significance in cc-viewer
|
|
38
|
+
|
|
39
|
+
ExitPlanMode calls mark the end of the planning phase. In request logs, requests after this call typically shift to implementation operations (Edit, Write, Bash, etc.).
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Glob
|
|
2
|
+
|
|
3
|
+
## Definition
|
|
4
|
+
|
|
5
|
+
A fast file pattern matching tool that works with any codebase size. Returns matching file paths sorted by modification time.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
| Parameter | Type | Required | Description |
|
|
10
|
+
|-----------|------|----------|-------------|
|
|
11
|
+
| `pattern` | string | Yes | Glob pattern (e.g., `**/*.js`, `src/**/*.ts`) |
|
|
12
|
+
| `path` | string | No | Search directory, defaults to the current working directory. Do not pass "undefined" or "null" |
|
|
13
|
+
|
|
14
|
+
## Use Cases
|
|
15
|
+
|
|
16
|
+
**Good for:**
|
|
17
|
+
- Finding files by filename pattern
|
|
18
|
+
- Finding all files of a specific type (e.g., all `.tsx` files)
|
|
19
|
+
- Locating files first when searching for a specific class definition (e.g., `class Foo`)
|
|
20
|
+
- Multiple Glob calls can be issued in parallel within a single message
|
|
21
|
+
|
|
22
|
+
**Not good for:**
|
|
23
|
+
- Searching file contents — use Grep instead
|
|
24
|
+
- Open-ended exploration requiring multiple rounds of searching — use Task (Explore type) instead
|
|
25
|
+
|
|
26
|
+
## Notes
|
|
27
|
+
|
|
28
|
+
- Supports standard glob syntax: `*` matches single level, `**` matches multiple levels, `{}` matches alternatives
|
|
29
|
+
- Results are sorted by modification time
|
|
30
|
+
- Preferred over the `find` command in Bash
|
|
31
|
+
|
|
32
|
+
## Significance in cc-viewer
|
|
33
|
+
|
|
34
|
+
Glob calls appear in request logs as `tool_use` / `tool_result` content block pairs. The `tool_result` contains the list of matched file paths.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Grep
|
|
2
|
+
|
|
3
|
+
## Definition
|
|
4
|
+
|
|
5
|
+
A powerful content search tool based on ripgrep. Supports regular expressions, file type filtering, and multiple output modes.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
| Parameter | Type | Required | Description |
|
|
10
|
+
|-----------|------|----------|-------------|
|
|
11
|
+
| `pattern` | string | Yes | Regular expression search pattern |
|
|
12
|
+
| `path` | string | No | Search path (file or directory), defaults to current working directory |
|
|
13
|
+
| `glob` | string | No | Filename filter (e.g., `*.js`, `*.{ts,tsx}`) |
|
|
14
|
+
| `type` | string | No | File type filter (e.g., `js`, `py`, `rust`), more efficient than glob |
|
|
15
|
+
| `output_mode` | enum | No | Output mode: `files_with_matches` (default), `content`, `count` |
|
|
16
|
+
| `-i` | boolean | No | Case-insensitive search |
|
|
17
|
+
| `-n` | boolean | No | Show line numbers (content mode only), default true |
|
|
18
|
+
| `-A` | number | No | Number of lines to show after a match |
|
|
19
|
+
| `-B` | number | No | Number of lines to show before a match |
|
|
20
|
+
| `-C` / `context` | number | No | Number of lines to show before and after a match |
|
|
21
|
+
| `head_limit` | number | No | Limit the number of output entries, default 0 (unlimited) |
|
|
22
|
+
| `offset` | number | No | Skip the first N results |
|
|
23
|
+
| `multiline` | boolean | No | Enable multiline matching mode, default false |
|
|
24
|
+
|
|
25
|
+
## Use Cases
|
|
26
|
+
|
|
27
|
+
**Good for:**
|
|
28
|
+
- Searching for specific strings or patterns in the codebase
|
|
29
|
+
- Finding where functions/variables are used
|
|
30
|
+
- Filtering search results by file type
|
|
31
|
+
- Counting the number of matches
|
|
32
|
+
|
|
33
|
+
**Not good for:**
|
|
34
|
+
- Finding files by filename — use Glob instead
|
|
35
|
+
- Open-ended exploration requiring multiple rounds of searching — use Task (Explore type) instead
|
|
36
|
+
|
|
37
|
+
## Notes
|
|
38
|
+
|
|
39
|
+
- Uses ripgrep syntax (not grep); special characters like braces need escaping
|
|
40
|
+
- `files_with_matches` mode returns only file paths, most efficient
|
|
41
|
+
- `content` mode returns matching line content, supports context lines
|
|
42
|
+
- Multiline matching requires setting `multiline: true`
|
|
43
|
+
- Always prefer the Grep tool over `grep` or `rg` commands in Bash
|
|
44
|
+
|
|
45
|
+
## Significance in cc-viewer
|
|
46
|
+
|
|
47
|
+
Grep calls appear in request logs as `tool_use` / `tool_result` content block pairs. The `tool_result` contains the search results.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# NotebookEdit
|
|
2
|
+
|
|
3
|
+
## Definition
|
|
4
|
+
|
|
5
|
+
Replaces, inserts, or deletes specific cells in a Jupyter notebook (.ipynb file).
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
| Parameter | Type | Required | Description |
|
|
10
|
+
|-----------|------|----------|-------------|
|
|
11
|
+
| `notebook_path` | string | Yes | Absolute path of the notebook file |
|
|
12
|
+
| `new_source` | string | Yes | New content for the cell |
|
|
13
|
+
| `cell_id` | string | No | ID of the cell to edit. In insert mode, the new cell is inserted after this ID |
|
|
14
|
+
| `cell_type` | enum | No | Cell type: `code` or `markdown`. Required in insert mode |
|
|
15
|
+
| `edit_mode` | enum | No | Edit mode: `replace` (default), `insert`, `delete` |
|
|
16
|
+
|
|
17
|
+
## Use Cases
|
|
18
|
+
|
|
19
|
+
**Good for:**
|
|
20
|
+
- Modifying code or markdown cells in a Jupyter notebook
|
|
21
|
+
- Adding new cells to a notebook
|
|
22
|
+
- Deleting cells from a notebook
|
|
23
|
+
|
|
24
|
+
## Notes
|
|
25
|
+
|
|
26
|
+
- `cell_number` is 0-indexed
|
|
27
|
+
- `insert` mode inserts a new cell at the specified position
|
|
28
|
+
- `delete` mode deletes the cell at the specified position
|
|
29
|
+
- The path must be an absolute path
|
|
30
|
+
|
|
31
|
+
## Significance in cc-viewer
|
|
32
|
+
|
|
33
|
+
NotebookEdit calls appear in request logs as `tool_use` content blocks, recording the specific modification operations on the notebook.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Read
|
|
2
|
+
|
|
3
|
+
## Definition
|
|
4
|
+
|
|
5
|
+
Reads file contents from the local filesystem. Supports text files, images, PDFs, and Jupyter notebooks.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
| Parameter | Type | Required | Description |
|
|
10
|
+
|-----------|------|----------|-------------|
|
|
11
|
+
| `file_path` | string | Yes | Absolute path of the file |
|
|
12
|
+
| `offset` | number | No | Starting line number (for reading large files in segments) |
|
|
13
|
+
| `limit` | number | No | Number of lines to read (for reading large files in segments) |
|
|
14
|
+
| `pages` | string | No | PDF page range (e.g., "1-5", "3", "10-20"), only applicable to PDFs |
|
|
15
|
+
|
|
16
|
+
## Use Cases
|
|
17
|
+
|
|
18
|
+
**Good for:**
|
|
19
|
+
- Reading code files, configuration files, and other text files
|
|
20
|
+
- Viewing image files (Claude is a multimodal model)
|
|
21
|
+
- Reading PDF documents
|
|
22
|
+
- Reading Jupyter notebooks (returns all cells with outputs)
|
|
23
|
+
- Reading multiple files in parallel to gather context
|
|
24
|
+
|
|
25
|
+
**Not good for:**
|
|
26
|
+
- Reading directories — use the `ls` command in Bash instead
|
|
27
|
+
- Open-ended codebase exploration — use Task (Explore type) instead
|
|
28
|
+
|
|
29
|
+
## Notes
|
|
30
|
+
|
|
31
|
+
- The path must be an absolute path, not a relative path
|
|
32
|
+
- Reads the first 2000 lines of a file by default
|
|
33
|
+
- Lines exceeding 2000 characters will be truncated
|
|
34
|
+
- Output uses `cat -n` format, with line numbers starting at 1
|
|
35
|
+
- Large PDFs (over 10 pages) must specify the `pages` parameter, max 20 pages per call
|
|
36
|
+
- Reading a non-existent file returns an error (does not crash)
|
|
37
|
+
- Multiple Read calls can be issued in parallel within a single message
|
|
38
|
+
|
|
39
|
+
## Significance in cc-viewer
|
|
40
|
+
|
|
41
|
+
Read calls appear in request logs as `tool_use` (invocation) and `tool_result` (returned content) content block pairs. The `tool_result` contains the actual file content, which can be used to analyze which files the model read.
|