diff --git a/mdTemplet/debug.md b/mdTemplet/debug.md new file mode 100644 index 0000000..33e0bce --- /dev/null +++ b/mdTemplet/debug.md @@ -0,0 +1,17 @@ +# Debug / Pitfalls + +## 2026-04-21 eza --tree 无路径参数静默空输出 +- 症状: `eza --tree --git-ignore --level=2` 输出空, exit 0 +- 原因: eza tree 模式需要显式路径参数 +- 规避: 总是加 `.`(或其他路径) + +## 2026-04-21 broot 无法在非交互环境使用 +- 症状: `broot --cmd ":pt;:q"` 报 `Termimad Error: IO error: No such device` +- 原因: broot 需要 TTY, 设计就是交互工具 +- 规避: CLI/Claude Code 场景直接用 eza + fd + rg +- 附注: 首次运行会自动 patch `~/.bashrc` 和 `~/.zshrc` 注入 `br` 函数 + +## 2026-04-21 repomix 大仓库 token 预算 +- 症状: nexus4cc (203M 磁盘) 经 .gitignore 过滤后仍 144k tokens +- 原因: 前端单文件(如 Terminal.tsx 21k tokens)累积 +- 规避: > 100k tokens 的仓库按子目录切片 (`repomix frontend/src -o /tmp/fe.xml`) diff --git a/mdTemplet/log.md b/mdTemplet/log.md new file mode 100644 index 0000000..5ddf1c1 --- /dev/null +++ b/mdTemplet/log.md @@ -0,0 +1,2 @@ +# Session Log + diff --git a/mdTemplet/note.md b/mdTemplet/note.md new file mode 100644 index 0000000..aaad60f --- /dev/null +++ b/mdTemplet/note.md @@ -0,0 +1,8 @@ +# Practice Notes + +## Locate tooling (for mature/unfamiliar repos) + +- `repomix -o /tmp/x.xml` (or `repomix `) — full-repo LLM pack; slice by subdir if > 100k tokens +- `eza --tree --git-ignore --level=3 .` for layout (path arg required) +- `fd ` for files; `rg ` for call sites +- `git ls-files` when tokens are tight