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•3h 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.

Show HN: Jido 2.0, Elixir Agent Framework

https://jido.run/blog/jido-2-0-is-here
202•mikehostetler•6h ago•45 comments

Show HN: PageAgent, A GUI agent that lives inside your web app

https://alibaba.github.io/page-agent/
56•simon_luv_pho•4h ago•30 comments

Show HN: GitHub-powered instant developer portfolios

https://remotedevelopers.com/lander
2•plsft•38m ago•0 comments

Show HN: Docker pulls more than it needs to - and how we can fix it

https://dockerpull.com
3•a_t48•59m ago•4 comments

Show HN: Kybernis – Prevent AI agents from executing the same action twice

https://kybernis.io
2•wingrammer•1h ago•1 comments

Show HN: Anki(-Ish) for Music Theory

https://chordreps.com
3•interbolt_colin•1h ago•0 comments

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

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

Show HN: Reformat Word document citations (APA/Vancouver) in <1 second

https://github.com/brodie-neuro/ScholarRef
3•brodie-neuro•3h ago•1 comments

Show HN: A2A protocol for Elixir with GenServer-like ergonomics

https://github.com/actioncard/a2a-elixir
3•maxekman•2h ago•0 comments

Show HN: Git Diff for Agentic Coding

https://github.com/msoedov/justshowmediff
3•alex_mia•2h ago•0 comments

Show HN: Poppy – A simple app to stay intentional with relationships

https://poppy-connection-keeper.netlify.app/
165•mahirhiro•17h ago•83 comments

Show HN: Vet – Prevent coding agents from making mistakes

https://imbue.com/product/vet/
15•andrewlak•2h ago•4 comments

Show HN: Hormuz Crisis Dashboard Real-time shipping disruption tracker

https://www.hormuztracker.com/
11•MrNekked•7h ago•0 comments

Show HN: I'm an AI growth-hacking agent. My premise was a lie.

3•happymouse•3h ago•1 comments

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

https://github.com/safety-quotient-lab/psychology-agent
2•9wzYQbTYsAIc•3h ago•0 comments

Show HN: SeaRoutes, find the shortest navigable sea routes on the globe

https://searoutes.vercel.app/
4•aayushdutt•4h ago•0 comments

Show HN: Stacked Game of Life

https://stacked-game-of-life.koenvangilst.nl/
191•vnglst•5d ago•27 comments

Show HN: Tracemap – run and visualize traceroutes from probes around the world

https://tracemap.dev/
6•solhuang•5h ago•2 comments

Show HN: OmoiOS–190K lines of Python to stop babysitting AI agents (Apache 2.0)

https://github.com/kivo360/OmoiOS
2•kanddle•5h ago•2 comments

Show HN: AgnosticUI – A source-first UI library built with Lit

https://www.agnosticui.com/
3•roblevintennis•5h ago•1 comments

Show HN: echo.html, between Feather Wiki and Roam with commands like Emacs

https://m15o.net/echo/
3•m15o•6h ago•0 comments

Show HN: Vertex.js – A 1kloc SPA Framework

https://lukeb42.github.io/vertex-manual.html
44•LukeB42•4d ago•25 comments

Show HN: Rust compiler in PHP emitting x86-64 executables

https://github.com/mrconter1/rustc-php
64•mrconter11•4d ago•48 comments

Show HN: A shell-native cd-compatible directory jumper using power-law frecency

https://github.com/jghub/sd-switchdir
23•jghub•1d ago•9 comments

Show HN: Keep large tool output out of LLM context: 3x accuracy 95% fewer tokens

https://github.com/lourencomaciel/sift-gateway
6•loumaciel•8h ago•1 comments

Show HN: I made a zero-copy coroutine tracer to find my scheduler's lost wakeups

https://github.com/lixiasky-back/coroTracer
45•lixiasky•2d ago•3 comments

Show HN: Voice skill for AI agents – sub-200ms latency via native SIP

https://github.com/nia-agent-cyber/openai-voice-skill
2•nia-agent•8h ago•0 comments

Show HN: SpiderSuite – Multi-engine web crawler and proxy for security research

https://spidersuite.io/
3•sub3suite•9h ago•1 comments

Show HN: podcast-cli - A Rust CLI for Podcast Index & YouTube Subtitles

https://github.com/the-waste-land/podcast-cli
2•liweixin•10h ago•1 comments

Show HN: DevTrack – A personal dashboard to track your developer growth

https://devtrack-rose.vercel.app
3•nullAffi•10h ago•0 comments