
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@kernel.chat/memory-tiers
Advanced tools
Three-tier generative memory for AI agents: observations → reflections → identity. Based on Stanford's Generative Agents paper. Zero LLM calls.
Three-tier generative memory for AI agents: observations → reflections → identity. Based on Stanford's Generative Agents paper. Zero LLM calls.
Part of the kernel.chat open-source stack. Used by
@kernel.chat/kbot to give specialist agents a persistent sense of what
they've seen, what it means, and who they're becoming over time.
Single-tier memory (a flat log of everything) doesn't scale: every query re-scans the whole history. Two-tier memory (raw + summary) loses the why behind the what.
This package implements three tiers, each derived from the one below:
The synthesis between tiers is rule-based and deterministic — no LLM call. This makes it cheap to run continuously and replayable for audit.
npm install @kernel.chat/memory-tiers
import { MemorySystem } from '@kernel.chat/memory-tiers'
const memory = new MemorySystem({
// Optional config — thresholds for synthesis cadence, retention, etc.
})
// Tier 1 — feed observations as they happen.
memory.observe('User asked about Polymarket Trump 2028 odds', 'query', {
threadId: 'abc',
})
memory.observe('Tool call: polymarket_query succeeded in 312ms', 'tool')
// Tier 2 — periodically synthesize reflections.
const reflections = memory.synthesize()
// Tier 3 — let reflections accumulate into identity.
const identity = memory.evolve()
// Read each tier back.
const observations = memory.getObservations('query')
const allReflections = memory.getReflections()
const traits = memory.getIdentity()
// Persist across runs.
memory.save('./memory.json')
memory.load('./memory.json')
// Inspect.
console.log(memory.summary())
console.log(memory.getStats())
| Export | Shape |
|---|---|
MemorySystem | Main class — observe, getObservations, synthesize, getReflections, evolve, getIdentity, toJSON/fromJSON, save/load, getStats, summary |
Observation | Tier 1 entry |
ObservationCategory | Union of categories (query, tool, error, etc.) |
Reflection | Tier 2 entry |
IdentityTrait | Tier 3 entry |
MemoryState | Serialized state shape |
MemoryConfig | Constructor config |
v1.0.x — production use inside @kernel.chat/kbot; light external test
coverage. The three-tier model has been running in kbot since early 2026.
The public API is stable. External test suite expanded in v1.1.
File issues at github.com/isaacsight/kernel if you hit edge cases outside the kernel.chat usage path.
| Package | Discipline |
|---|---|
| @kernel.chat/kbot | The agent itself |
| @kernel.chat/prompt-evolver | Prompt self-optimization from traces |
| @kernel.chat/skill-router | Bayesian routing across specialists |
| @kernel.chat/tool-forge | Runtime tool creation |
See docs/agentic-engineering.md
for the field map this package sits inside.
MIT.
FAQs
Three-tier generative memory for AI agents: observations → reflections → identity. Based on Stanford's Generative Agents paper. Zero LLM calls.
The npm package @kernel.chat/memory-tiers receives a total of 11 weekly downloads. As such, @kernel.chat/memory-tiers popularity was classified as not popular.
We found that @kernel.chat/memory-tiers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.