Show HN: A plain-text cognitive architecture for Claude Code
TL;DR Highlight
Cog promises centralised memory for AI agents, but the source offers only one line
Who Should Read
Developers looking for ways to add long-term memory to Claude Code
Core Mechanics
- The source is a single line
- The article contains only "Cog — Centralised memory for AI agents".
- Structure, mechanics, and numbers are not in the source.
- What the title says
- The title presents a plain-text cognitive architecture for Claude Code.
- The subtitle describes centralised memory for AI agents.
Community Reactions
- Opinion that memory should be purpose-driven
- One commenter said that if answers become memories, you should define the answer structure or question sequence.
- That keeps memory useful instead of chaotic.
- Experience tracking confidence and contradictions
- One commenter tagged beliefs with confidence scores and timestamps and decayed ones not reinforced.
- Conflicting observations both stay in a contradictions log, default status unresolved.
- Experience: store corrections, not facts
- One commenter said a well-structured CLAUDE.md matters more than the memory architecture.
- Corrections with reasons, like not mocking the DB because a migration failed, work better than facts like "DB is PostgreSQL 16".
- Opinion that memory is overkill for coding agents
- One commenter said Rules and Skills are more explicit and easier to maintain for coding agents.
- Memory may fit personal assistants better.
How to Apply
- Add corrections with reasons to CLAUDE.md
- Today, write three "don't do X, because Y" rules in CLAUDE.md.
- Cut plain fact lists.
- Add dates and confidence to memory entries
- Put a date and confidence (high/low) on each memory entry.
- Keep conflicting items in a separate contradictions list instead of deleting them.
Try It
# Paste into Claude Code as is (simplified version of ideas from comments, not the source's method)
Read this project's CLAUDE.md and reorganize it using these rules.
1. Prefer "don't do X + reason" corrections over plain facts.
2. Add a date and confidence (high/low) to each entry.
3. Don't delete conflicting entries; put both in a 'Contradictions' section marked 'unresolved'.
Recent correction: {{correction}}Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques