{"id":479568,"date":"2026-05-13T10:00:31","date_gmt":"2026-05-13T10:00:31","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=479568"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=479568","title":{"rendered":"Auto Dream \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043f\u0430\u043c\u044f\u0442\u044c \u0432 Claude Code. \u041e\u0442\u043a\u0430\u0442\u0438\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0441\u043e\u0431\u0440\u0430\u043b cc-janitor"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><em>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0438\u0438. \u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0447\u0430\u0441\u0442\u0438: [\u0430\u043d\u0442\u0438\u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u043e\u043d\u043d\u044b\u0439 \u0441\u0435\u0442\u0430\u043f](<\/em><a href=\"https:\/\/habr.com\/ru\/articles\/1013330\/\" rel=\"noopener noreferrer nofollow\"><em>https:\/\/habr.com\/ru\/articles\/1013330\/<\/em><\/a><em>) (\u0442\u043e\u043f-5 \u0437\u0430 \u0441\u0443\u0442\u043a\u0438), [\u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442](<\/em><a href=\"https:\/\/habr.com\/ru\/articles\/1024878\/)*\" rel=\"noopener noreferrer nofollow\"><em>https:\/\/habr.com\/ru\/articles\/1024878\/)<\/em><\/a><\/p>\n<p>\u0414\u0432\u0430 \u043c\u0435\u0441\u044f\u0446\u0430 \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0432 Claude Code \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u0432\u0430\u043b\u043a\u0443. \u0421\u043e\u0442\u043d\u0438 \u0441\u0442\u0430\u0440\u044b\u0445 \u0441\u0435\u0441\u0441\u0438\u0439 \u043d\u0430 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442\u044b. \u041f\u0440\u0430\u0432\u0438\u043b\u0430 permissions, \u0440\u0430\u0437\u043c\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043f\u044f\u0442\u0438 \u0444\u0430\u0439\u043b\u0430\u043c <code>settings.json<\/code> \u2014 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0443\u0436\u0435 \u043d\u0435\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430. <a href=\"http:\/\/CLAUDE.md\" rel=\"noopener noreferrer nofollow\"><code>CLAUDE.md<\/code><\/a> \u0438 memory-\u0444\u0430\u0439\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0430\u043c\u0438 \u0441\u0435\u0431\u0435 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0430\u0442. \u0425\u0443\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u043b\u0447\u0430 \u0441\u043b\u043e\u043c\u0430\u043b\u0438\u0441\u044c \u043d\u0435\u0434\u0435\u043b\u044e \u043d\u0430\u0437\u0430\u0434.<\/p>\n<p>\u0410 \u043f\u043e\u0442\u043e\u043c Anthropic \u0432\u044b\u043a\u0430\u0442\u0438\u043b Auto Dream.<\/p>\n<p>Auto Dream \u2014 \u044d\u0442\u043e LLM, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u0435\u0436\u0434\u0443 \u0441\u0435\u0441\u0441\u0438\u044f\u043c\u0438 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u043d\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c. \u041a\u043e\u043d\u0441\u043e\u043b\u0438\u0434\u0438\u0440\u0443\u0435\u0442, \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0435\u0442, \u0440\u0435\u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0443\u0435\u0442. \u0410\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e. \u0411\u0435\u0437 \u043e\u0442\u043a\u0430\u0442\u0430. \u0411\u0435\u0437 \u043f\u043e\u043a\u0430\u0437\u0430 \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f \u0441\u0430\u043c\u043e\u0433\u043e Anthropic: \u00ab\u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0431\u044d\u043a\u0430\u043f <code>~\/.claude\/<\/code> \u043f\u0435\u0440\u0435\u0434 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c\u00bb. \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u0431\u044d\u043a\u0430\u043f \u2014 \u0432 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 Claude Code \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e.<\/p>\n<p>\u041c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0431\u044b\u043b \u0431\u044d\u043a\u0430\u043f. \u041c\u043d\u0435 \u0442\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u0447\u0438\u0441\u0442\u043a\u0430. \u0417\u0430 \u0448\u0435\u0441\u0442\u044c \u0434\u043d\u0435\u0439 \u044f \u0441\u043e\u0431\u0440\u0430\u043b cc-janitor \u2014 \u0434\u0435\u0442\u0435\u0440\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 TUI\/CLI, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u0443\u0434\u0438\u0442\u0438\u0440\u0443\u0435\u0442, \u0447\u0438\u0441\u0442\u0438\u0442 \u0438 \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 Auto Dream \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u044b\u043c\u0438, \u043e\u0442\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u044b\u043c\u0438 \u0441\u043d\u0430\u043f\u0448\u043e\u0442\u0430\u043c\u0438.<\/p>\n<p>## \u041f\u043e\u0447\u0435\u043c\u0443 \u00ab\u0434\u0435\u0442\u0435\u0440\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439\u00bb \u2014 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e<\/p>\n<p>\u0412 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 cc-janitor <strong>\u043d\u0435\u0442 LLM.<\/strong> Auto Dream \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 LLM \u2014 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u0442\u0438\u0442\u044c, \u0433\u0430\u043b\u043b\u044e\u0446\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u044f \u0438\u043b\u0438 \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u043d\u0430\u043d\u0441. cc-janitor \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 regex, \u043f\u043e\u0434\u0441\u0447\u0451\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439 \u0432 \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445, \u043f\u0430\u0440\u0441\u0438\u043d\u0433 frontmatter \u0438 SHA-256 \u043e\u0442\u043f\u0435\u0447\u0430\u0442\u043a\u0438. \u0415\u0441\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442, \u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0435 \u0432\u044b.<\/p>\n<p>\u0418\u043d\u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438: <strong>\u043d\u0438 \u043e\u0434\u043d\u0430 \u043c\u0443\u0442\u0430\u0446\u0438\u044f \u043d\u0435 \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u0442 <\/strong><code><strong>~\/.claude\/<\/strong><\/code><strong> \u0431\u0435\u0437 env-var gate \u0418 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0438 \u043a\u0430\u0436\u0434\u0430\u044f \u043c\u0443\u0442\u0430\u0446\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u044b\u0439 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442.<\/strong> \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u2014 by design, \u0430 \u043d\u0435 by promise.<\/p>\n<p>## \u0427\u0435\u0442\u044b\u0440\u0435 \u0444\u0430\u0437\u044b, \u0448\u0435\u0441\u0442\u044c \u0434\u043d\u0435\u0439, 12 upstream-issues<\/p>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u0444\u0430\u0437\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435, \u0432\u0435\u0440\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0431\u0430\u0433\u0438 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 anthropics\/claude-code:<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 1 \u2014 \u0421\u0435\u0441\u0441\u0438\u0438, permissions, \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430.<\/strong> \u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b \u043f\u043e \u0432\u0441\u0435\u043c 5 \u0441\u043b\u043e\u044f\u043c <code>settings.json<\/code>. \u0414\u0435\u0442\u0435\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0442\u0443\u0445\u0448\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u0447\u0435\u0440\u0435\u0437 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432. \u041a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430: \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0438 \u0434\u043e\u043b\u043b\u0430\u0440\u043e\u0432 \u0441\u0442\u043e\u044f\u0442 \u0432\u0430\u0448\u0438 <a href=\"http:\/\/CLAUDE.md\" rel=\"noopener noreferrer nofollow\"><code>CLAUDE.md<\/code><\/a> + memory + \u0441\u043a\u0438\u043b\u043b\u044b \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435. Soft-delete \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443 \u043d\u0430 30 \u0434\u043d\u0435\u0439.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 2 \u2014 \u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043f\u0430\u043c\u044f\u0442\u0438, \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u0445\u0443\u043a\u043e\u0432, \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a.<\/strong> \u041f\u0430\u0440\u0441\u0438\u043d\u0433 frontmatter \u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f memory-\u0444\u0430\u0439\u043b\u043e\u0432 (user\/feedback\/project\/reference). \u041a\u0440\u043e\u0441\u0441-\u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u0434\u0435\u0442\u0435\u043a\u0442 \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u043e\u0432. \u0421\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0445\u0443\u043a\u043e\u0432 \u0434\u043b\u044f 9 \u0442\u0438\u043f\u043e\u0432 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0441 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u043c\u0438 payload \u2014 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0445\u0443\u043a\u0438 Claude Code \u043b\u043e\u043c\u0430\u044e\u0442\u0441\u044f \u043c\u043e\u043b\u0447\u0430, \u0438 \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043e\u0442\u043b\u0430\u0434\u0438\u0442\u044c \u0438\u0445 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e (\u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 issues #11544, #10401, #16564). \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a cron\/schtasks \u0441 6 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c\u0438.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 3 \u2014 Monorepo, watcher, \u0434\u0430\u0448\u0431\u043e\u0440\u0434 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438.<\/strong> \u041e\u0431\u0445\u043e\u0434 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0441 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u043a\u0430\u0436\u0434\u043e\u0433\u043e <code>.claude\/<\/code> \u043a\u0430\u043a real\/nested\/junk. \u0424\u043e\u043d\u043e\u0432\u044b\u0439 \u0434\u0435\u043c\u043e\u043d \u0434\u043b\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u0437\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438. \u0415\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u044b\u0435 \u0441\u043d\u0430\u043f\u0448\u043e\u0442\u044b \u0432 \u0434\u0430\u0448\u0431\u043e\u0440\u0434. \u042d\u043a\u0441\u043f\u043e\u0440\u0442\/\u0438\u043c\u043f\u043e\u0440\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441 SHA-256 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u043e\u043c.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 4 \u2014 Safety net \u0434\u043b\u044f Auto Dream.<\/strong> \u0420\u0430\u0434\u0438 \u0447\u0435\u0433\u043e \u0432\u0441\u0451 \u0437\u0430\u0442\u0435\u0432\u0430\u043b\u043e\u0441\u044c. \u0424\u043e\u043d\u043e\u0432\u044b\u0439 watcher \u043f\u043e\u043b\u043b\u0438\u0442 <code>.consolidate-lock<\/code> \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443. Pre-\u0441\u043d\u0430\u043f\u0448\u043e\u0442 \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0438\u0441\u044c\u044e Dream, post-\u0441\u043d\u0430\u043f\u0448\u043e\u0442 \u043f\u043e\u0441\u043b\u0435. <code>dream diff<\/code> \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c. <code>dream rollback<\/code> \u043e\u0442\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u0442. <code>dream doctor<\/code> \u2014 10 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f: \u0437\u0430\u0432\u0438\u0441\u0448\u0438\u0439 lock, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <code>autoDreamEnabled<\/code>, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 <code>.<\/code><a href=\"http:\/\/dream-log.md\" rel=\"noopener noreferrer nofollow\"><code>dream-log.md<\/code><\/a>, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e memory-\u0444\u0430\u0439\u043b\u043e\u0432, \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u044b, \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0430\u0449\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<p><strong>12 upstream-issues \u0437\u0430\u043a\u0440\u044b\u0442\u044b<\/strong> \u043f\u043e \u0432\u0441\u0435\u043c \u0447\u0435\u0442\u044b\u0440\u0451\u043c \u0444\u0430\u0437\u0430\u043c \u0437\u0430 6 \u0434\u043d\u0435\u0439 (v0.1.1 5 \u043c\u0430\u044f \u2014 v0.4.0 11 \u043c\u0430\u044f). \u041a\u0430\u0436\u0434\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 CHANGELOG \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043d\u043e\u043c\u0435\u0440 issue.<\/p>\n<p>## \u041a\u043e\u043c\u0430\u043d\u0434\u044b, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430\u0447\u0430\u0442\u044c<\/p>\n<p>\u042d\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0438\u0442\u0430\u044e\u0442 \u2014 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0440\u0438\u0441\u043a:<\/p>\n<p>&#171;`<\/p>\n<p>cc-janitor perms audit          # \u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u0440\u043e\u0442\u0443\u0445\u043b\u0438 \u0438\u043b\u0438 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f<\/p>\n<p>cc-janitor context cost         # \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u043e\u0438\u0442 \u0432\u0430\u0448 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0437\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 $<\/p>\n<p>cc-janitor dream doctor         # 10 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f Auto Dream<\/p>\n<p>cc-janitor stats sleep-hygiene  # \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0433\u0438\u0433\u0438\u0435\u043d\u044b \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<p>&#171;`<\/p>\n<p>\u0415\u0441\u043b\u0438 <code>context cost<\/code> \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0447\u0442\u043e \u0432\u044b \u0441\u0436\u0438\u0433\u0430\u0435\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0447\u0435\u043c \u0434\u0443\u043c\u0430\u043b\u0438, \u0438\u043b\u0438 <code>perms audit<\/code> \u043d\u0430\u0439\u0434\u0451\u0442 \u0447\u0442\u043e 60% \u043f\u0440\u0430\u0432\u0438\u043b \u043f\u0440\u043e\u0442\u0443\u0445\u043b\u0438 \u2014 \u0431\u0443\u0434\u0435\u0442\u0435 \u0437\u043d\u0430\u0442\u044c \u0441\u0442\u043e\u0438\u0442 \u043b\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0447\u0438\u0441\u0442\u043a\u0435.<\/p>\n<p>\u041c\u0443\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0442\u0440\u0435\u0431\u0443\u044e\u0442 <code>CC_JANITOR_USER_CONFIRMED=1<\/code> \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 <code>--dry-run<\/code>. \u0423\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0435 \u043b\u0435\u0436\u0438\u0442 \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0435 30 \u0434\u043d\u0435\u0439. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043e\u0442\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 <code>cc-janitor undo<\/code>.<\/p>\n<p>## Safety model \u2014 by design, \u043d\u0435 by hope<\/p>\n<p>\u0421\u0435\u043c\u044c \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u0437\u0430\u0449\u0438\u0442\u044b: env-var gate \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u043c\u0443\u0442\u0430\u0446\u0438\u0438, soft-delete \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443 (30 \u0434\u043d\u0435\u0439), timestamped backup \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u044c\u044e \u0432 <code>settings.json<\/code>, append-only JSONL audit log (\u0440\u043e\u0442\u0430\u0446\u0438\u044f \u043d\u0430 10 \u041c\u0411), reversible undo, pre\/post \u0441\u043d\u0430\u043f\u0448\u043e\u0442\u044b \u0432\u043e\u043a\u0440\u0443\u0433 Dream, hard cap \u0434\u043b\u044f scheduled-\u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432 (\u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 runaway cron). \u041a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 safety-\u0444\u0438\u043a\u0441 \u0432 0.3.2: TUI \u0440\u0430\u043d\u0435\u0435 \u043e\u0431\u0445\u043e\u0434\u0438\u043b env-var gate \u0447\u0435\u0440\u0435\u0437 <code>os.environ.setdefault<\/code> \u2014 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \u0447\u0435\u0440\u0435\u0437 scoped context manager.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u044e\u0442\u0441\u044f \u2014 \u044d\u0442\u043e P0. Safety model \u2014 \u044d\u0442\u043e \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442.<\/p>\n<p>## \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/p>\n<p>&#171;`<\/p>\n<p>uv tool install cc-janitor<\/p>\n<p># \u0438\u043b\u0438<\/p>\n<p>pipx install cc-janitor<\/p>\n<p>&#171;`<\/p>\n<p>202 \u0442\u0435\u0441\u0442\u0430. CI \u043d\u0430 Linux\/macOS\/Windows. Python 3.11+. MIT.<\/p>\n<p>## \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438<\/p>\n<p>&#8212; [\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f Claude Code: Memory](<a href=\"https:\/\/code.claude.com\/docs\/en\/memory\" rel=\"noopener noreferrer nofollow\">https:\/\/code.claude.com\/docs\/en\/memory<\/a>) \u2014 \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 Auto Dream<\/p>\n<p>&#8212; [Issue #47959](<a href=\"https:\/\/github.com\/anthropics\/claude-code\/issues\/47959\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/anthropics\/claude-code\/issues\/47959<\/a>) \u2014 Auto Dream \u043c\u043e\u043b\u0447\u0430 \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<p>&#8212; [Issue #50694](<a href=\"https:\/\/github.com\/anthropics\/claude-code\/issues\/50694\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/anthropics\/claude-code\/issues\/50694<\/a>) \u2014 \u0437\u0430\u0432\u0438\u0441\u0448\u0438\u0439 <code>.consolidate-lock<\/code> \u043c\u043e\u043b\u0447\u0430 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 Auto Dream<\/p>\n<p>&#8212; [Matt Pocock\u2019s skills repo](<a href=\"https:\/\/github.com\/mattpocock\/skills\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/mattpocock\/skills<\/a>) \u2014 \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f reference \u0434\u043b\u044f Claude Code \u0441\u043a\u0438\u043b\u043b\u043e\u0432<\/p>\n<p>&#8212; [Simon Willison\u2019s Claude Code TILs](<a href=\"https:\/\/til.simonwillison.net\/claude-code\/\" rel=\"noopener noreferrer nofollow\">https:\/\/til.simonwillison.net\/claude-code\/<\/a>) \u2014 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0431\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 \u043f\u043e Claude Code<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1034614\/\">https:\/\/habr.com\/ru\/articles\/1034614\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0438\u0438. \u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0447\u0430\u0441\u0442\u0438: [\u0430\u043d\u0442\u0438\u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u043e\u043d\u043d\u044b\u0439 \u0441\u0435\u0442\u0430\u043f](https:\/\/habr.com\/ru\/articles\/1013330\/) (\u0442\u043e\u043f-5 \u0437\u0430 \u0441\u0443\u0442\u043a\u0438), [\u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442](https:\/\/habr.com\/ru\/articles\/1024878\/)\u0414\u0432\u0430 \u043c\u0435\u0441\u044f\u0446\u0430 \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0432 Claude Code \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u0432\u0430\u043b\u043a\u0443. \u0421\u043e\u0442\u043d\u0438 \u0441\u0442\u0430\u0440\u044b\u0445 \u0441\u0435\u0441\u0441\u0438\u0439 \u043d\u0430 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442\u044b. \u041f\u0440\u0430\u0432\u0438\u043b\u0430 permissions, \u0440\u0430\u0437\u043c\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043f\u044f\u0442\u0438 \u0444\u0430\u0439\u043b\u0430\u043c settings.json \u2014 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0443\u0436\u0435 \u043d\u0435\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430. CLAUDE.md \u0438 memory-\u0444\u0430\u0439\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0430\u043c\u0438 \u0441\u0435\u0431\u0435 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0430\u0442. \u0425\u0443\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u043b\u0447\u0430 \u0441\u043b\u043e\u043c\u0430\u043b\u0438\u0441\u044c \u043d\u0435\u0434\u0435\u043b\u044e \u043d\u0430\u0437\u0430\u0434.\u0410 \u043f\u043e\u0442\u043e\u043c Anthropic \u0432\u044b\u043a\u0430\u0442\u0438\u043b Auto Dream.Auto Dream \u2014 \u044d\u0442\u043e LLM, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u0435\u0436\u0434\u0443 \u0441\u0435\u0441\u0441\u0438\u044f\u043c\u0438 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u043d\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c. \u041a\u043e\u043d\u0441\u043e\u043b\u0438\u0434\u0438\u0440\u0443\u0435\u0442, \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0435\u0442, \u0440\u0435\u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0443\u0435\u0442. \u0410\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e. \u0411\u0435\u0437 \u043e\u0442\u043a\u0430\u0442\u0430. \u0411\u0435\u0437 \u043f\u043e\u043a\u0430\u0437\u0430 \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f \u0441\u0430\u043c\u043e\u0433\u043e Anthropic: \u00ab\u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0431\u044d\u043a\u0430\u043f ~\/.claude\/ \u043f\u0435\u0440\u0435\u0434 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c\u00bb. \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u0431\u044d\u043a\u0430\u043f \u2014 \u0432 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 Claude Code \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e.\u041c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0431\u044b\u043b \u0431\u044d\u043a\u0430\u043f. \u041c\u043d\u0435 \u0442\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u0447\u0438\u0441\u0442\u043a\u0430. \u0417\u0430 \u0448\u0435\u0441\u0442\u044c \u0434\u043d\u0435\u0439 \u044f \u0441\u043e\u0431\u0440\u0430\u043b cc-janitor \u2014 \u0434\u0435\u0442\u0435\u0440\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 TUI\/CLI, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u0443\u0434\u0438\u0442\u0438\u0440\u0443\u0435\u0442, \u0447\u0438\u0441\u0442\u0438\u0442 \u0438 \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 Auto Dream \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u044b\u043c\u0438, \u043e\u0442\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u044b\u043c\u0438 \u0441\u043d\u0430\u043f\u0448\u043e\u0442\u0430\u043c\u0438.## \u041f\u043e\u0447\u0435\u043c\u0443 \u00ab\u0434\u0435\u0442\u0435\u0440\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439\u00bb \u2014 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e\u0412 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 cc-janitor \u043d\u0435\u0442 LLM. Auto Dream \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 LLM \u2014 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u0442\u0438\u0442\u044c, \u0433\u0430\u043b\u043b\u044e\u0446\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u044f \u0438\u043b\u0438 \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u043d\u0430\u043d\u0441. cc-janitor \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 regex, \u043f\u043e\u0434\u0441\u0447\u0451\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439 \u0432 \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445, \u043f\u0430\u0440\u0441\u0438\u043d\u0433 frontmatter \u0438 SHA-256 \u043e\u0442\u043f\u0435\u0447\u0430\u0442\u043a\u0438. \u0415\u0441\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442, \u0430 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0435 \u0432\u044b.\u0418\u043d\u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438: \u043d\u0438 \u043e\u0434\u043d\u0430 \u043c\u0443\u0442\u0430\u0446\u0438\u044f \u043d\u0435 \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u0442 ~\/.claude\/ \u0431\u0435\u0437 env-var gate \u0418 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0438 \u043a\u0430\u0436\u0434\u0430\u044f \u043c\u0443\u0442\u0430\u0446\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u044b\u0439 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442. \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u2014 by design, \u0430 \u043d\u0435 by promise.## \u0427\u0435\u0442\u044b\u0440\u0435 \u0444\u0430\u0437\u044b, \u0448\u0435\u0441\u0442\u044c \u0434\u043d\u0435\u0439, 12 upstream-issues\u041a\u0430\u0436\u0434\u0430\u044f \u0444\u0430\u0437\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435, \u0432\u0435\u0440\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0431\u0430\u0433\u0438 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 anthropics\/claude-code:\u0424\u0430\u0437\u0430 1 \u2014 \u0421\u0435\u0441\u0441\u0438\u0438, permissions, \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430. \u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b \u043f\u043e \u0432\u0441\u0435\u043c 5 \u0441\u043b\u043e\u044f\u043c settings.json. \u0414\u0435\u0442\u0435\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0442\u0443\u0445\u0448\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u0447\u0435\u0440\u0435\u0437 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432. \u041a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430: \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0438 \u0434\u043e\u043b\u043b\u0430\u0440\u043e\u0432 \u0441\u0442\u043e\u044f\u0442 \u0432\u0430\u0448\u0438 CLAUDE.md + memory + \u0441\u043a\u0438\u043b\u043b\u044b \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435. Soft-delete \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443 \u043d\u0430 30 \u0434\u043d\u0435\u0439.\u0424\u0430\u0437\u0430 2 \u2014 \u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043f\u0430\u043c\u044f\u0442\u0438, \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u0445\u0443\u043a\u043e\u0432, \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a. \u041f\u0430\u0440\u0441\u0438\u043d\u0433 frontmatter \u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f memory-\u0444\u0430\u0439\u043b\u043e\u0432 (user\/feedback\/project\/reference). \u041a\u0440\u043e\u0441\u0441-\u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u0434\u0435\u0442\u0435\u043a\u0442 \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u043e\u0432. \u0421\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0445\u0443\u043a\u043e\u0432 \u0434\u043b\u044f 9 \u0442\u0438\u043f\u043e\u0432 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0441 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u043c\u0438 payload \u2014 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0445\u0443\u043a\u0438 Claude Code \u043b\u043e\u043c\u0430\u044e\u0442\u0441\u044f \u043c\u043e\u043b\u0447\u0430, \u0438 \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043e\u0442\u043b\u0430\u0434\u0438\u0442\u044c \u0438\u0445 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e (\u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 issues #11544, #10401, #16564). \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a cron\/schtasks \u0441 6 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c\u0438.\u0424\u0430\u0437\u0430 3 \u2014 Monorepo, watcher, \u0434\u0430\u0448\u0431\u043e\u0440\u0434 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438. \u041e\u0431\u0445\u043e\u0434 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0441 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u043a\u0430\u0436\u0434\u043e\u0433\u043e .claude\/ \u043a\u0430\u043a real\/nested\/junk. \u0424\u043e\u043d\u043e\u0432\u044b\u0439 \u0434\u0435\u043c\u043e\u043d \u0434\u043b\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u0437\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438. \u0415\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u044b\u0435 \u0441\u043d\u0430\u043f\u0448\u043e\u0442\u044b \u0432 \u0434\u0430\u0448\u0431\u043e\u0440\u0434. \u042d\u043a\u0441\u043f\u043e\u0440\u0442\/\u0438\u043c\u043f\u043e\u0440\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441 SHA-256 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u043e\u043c.\u0424\u0430\u0437\u0430 4 \u2014 Safety net \u0434\u043b\u044f Auto Dream. \u0420\u0430\u0434\u0438 \u0447\u0435\u0433\u043e \u0432\u0441\u0451 \u0437\u0430\u0442\u0435\u0432\u0430\u043b\u043e\u0441\u044c. \u0424\u043e\u043d\u043e\u0432\u044b\u0439 watcher \u043f\u043e\u043b\u043b\u0438\u0442 .consolidate-lock \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443. Pre-\u0441\u043d\u0430\u043f\u0448\u043e\u0442 \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0438\u0441\u044c\u044e Dream, post-\u0441\u043d\u0430\u043f\u0448\u043e\u0442 \u043f\u043e\u0441\u043b\u0435. dream diff \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c. dream rollback \u043e\u0442\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u0442. dream doctor \u2014 10 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f: \u0437\u0430\u0432\u0438\u0441\u0448\u0438\u0439 lock, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 autoDreamEnabled, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 .dream-log.md, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e memory-\u0444\u0430\u0439\u043b\u043e\u0432, \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u044b, \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0430\u0449\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0438.12 upstream-issues \u0437\u0430\u043a\u0440\u044b\u0442\u044b \u043f\u043e \u0432\u0441\u0435\u043c \u0447\u0435\u0442\u044b\u0440\u0451\u043c \u0444\u0430\u0437\u0430\u043c \u0437\u0430 6 \u0434\u043d\u0435\u0439 (v0.1.1 5 \u043c\u0430\u044f \u2014 v0.4.0 11 \u043c\u0430\u044f). \u041a\u0430\u0436\u0434\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 CHANGELOG \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043d\u043e\u043c\u0435\u0440 issue.## \u041a\u043e\u043c\u0430\u043d\u0434\u044b, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430\u0447\u0430\u0442\u044c\u042d\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0438\u0442\u0430\u044e\u0442 \u2014 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0440\u0438\u0441\u043a:&#171;`cc-janitor perms audit          # \u043a\u0430\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u0440\u043e\u0442\u0443\u0445\u043b\u0438 \u0438\u043b\u0438 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044fcc-janitor context cost         # \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u043e\u0438\u0442 \u0432\u0430\u0448 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0437\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 $cc-janitor dream doctor         # 10 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f Auto Dreamcc-janitor stats sleep-hygiene  # \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0433\u0438\u0433\u0438\u0435\u043d\u044b \u043f\u0430\u043c\u044f\u0442\u0438&#171;`\u0415\u0441\u043b\u0438 context cost \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0447\u0442\u043e \u0432\u044b \u0441\u0436\u0438\u0433\u0430\u0435\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0447\u0435\u043c \u0434\u0443\u043c\u0430\u043b\u0438, \u0438\u043b\u0438 perms audit \u043d\u0430\u0439\u0434\u0451\u0442 \u0447\u0442\u043e 60% \u043f\u0440\u0430\u0432\u0438\u043b \u043f\u0440\u043e\u0442\u0443\u0445\u043b\u0438 \u2014 \u0431\u0443\u0434\u0435\u0442\u0435 \u0437\u043d\u0430\u0442\u044c \u0441\u0442\u043e\u0438\u0442 \u043b\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0447\u0438\u0441\u0442\u043a\u0435.\u041c\u0443\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0442\u0440\u0435\u0431\u0443\u044e\u0442 CC_JANITOR_USER_CONFIRMED=1 \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 &#8212;dry-run. \u0423\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0435 \u043b\u0435\u0436\u0438\u0442 \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0435 30 \u0434\u043d\u0435\u0439. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043e\u0442\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 cc-janitor undo.## Safety model \u2014 by design, \u043d\u0435 by hope\u0421\u0435\u043c\u044c \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u0437\u0430\u0449\u0438\u0442\u044b: env-var gate \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u043c\u0443\u0442\u0430\u0446\u0438\u0438, soft-delete \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443 (30 \u0434\u043d\u0435\u0439), timestamped backup \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u044c\u044e \u0432 settings.json, append-only JSONL audit log (\u0440\u043e\u0442\u0430\u0446\u0438\u044f \u043d\u0430 10 \u041c\u0411), reversible undo, pre\/post \u0441\u043d\u0430\u043f\u0448\u043e\u0442\u044b \u0432\u043e\u043a\u0440\u0443\u0433 Dream, hard cap \u0434\u043b\u044f scheduled-\u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432 (\u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 runaway cron). \u041a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 safety-\u0444\u0438\u043a\u0441 \u0432 0.3.2: TUI \u0440\u0430\u043d\u0435\u0435 \u043e\u0431\u0445\u043e\u0434\u0438\u043b env-var gate \u0447\u0435\u0440\u0435\u0437 os.environ.setdefault \u2014 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \u0447\u0435\u0440\u0435\u0437 scoped context manager.\u0415\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u044e\u0442\u0441\u044f \u2014 \u044d\u0442\u043e P0. Safety model \u2014 \u044d\u0442\u043e \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442.## \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430&#171;`uv tool install cc-janitor# \u0438\u043b\u0438pipx install cc-janitor&#171;`202 \u0442\u0435\u0441\u0442\u0430. CI \u043d\u0430 Linux\/macOS\/Windows. Python 3.11+. MIT.## \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438- [\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f Claude Code: Memory](https:\/\/code.claude.com\/docs\/en\/memory) \u2014 \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 Auto Dream- [Issue #47959](https:\/\/github.com\/anthropics\/claude-code\/issues\/47959) \u2014 Auto Dream \u043c\u043e\u043b\u0447\u0430 \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u0430\u043c\u044f\u0442\u0438- [Issue #50694](https:\/\/github.com\/anthropics\/claude-code\/issues\/50694) \u2014 \u0437\u0430\u0432\u0438\u0441\u0448\u0438\u0439 .consolidate-lock \u043c\u043e\u043b\u0447\u0430 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 Auto Dream- [Matt Pocock\u2019s skills repo](https:\/\/github.com\/mattpocock\/skills) \u2014 \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f reference \u0434\u043b\u044f Claude Code \u0441\u043a\u0438\u043b\u043b\u043e\u0432- [Simon Willison\u2019s Claude Code TILs](https:\/\/til.simonwillison.net\/claude-code\/) \u2014 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0431\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 \u043f\u043e Claude Code\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1034614\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-479568","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/479568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=479568"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/479568\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=479568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=479568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=479568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}