{"id":"2039019461085368476","url":"https://x.com/0xAndros/status/2039019461085368476","text":"So many people hating on how many lines of code this is and how it's \"slop\"\n\nBut Claude Code still has the best memory, context recall and speed that all agent builders should learn from.\n\n1. Loads memory from 6 priority layers, bottom to top:\n\nOrg policy → user prefs → project rules → local overrides → auto-extracted memories → team-synced shared memory.\n\nRules can be conditional: they only activate when you're touching matching files. Auto-recall uses a side-query to rank and pick the top 5 most relevant memories from 200+ candidates.\n\nThe whole thing is memoized per session. It's closer to a filesystem than a prompt.\n\n2. Compresses Context with 3 tiers: \n\nTier 1: Replay a pre-extracted session summary ((min 10K tokens, max 40K). No API call. Fastest. \n\nTier 2: Surgically prune old tool results from the cached prefix without rebuilding the cache. Cache-safe.\n\nTier 3: Full conversation summarization via Sonnet. Last resort. Has a retry loop that progressively truncates the head if the compaction request itself is too long\n\n3. Parallelization everywhere\n\nStartup fires keychain reads, git ops, and subprocess work all concurrently: I/O finishes during module import, effectively free (65ms). Nothing blocks first render.\n\nFile search returns results in ~5ms before the index finishes building. Fork agents share byte-identical request prefixes for max prompt cache reuse.\n\nTools declare themselves as concurrency-safe and execute in parallel during streaming. If one errors, siblings abort but the parent query continues.\n\nA function literally named DANGEROUS_uncachedSystemPromptSection() exists to scare devs away from breaking the cache.\n\nNothing is allowed to be slow.","author":{"name":"Andros","username":"0xAndros","avatarUrl":"https://pbs.twimg.com/profile_images/2031061027841073152/Yn3nOLDZ_200x200.jpg"},"createdAt":"Tue Mar 31 16:38:17 +0000 2026","engagement":{"replies":4,"retweets":2,"likes":18,"views":790},"quoteTweet":{"id":"2038894956459290963","url":"https://x.com/Fried_rice/status/2038894956459290963","text":"Claude code source code has been leaked via a map file in their npm registry! \n\nCode: https://pub-aea8527898604c1bbb12468b1581d95e.r2.dev/src.zip","author":{"name":"Chaofan Shou","username":"Fried_rice","avatarUrl":"https://pbs.twimg.com/profile_images/1959105085117800453/zJZUjk95_200x200.jpg"},"createdAt":"Tue Mar 31 08:23:33 +0000 2026"},"adhxContext":{"savedByCount":1,"publicTags":[],"previewUrl":"https://adhx.com/0xAndros/status/2039019461085368476"}}