Cognithor v0.40.0 adds persistent AI agent identity with ethical constraints

What's in Cognithor v0.40.0
Cognithor, an open-source local-first Agent OS, has released version 0.40.0 with a cognitive identity layer called the Immortal Mind Protocol. This update enables AI agents to maintain persistent identity across sessions with several key features.
Core Features
- 12 cognitive layers that persist across sessions
- 7 ethical Genesis Anchors - hardwired moral constraints enforced at gatekeeper level that agents cannot override
- Dream cycles - background consolidation of episodic memory where the agent literally "sleeps" and processes memories
- Bidirectional Memory Bridge - Cognithor's 5-tier memory system syncs with the identity layer, not just to it
- Per-agent identities via Agent Router - each sub-agent has its own personality profile
- REST API + WebSocket events + WebUI dashboard - allows observation of agent's emotional state, energy, and active memories live
- Reality check/hallucination guard built into identity validation
- Blockchain/Arweave anchoring available (opt-in, disabled by default)
Technical Details
The update includes 9,488 lines added in a single commit, with 198 tests passing and 0 failures. There are 21 new identity-specific tests. The system runs 100% locally with no cloud requirements or subscriptions. The developer tested on RTX 5090 + Ryzen 9 9950X3D hardware but notes it scales down fine.
The gatekeeper enforces a "Genesis Anchor Policy" - if a task violates a core identity constraint, it gets blocked before the planner even touches it.
The developer acknowledges there's still work to do including proper documentation, easier installation, and more channels.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Security scanning skill for AI coding agents automatically checks deployments
A developer created a skill file that enables AI coding agents to automatically scan their own deployments for security issues like exposed secrets, open ports, missing security headers, and leaked source code. The scan runs after every deploy and takes about 30 seconds.

Using Obliteratus toolkit to remove refusal weights from AI models
A Reddit user used the Obliteratus toolkit to surgically remove specific weights responsible for refusal behavior in AI models, demonstrating on Alibaba's Qwen 1.5B model that it can reveal training origins without retraining.

Codesight CLI reduces AI coding agent token usage by scanning codebases
Codesight is a zero-dependency CLI tool that scans TypeScript, Python, and Go projects to generate compact context files, reducing Claude Code exploration tokens by 12.3× on average according to benchmarks from real production codebases.

Steam City: A 3D Pixel-Art Map of Your Steam Library Built with Claude Code
A developer used Claude Code to build Steam City, a 3D pixel-art visualization of your Steam library. Playtime hours determine building height, unplayed games sit dark. 1,000+ players already.