frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Claude Cognitive – Working memory for Claude Code

https://github.com/GMaN1911/claude-cognitive
15•MirrorEthic•1mo ago

Comments

MirrorEthic•1mo ago
I built Claude Cognitive because Claude Code kept forgetting my codebase between sessions.

The problem: Claude Code is stateless. Every new instance rediscovers your architecture from scratch, hallucinates integrations that don't exist, repeats debugging you already tried, and burns tokens re-reading unchanged files.

At 1M+ lines of Python (3,400 modules across a distributed system), this was killing my productivity.

The solution is two systems:

1. Context Router – Attention-based file injection. Files get HOT/WARM/COLD scores based on recency and keyword activation. HOT files inject fully, WARM files inject headers only, COLD files evict. Files decay over turns, co-activate with related files. Result: 64-95% token reduction.

2. Pool Coordinator – Multi-instance state sharing. Running 8 concurrent Claude Code instances, they now share completions and blockers. No duplicate debugging, no stepping on each other.

Results after months of daily use: - New instances productive on first message - Zero hallucinated imports - Token usage down 70-80% average - Works across multi-day sessions

Open source (MIT). Works with Claude Code today via hooks.

GitHub: https://github.com/GMaN1911/claude-cognitive

Happy to answer questions about the architecture or implementation details.

mehmetkose•1mo ago
wasn’t Claude.md’s doing this?
MirrorEthic•1mo ago
CLAUDE.md is static same content every session (and a soft 40k character limit)

This is dynamic attention routing. Files get scored based on what you're actively discussing. mention "auth" and auth-related docs go HOT (full injection), related files go WARM (headers only), unrelated files stay COLD (evicted).

Scores decay over turns. If you stop talking about auth, those files fade back to COLD automatically.

Plus multi-instance coordination, concurrent Claude sessions sharing completions and blockers so they don't duplicate work.

25k character limit on injection, so you compact less and stay focused where its needed. Ive also seen it help alot with the post compacting context wobble that occurs.

mehmetkose•1mo ago
Thanks, now i have clear understanding. The thing is, what’s the token/result ratio with this extension? Is there any way to benchmark?
MirrorEthic•1mo ago
Good question. I don't have a formal benchmark yet, but here's what I've measured in practice:

Token reduction: 64-95% depending on codebase size and work pattern. The variance is because it depends on how many files are in your .claude/ directory and how focused your session is.

How to measure yourself: 1. Check `~/.claude/attention_history.jsonl` after a session 2. Run `python3 ~/.claude/scripts/history.py --since 2h` to see what got injected vs evicted 3. Compare your token counts before/after in Claude Code's usage stats

The 25k character injection cap is the key constraint (adjustable), forces the router to prioritize ruthlessly instead of dumping everything in.

A proper benchmark comparing baseline Claude Code vs claude-cognitive on identical tasks would be useful. If someone wants to build that, I'd happily collaborate.

MirrorEthic•1mo ago
Sorry about the late reply!
MirrorEthic•1mo ago
v1.1.0 Just Dropped

33k views and 80+ stars in 24 hours — thank you. Your feedback drove this:

What's New

Attention History Tracking Every turn now logs to `~/.claude/attention_history.jsonl`. Query your trajectory:

