by HEPTANEG
A persistent memory native AI agent built for long term continuity and autonomy.
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/HEPTANEG/SemaGuides for using ai agents skills like Sema.
See how Sema compares with popular alternatives.
English | 简体中文
A persistent, memory-native AI agent.
Beyond sessions. Beyond context windows. Sema treats conversations as interaction surfaces, not as the boundary of an agent's memory.
Sema is a Windows-first experimental AI agent built around an original Memory Engine. Instead of attaching memory as a generic database or recall tool, Sema co-designs memory, attention, context construction, and the agent runtime as one system.
Memory is not merely a tool Sema calls. It is part of the runtime that shapes what Sema can perceive.
The Memory Engine preserves source evidence, maintains different layers of active state, automatically activates relevant long-term context, and performs most memory work outside the Main Agent's attention. The Main Agent can focus on understanding the user, reasoning, and acting instead of continuously deciding when and how to manage memory.
Many agents are organized around a session and a model context window:
start a conversation -> fill the context window -> summarize or truncate -> start again
That model makes the user responsible for remembering which conversation contains a fact, deciding when old information should be recalled, and re-explaining context when a new task or session begins. A memory plugin can help, but the agent often still has to notice that something is missing and choose to call a recall tool.
Sema starts from a different premise:
The current implementation provides this continuity within a workspace. The longer-term goal is a persistent personal agent whose state can remain coherent across tasks, applications, and devices.
Sema is not an agent with a memory plugin. It is a memory-native agent whose runtime behavior is organized around memory.
| Common plugin or tool pattern | Sema's memory-native design |
|---|---|
| Memory is an optional interface beside the agent loop | Memory participates in context construction and the runtime lifecycle |
| The user or model decides when to search | Memory Push automatically evaluates relevant memories for the current turn |
| The Main Agent spends reasoning effort managing recall | Dedicated memory pipelines perform candidate generation, ranking, formation, and maintenance |
| History is reduced to chunks or rolling summaries | Raw evidence and derived memory projections coexist |
| Stored information and visible context are treated similarly | Event history, working state, attention, long-term storage, and model-visible context have separate boundaries |
| Context uses a largely fixed layout | A Dynamic Context Budget adapts allocation to the current interaction |
The individual ingredients—vector retrieval, layered memory, ranking, and background maintenance—are not claimed as isolated inventions. Sema's original contribution is their integration into an evidence-preserving, session-independent memory lifecycle that is native to the agent runtime.
Memory Push is inspired by recommendation systems. A recommendation engine does not wait for a user to search for every relevant item; it builds a candidate set, ranks it against the current situation, filters noise, and delivers a small selection. Sema applies the same design intuition to memory.
Current input + Working Memory + Focus state
|
v
candidate generation
|
v
retrieval, ranking, validation
|
v
selected memory context
|
v
injected before the Main Agent call
This changes who is responsible for remembering:
Explicit retrieval and memorization tools still exist for deliberate control and complex cases. They supplement the automatic lifecycle; the lifecycle does not depend on the Main Agent choosing to call them.
Sema deliberately combines two properties:
This lets the Main Agent spend its limited attention on the user's task while specialized memory processes maintain continuity behind the scenes. The Memory Engine remains internally modular and testable even though it is a first-class part of Sema's behavior.
The Memory Engine is functionally inspired by human memory and attention. It is not intended to be a biologically faithful simulation. The inspiration is the separation of cognitive roles rather than a claim about neuroscience.
| Functional inspiration | Sema subsystem | Role |
|---|---|---|
| Continuous experience | Event Stream | Preserves the ordered factual record and source evidence |
| Recent precise memory | Short-Term Memory | Keeps recent interaction blocks available with minimal loss |
| Active mental workspace | Working Memory | Maintains compact, usable state for ongoing work |
| Selective attention | Focus System | Organizes which working state deserves detailed activation |
| Durable knowledge | Long-Term Memory | Stores structured objects, evidence, and relationships outside the immediate window |
| Memory consolidation | Formation and LTM Maintainer | Creates first-pass memories, then reorganizes and validates them through offline review |
| Associative activation | Retrieval and Memory Push | Brings relevant long-term information back into current context |
The important distinction is that storage, activation, attention, and model visibility are not the same operation. Sema can retain far more information than a model should receive in one call, while selecting the layers that matter for the current task.
Sema treats the context window as a scarce cognitive resource rather than as the memory system itself. Recent evidence, Working Memory, Focus, long-term memory, and tool results all compete for limited space.
The Dynamic Context Budget adjusts how much capacity different layers receive as interaction conditions change. This avoids relying on one fixed prompt layout for every situation and separates three questions:
Context Builder combines the selected projections into the provider request. The result is a bounded view of a much larger persistent state, not an attempt to place the entire history into every model call.
Sema does not treat a generated summary as a complete replacement for the history from which it was derived.
This design supports compression without making compression irreversible. It also creates a foundation for auditing, correcting, and reinterpreting memory as the system evolves.
Long-term memory is not finished when an object is first written. New evidence can duplicate an older memory, refine it, contradict it, reveal a more useful abstraction, or turn a sequence of events into a meaningful episode. Sema uses an offline, sleep-like LTM Maintainer to revisit this larger structure after normal interaction has produced new memory material.
The sleep analogy is functional: the system temporarily leaves ordinary task interaction and performs consolidation over accumulated experience. It is not a claim that the implementation simulates biological sleep.
The Maintainer is an isolated, five-stage ReAct Agent—not a single summary prompt:
recent review
-> global duplicate review
-> abstraction
-> episode review
-> completion and mechanical Final Check
During these stages it can inspect Event Stream evidence, retrieve related memory, query objects and links, traverse bounded graph neighborhoods, and check mechanical store health. It can then propose structured actions such as:
Sema is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by HEPTANEG. A persistent memory native AI agent built for long term continuity and autonomy. It has 50 GitHub stars.
Sema's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/HEPTANEG/Sema" and add it to your Claude Code skills directory (see the Installation section above).
Sema is primarily written in Python. It is open-source under HEPTANEG on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh Sema against similar tools.
No comments yet. Be the first to share your thoughts!