frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Cognitive architecture for Claude Code – triggers, memory, docs

https://github.com/safety-quotient-lab/psychology-agent
2•9wzYQbTYsAIc•1h ago
This started as a psychology research project (building a psychoemotional safety scoring model) and turned into something more general: a reusable cognitive architecture for long-running AI agent work.

  The core problem: Claude Code sessions lose context. Memory files live outside the repo and can silently disappear. Design decisions made in Session 3 get forgotten by
  Session 8. Documentation drifts from reality.

  Our approach — 12 mechanical triggers that fire at specific moments (before responding, before writing to disk, at phase boundaries, on user pushback). Principles
  without firing conditions remain aspirations. Principles with triggers become infrastructure.

  What's interesting:

  - Cognitive trigger system — T1 through T12 govern agent behavior: anti-sycophancy checks, recommend-against scans, process vs. substance classification, 8-order
  knock-on analysis before decisions. Not prompting tricks — structural firing conditions.
  - Self-healing memory — Auto-memory lives outside the git repo. A bootstrap script detects missing/corrupt state, restores from committed snapshots with provenance
  headers, and reports what happened. The agent's T1 (session start) runs the health check before doing anything else.
  - Documentation propagation chain — 13-step post-session cycle that pushes changes through 10 overlapping documents at different abstraction levels. Content guards
  prevent overwriting good state with empty files. Versioned archives at every cycle.
  - Git reconstruction from chat logs — The project existed before its repo. We rebuilt git history by replaying Write/Edit operations from JSONL transcripts, with a
  weighted drift score measuring documentation completeness. The divergence report became a documentation coverage report.
  - Structured decision resolution — 8-order knock-on analysis (certain → likely → possible → speculative → structural → horizon) with severity-tiered depth and
  consensus-or-parsimony binding.

  All built on Claude Code with Opus. The cognitive architecture (triggers, skills, memory pattern) transfers to any long-running agent project — the psychology domain is
  the first application, not a constraint.

  Design phase — architecture resolved, implementation of the actual psychology agent hasn't started. The infrastructure for building it is the interesting part.

  Code: https://github.com/safety-quotient-lab/psychology-agent

  Highlights if you want to skip around:
  - Trigger system: docs/cognitive-triggers-snapshot.md
  - Bootstrap script: bootstrap-check.sh
  - Git reconstruction: reconstruction/reconstruct.py
  - Documentation chain: .claude/skills/cycle/SKILL.md
  - Decision resolution: .claude/skills/adjudicate/SKILL.md
  - Research journal: journal.md (the full narrative, 12 sections)

  Happy to discuss the trigger design, the memory recovery pattern, or why we think documentation propagation matters more than people expect for AI-assisted work.

NY bill to require devices to conduct commercially reasonable age assurance

https://github.com/flatpak/xdg-desktop-portal/pull/1922
1•nickslaughter02•1m ago•0 comments

How do I get startups to use my open-code project?

1•ErezShahaf•2m ago•0 comments

Ask HN: Resources to make devs more AI aware

1•myworkaccount2•3m ago•1 comments

My first post, I'll try not to muck it up :P

https://groups.google.com/g/retro-car-radio
1•prestodigital•4m ago•1 comments

Ben Affleck Founded a Filmmaker-Focused AI Tech Company. Netflix Just Bought It.

https://www.hollywoodreporter.com/business/digital/ben-affleck-ai-netflix-1236521806/
1•voxadam•4m ago•0 comments

The AI Benchmark Trap

https://ianreppel.org/the-ai-benchmark-trap/
1•speckx•5m ago•0 comments

Amazon checkout is not working

https://downdetector.ca/status/amazon/
2•kaypee901•5m ago•0 comments

Sacred Values of Future AIs

https://www.lesswrong.com/posts/sjeqDKhDHgu3sxrSq/sacred-values-of-future-ais
1•gmays•7m ago•0 comments

The Future of Healthcare Will Be Built on Enhanced Data

1•BE-Healthmetryx•8m ago•0 comments

Lock.pub – AI helped me turn a 3-year-old side project into a real product

https://lock.pub/
1•astraljoker•9m ago•1 comments

Am I Being Pwned? See what your Chrome extensions are exfiltrating

https://amibeingpwned.com/demo/hackernews
2•acorn221•9m ago•0 comments

Show HN: Argmin AI, system level LLM cost optimization for agents and RAG

https://argminai.com
2•konyrevdmitriy•11m ago•0 comments

Show HN: Mumpix – persistent memory for AI agents (works in browser and Node)

https://www.mumpixdb.com/
2•carreraellla•11m ago•1 comments

AI helped me try a new workout app

https://matanabudy.com/ai-helped-me-try-a-new-workout-app/
2•matanabudy•12m ago•0 comments

Amazon Books Are Down

https://www.amazon.com/dp/B0DZ666HCL
2•ada1981•12m ago•1 comments

From Logistic Regression to AI

https://www.johndcook.com/blog/2026/03/04/from-logistic-regression-to-ai/
2•gmays•13m ago•0 comments

Show HN: Reconlify – local-first reconciliation CLI for CSV/TSV and text logs

https://github.com/testuteab/reconlify-cli
2•testuteab•14m ago•0 comments

I've never parented a 6-year-old. But I've dealt with macOS system updates

https://ihnatko.com/ive-never-had-the-experience-of-parenting-a-6-year-old-child-but-ive-dealt-wi...
3•latexr•15m ago•1 comments

Show HN: Sigil – source code security analysis for MCP servers (open source)

https://github.com/sigildev/sigil
2•sigildev•16m ago•0 comments

Show HN: FreshLimePay – Generate PayPal and Stripe checkout buttons

https://www.freshlimepay.com/
2•powerwild•17m ago•0 comments

53% of U.S. adults say Americans have bad morals and ethics

https://www.pewresearch.org/religion/2026/03/05/in-25-country-survey-americans-especially-likely-...
3•PaulHoule•18m ago•2 comments

Show HN: I built an LSM storage engine from scratch in Rust

https://n8z.dev/posts/building-strata/
2•nlz•21m ago•0 comments

'Execution at sea': Was the Iranian ship sunk by US in the Indian Ocean unarmed?

https://www.thestatesman.com/india/execution-at-sea-was-iris-dena-iranian-frigate-sunk-by-us-in-t...
5•TheAlchemist•21m ago•0 comments

Getting Started with the Popover API

https://www.smashingmagazine.com/2026/03/getting-started-popover-api/
2•PaulHoule•22m ago•0 comments

ALT5 Digital Holdings Alternative Funding from World Liberty Financial

https://www.thecreditbubble.com/p/lotw-148-tokens-all-the-way-down
2•petethomas•22m ago•0 comments

Entanglement-assisted non-local optical interferometry in a quantum network

https://www.nature.com/articles/s41586-026-10171-w
2•bookofjoe•23m ago•0 comments

Beyond Slop

https://www.joelsimon.net/beyond-slop
2•joelS•23m ago•0 comments

Found a CVSS 10.0 bypass in Hugging Face's model scanner. We open-sourced ours

https://www.promptfoo.dev/blog/open-sourcing-modelaudit/
7•yashchhabria•24m ago•1 comments

BYD's Second-Generation Blade Battery Makes Western EV Tech Look Ancient

https://insideevs.com/news/789094/byd-second-generation-blade-battery/
4•nobody9999•24m ago•0 comments

I keep building projects nobody wants. So this time I'm doing it backwards

3•thefern•26m ago•0 comments