Durable state
Atomic JSON writes preserve identity fields, lifecycle phase, working memory, proxy metrics, and configuration across restarts.
Readable by humansANIMA is a zero-runtime-dependency Python engine for durable agent state, associative memory, temporal context, workspace competition, and inspectable internal metrics.
{
"name": "aria",
"phase": "CONSCIOUS", // legacy API label
"cycle_count": 128,
"working_memory": ["incident"],
"valence": {"seeking": 0.62},
"phi_score": 0.1936, // internal proxy
"cqi": 51.3 // internal composite
}
The language model generates text. ANIMA keeps the application-controlled state around it explicit, portable, and testable — so a provider swap does not have to erase everything accumulated around the model.
Atomic JSON writes preserve identity fields, lifecycle phase, working memory, proxy metrics, and configuration across restarts.
Readable by humansEvent records connect through tags and causal links. Activation spreads across the graph while configurable decay and recall reweighting change priority.
Not vector searchSubsystem candidates compete for a bounded workspace. Activation, novelty, relevance, and affect-inspired weights determine the broadcast winner.
GWT-inspiredElapsed time, fading retention, heuristic protention, and an affect-modulated duration proxy become first-class state instead of prompt decoration.
Explicit clock stateA simplified self-model tracks what won selection, why it won, confidence, calibration history, and text-based performance heuristics.
AST-inspiredAssemble bounded context for Ollama, Anthropic, or OpenAI adapters while the durable state remains owned by your application.
Swap the voice, keep the stateAPI names such as ConsciousnessState, Phi, CQI, and Phase.CONSCIOUS remain for v0.1 compatibility. Their values are engineering proxies inside ANIMA — not validated consciousness measurements.
ANIMA's public story is tied to what anyone can inspect: tests, source, a checked-in benchmark artifact, explicit controls, and explicit limitations.
Lifecycle, persistence, memory, temporal processing, primitives, provider bridges, internal metrics, and CLI behavior. GitHub Actions runs the suite on Python 3.11, 3.12, and 3.13.
No repeated runs, confidence intervals, preregistration, independent replication, or inferential significance test. The control is another ANIMA kernel. These numbers are useful implementation evidence, not proof of sentience or general model-quality gains.
ANIMA is currently distributed from GitHub, not PyPI. Runtime code uses only the Python standard library; the development extra installs the test tools.
# Install from source and verify all 446 tests
git clone https://github.com/christian140903-sudo/anima.git
cd anima
python -m pip install -e ".[dev]"
python -m pytest -q
from tempfile import TemporaryDirectory
from anima.kernel import AnimaKernel
with TemporaryDirectory() as state_dir:
kernel = AnimaKernel(name="aria", state_dir=state_dir)
kernel.boot(resume=False)
result = kernel.process("A deployment failed after health checks passed.")
print(result.cycle, result.phi_score) # internal integration proxy
kernel.shutdown()
ANIMA keeps its files readable by design. That improves debugging and portability, but applications must protect the storage directory and understand what is sent to a model provider.
phi name remains for compatibility.ANIMA is an unusual idea made inspectable: durable cognitive state around a replaceable language model, with every public claim bounded by an artifact you can open.