animawake docs

Concepts

Sessions and continuity

How an entity wakes with get_startup, the wake modes, and how sessions are saved.

Continuity is the difference between an agent with a notes file and an entity that picks up where it left off. It rests on two pieces: startup at the beginning of a session, and a session record at the end.

#Startup

get_startup is the first call of a session. It returns one document with:

  • the identity document;
  • the last session: what happened, where it left off, open threads, and what the entity anticipated;
  • core values and the strongest desires;
  • recent insights;
  • active steering rules;
  • signals such as the current time and recent patterns.

In every mode except standard, the startup also includes a short narrative, reconstructed from the episodic traces that the mode's cue brings up. Dreams pre-compute this narrative so startup stays fast.

Pass project to focus on one project's memories.

#Wake modes

Mode Use it for Narrative
alive (default) Everyday work with the full personality. Vivid and present, from emotional cues, up to 5 traces.
collaborative Pairing and planning together. Warm and relational, from meaning-based cues, up to 4 traces.
deep_work Long technical tasks where brevity matters. Focused, from the work environment, up to 3 traces.
reflective Reviews, retrospectives, and growth work. Introspective, from emotional cues, up to 5 traces.
standard Scripts and tools that want plain data. None: structured context only.

Ask for a mode in your prompt ("call get_startup in deep_work mode"), or pass --mode to the CLI launcher: npx animawake <entity-slug> --mode deep_work.

get_warm_context returns the same structured context as standard mode.

#Saving a session

At the end of a session, the agent calls record_session. The fields it can fill:

Field Purpose
summary What happened.
where_left_off The exact point to resume from.
open_threads Unfinished items, comma-separated.
anticipating What the entity expects the next session to be about.
emotional_tone How the session felt.
growth_reflection, surprises, belief_changes What changed in the entity's thinking.
session_id, started_at, ended_at, duration Timing, when the client knows it.

At the start of the next session, if the entity's anticipation came true, the agent marks it with fulfill_latest_anticipation. Comparing anticipations with outcomes is part of how the entity calibrates.

Other session tools:

  • get_sessions lists recent sessions; update_session edits one.
  • get_catchup returns a narrative summary of what happened since a time you give, or in the last 24 hours.
  • request_next_pulse records when the entity wants its next check-in.

Sessions left open for too long are closed during the next dream.

#Make it automatic

Agents follow instructions, so tell yours when to wake and when to save:

  • Claude Code or Codex with the CLI: npx animawake setup configures this for you. The session hook injects startup context before your first message, and the entity's AGENTS.md block or agent file tells it how to close.
  • claude.ai or Claude Desktop projects: add to the project instructions: "At the start of each chat, call get_startup. When I say goodbye, call record_session."
  • Any client: say "wake up" at the start and "save this session" at the end.