```bash python3 ~/.claude/scripts/history.py --since 2h python3 ~/.claude/scripts/history.py --file ppe --transitions [12:22:35] Instance A | Turn 26 Query: what divergence dynamics? HOT: divergent.md, t3-telos.md, cvmp-transformer.md WARM: pipeline.md, orin.md (+3 more) ⬆ Promoted to HOT: divergent.md

Fractal Documentation Nested paths now activate correctly. modules/t3-telos/trajectories/convergent.md triggers parent co-activation.

Update cd ~/.claude-cognitive && git pull cp scripts/history.py ~/.claude/scripts/

Study confirms experience beats youthful enthusiasm

https://www.theregister.com/2026/02/07/boomers_vs_zoomers_workplace/
1•Willingham•4m ago•0 comments

The Big Hunger by Walter J Miller, Jr. (1952)

https://lauriepenny.substack.com/p/the-big-hunger
1•shervinafshar•5m ago•0 comments

The Genus Amanita

https://www.mushroomexpert.com/amanita.html
1•rolph•10m ago•0 comments

We have broken SHA-1 in practice

https://shattered.io/
1•mooreds•10m ago•1 comments

Ask HN: Was my first management job bad, or is this what management is like?

1•Buttons840•12m ago•0 comments

Ask HN: How to Reduce Time Spent Crimping?

1•pinkmuffinere•13m ago•0 comments

KV Cache Transform Coding for Compact Storage in LLM Inference

https://arxiv.org/abs/2511.01815
1•walterbell•17m ago•0 comments

A quantitative, multimodal wearable bioelectronic device for stress assessment

https://www.nature.com/articles/s41467-025-67747-9
1•PaulHoule•19m ago•0 comments

Why Big Tech Is Throwing Cash into India in Quest for AI Supremacy

https://www.wsj.com/world/india/why-big-tech-is-throwing-cash-into-india-in-quest-for-ai-supremac...
1•saikatsg•19m ago•0 comments

How to shoot yourself in the foot – 2026 edition

https://github.com/aweussom/HowToShootYourselfInTheFoot
1•aweussom•20m ago•0 comments

Eight More Months of Agents

https://crawshaw.io/blog/eight-more-months-of-agents
3•archb•22m ago•0 comments

From Human Thought to Machine Coordination

https://www.psychologytoday.com/us/blog/the-digital-self/202602/from-human-thought-to-machine-coo...
1•walterbell•22m ago•0 comments

The new X API pricing must be a joke

https://developer.x.com/
1•danver0•23m ago•0 comments

Show HN: RMA Dashboard fast SAST results for monorepos (SARIF and triage)

https://rma-dashboard.bukhari-kibuka7.workers.dev/
1•bumahkib7•23m ago•0 comments

Show HN: Source code graphRAG for Java/Kotlin development based on jQAssistant

https://github.com/2015xli/jqassistant-graph-rag
1•artigent•28m ago•0 comments

Python Only Has One Real Competitor

https://mccue.dev/pages/2-6-26-python-competitor
3•dragandj•30m ago•0 comments

Tmux to Zellij (and Back)

https://www.mauriciopoppe.com/notes/tmux-to-zellij/
1•maurizzzio•31m ago•1 comments

Ask HN: How are you using specialized agents to accelerate your work?

1•otterley•32m ago•0 comments

Passing user_id through 6 services? OTel Baggage fixes this

https://signoz.io/blog/otel-baggage/
1•pranay01•33m ago•0 comments

DavMail Pop/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway

https://davmail.sourceforge.net/
1•todsacerdoti•33m ago•0 comments

Visual data modelling in the browser (open source)

https://github.com/sqlmodel/sqlmodel
1•Sean766•35m ago•0 comments

Show HN: Tharos – CLI to find and autofix security bugs using local LLMs

https://github.com/chinonsochikelue/tharos
1•fluantix•36m ago•0 comments

Oddly Simple GUI Programs

https://simonsafar.com/2024/win32_lights/
1•MaximilianEmel•36m ago•0 comments

The New Playbook for Leaders [pdf]

https://www.ibli.com/IBLI%20OnePagers%20The%20Plays%20Summarized.pdf
1•mooreds•37m ago•1 comments

Interactive Unboxing of J Dilla's Donuts

https://donuts20.vercel.app
1•sngahane•38m ago•0 comments

OneCourt helps blind and low-vision fans to track Super Bowl live

https://www.dezeen.com/2026/02/06/onecourt-tactile-device-super-bowl-blind-low-vision-fans/
1•gaws•40m ago•0 comments

Rudolf Vrba

https://en.wikipedia.org/wiki/Rudolf_Vrba
1•mooreds•40m ago•0 comments

Autism Incidence in Girls and Boys May Be Nearly Equal, Study Suggests

https://www.medpagetoday.com/neurology/autism/119747
1•paulpauper•41m ago•0 comments

Wellness Hotels Discovery Application

https://aurio.place/
1•cherrylinedev•42m ago•1 comments

NASA delays moon rocket launch by a month after fuel leaks during test

https://www.theguardian.com/science/2026/feb/03/nasa-delays-moon-rocket-launch-month-fuel-leaks-a...
2•mooreds•42m ago•0 comments