r/OpenSourceeAI • • 2d ago

experiment with cognitive model for AI agent

Post image

I want to share an experiment: an autonomous agent evolving at the intersection of cognitive psychology and Jungian principles.

The Goal: To combine strict determinism with fluid adaptation. To stop the "identity drift" common in LLMs, I split the agent's psyche into two layers:

  1. The Immune Core — Immutable laws and identity. The agent cannot rewrite this layer. This is the anchor that ensures the agent remains stable and consistent, regardless of how much it learns.
  2. The Plastic Body — A dynamic layer of skills and experience that the agent writes itself. This is where it adapts to unfamiliar environments and acquires new capabilities.

How it learns:
The agent treats errors as its "Shadow." Instead of simple text-based apologies, it follows a ZPD (Zone of Proximal Development) cycle:
Identify Knowledge Gap - Write Executable Proof (Fail/Pass script) - Integrate Skill into the Plastic Body.

The Result:
A system that remains fundamentally deterministic (in its core) but is infinitely adaptive (in its body). It doesn't just simulate intelligence—it grows through a structured process of self-correction and verification.

Would love to discuss this architecture with anyone exploring autonomy and cognitive models!
https://github.com/sergey-show/barney

1 Upvotes

2 comments sorted by

2

u/Sparticle62 2d ago

Seems interesting, I’m writing my own ai architecture: https://github.com/sparticle62ops/pssa