Skip to content

Instantly share code, notes, and snippets.

View Houstoten's full-sized avatar
🇺🇦

Ivan Husarov Houstoten

🇺🇦
View GitHub Profile
@Houstoten
Houstoten / autoDream.ts
Created March 31, 2026 10:58
Claude Code internals: AutoDream, Buddy companion, prompt cache economics, microcompact
// biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered
// Background memory consolidation. Fires the /dream prompt as a forked
// subagent when time-gate passes AND enough sessions have accumulated.
//
// Gate order (cheapest first):
// 1. Time: hours since lastConsolidatedAt >= minHours (one stat)
// 2. Sessions: transcript count with mtime > lastConsolidatedAt >= minSessions
// 3. Lock: no other process mid-consolidation
//
// State is closure-scoped inside initAutoDream() rather than module-level
@Houstoten
Houstoten / ff3__all.csv
Last active March 25, 2024 21:07
ff3__all.csv
Date Mkt-RF SMB HML RF
20190322 -2.17 -1.52 -0.07 0.009
20190325 -0.05 0.66 -0.25 0.009
20190326 0.76 0.17 0.46 0.009
20190327 -0.50 0.10 0.50 0.009
20190328 0.40 0.34 0.02 0.009
20190329 0.66 -0.22 -0.92 0.009
20190401 1.19 -0.30 0.99 0.010
20190402 -0.05 -0.13 -0.44 0.010
20190403 0.27 0.22 -0.40 0.010
Date Mkt-RF SMB HML RF
20220322 1.31 0.04 -1.16 0.000
20220323 -1.26 -0.64 0.38 0.000
20220324 1.42 -0.09 -0.79 0.000
20220325 0.27 -0.59 2.18 0.000
20220328 0.73 -0.56 -1.70 0.000
20220329 1.45 1.54 -1.92 0.000
20220330 -0.83 -1.28 0.40 0.000
20220331 -1.55 0.71 -0.44 0.000
20220401 0.39 0.69 -0.59 0.001