total-recall
"Enable memory search on observations.md for cross-session recall"
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Badge for your README
Markdown
[](/listings/gavdalf--total-recall)HTML
<a href="/listings/gavdalf--total-recall"><img src="/api/listings/gavdalf--total-recall/badge.svg" alt="findsafeskills safety rating" /></a>Install
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
v1.x setup
git clone https://github.com/gavdalf/total-recall.git cd total-recall bash scripts/setup.sh
AIE setup
1. Review [`config/aie.yaml`](config/aie.yaml). 2. Set `workspace` if you do not want to use the repo root. 3. Enable only the connectors and notification channels you actually use. 4. Add credentials to `./.env` or your shell environment. 5. Run a dry pass:
bash scripts/sensor-sweep.sh --dry-run bash scripts/rumination-engine.sh --dry-run bash scripts/preconscious-select.sh --dry-run bash scripts/ambient-actions.sh --dry-run-actions
6. Schedule the AIE loop once the dry run looks correct:
*/15 * * * * OPENCLAW_WORKSPACE=/path/to/total-recall bash /path/to/total-recall/scripts/sensor-sweep.sh >> /path/to/total-recall/logs/sensor-sweep.log 2>&1 17,47 * * * * OPENCLAW_WORKSPACE=/path/to/total-recall bash /path/to/total-recall/scripts/preconscious-select.sh >> /path/to/total-recall/logs/rumination.log 2>&1 19,49 * * * * OPENCLAW_WORKSPACE=/path/to/total-recall bash /path/to/total-recall/scripts/emergency-surface.sh >> /path/to/total-recall/logs/emergency-surface.log 2>&1
Minimal first-run path:
- leave every connector disabled except `filewatch` - keep notifications disabled - set only the model IDs you want under `models` - add the API key required by your chosen model provider
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
SKILL.md · Manifest · 341 lines
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
- ---
- name: total-recall
- description: "The only memory skill that watches on its own. No database. No vectors. No manual saves. Just an LLM observer that compresses your conversations into prioritised notes, consolidates when they grow, and recovers anything missed. Five layers of redundancy, zero maintenance. ~$0.00/month (using free-tier models). While other memory skills ask you to remember to remember, this one just pays attention."
- metadata:
- openclaw:
- emoji: "🧠"
- requires:
- bins: ["jq", "curl"]
- env:
- - key: OPENROUTER_API_KEY
- label: "OpenRouter API key (for LLM calls)"
- required: true
- config:
- memorySearch:
- description: "Enable memory search on observations.md for cross-session recall"
- ---
- # Total Recall — Autonomous Agent Memory
- **The only memory skill that watches on its own.**
- No database. No vectors. No manual saves. Just an LLM observer that compresses your conversations into prioritised notes, consolidates when they grow, and recovers anything missed. Five layers of redundancy, zero maintenance. ~$0.00/month (using free-tier models).
- While other memory skills ask you to remember to remember, this one just pays attention.
- ## Architecture
- ```
- Layer 1: Observer (cron, every 15-30 min)
- ↓ compresses recent messages → observations.md
- Layer 2: Reflector (auto-triggered when observations > 8000 words)
- ↓ consolidates, removes superseded info → 40-60% reduction
- Layer 3: Session Recovery (runs on every /new or /reset)
- ↓ catches any session the Observer missed
- Layer 4: Reactive Watcher (inotify daemon, Linux only)
- ↓ triggers Observer after 40+ new JSONL writes, 5-min cooldown
- Layer 5: Pre-compaction hook (memoryFlush)
- ↓ emergency capture before OpenClaw compacts context
- ```
- ## What It Does
- - **Observer** reads recent session transcripts (JSONL), sends them to an LLM, and appends compressed observations to `observations.md` with priority levels (high, medium, low)
- - **Reflector** kicks in when observations grow too large, consolidating related items and dropping stale low-priority entries
- - **Session Recovery** runs at session start, checks if the previous session was captured, and does an emergency observation if not
- - **Reactive Watcher** watches the session directory with inotify so high-activity periods get captured faster than the cron interval
- - **Pre-compaction hook** fires when OpenClaw is about to compact context, ensuring nothing is lost
- ## Quick Start
- ### 1. Install the skill
- ```bash
- clawdhub install total-recall
- ```
- ### 2. Set your API key
- Add to your `.env` or OpenClaw config:
- ```bash
- OPENROUTER_API_KEY=sk-or-v1-xxxxx
- ```
- ### 3. Run the setup script
- ```bash
- bash skills/total-recall/scripts/setup.sh
- ```
- This will:
- - Create the memory directory structure (`memory/`, `logs/`, backups)
- - On Linux with inotify + systemd: install the reactive watcher service
- - Print cron job and agent configuration instructions for you to add manually
- ### 4. Configure your agent to load observations
- Add to your agent's workspace context (e.g., `MEMORY.md` or system prompt):
- ```
- At session startup, read `memory/observations.md` for cross-session context.
- ```
- Or use OpenClaw's `memoryFlush.systemPrompt` to inject a startup instruction.
- ## Platform Support
- | Platform | Observer + Reflector + Recovery | Reactive Watcher |
- |----------|-------------------------------|-----------------|
- | Linux (Debian/Ubuntu/etc.) | Full support | With inotify-tools |
- | macOS | Full support | Not available (cron-only) |
- All core scripts use portable bash. `stat`, `date`, and `md5` commands are handled cross-platform via `_compat.sh`.
- ## Configuration
- All scripts read from environment variables with sensible defaults:
- | Variable | Default | Description |
- |----------|---------|-------------|
- | `OPENROUTER_API_KEY` | (required) | OpenRouter API key for LLM calls |
- | `MEMORY_DIR` | `$OPENCLAW_WORKSPACE/memory` | Where observations.md lives |
- | `SESSIONS_DIR` | `~/.openclaw/agents/main/sessions` | OpenClaw session transcripts |
- | `OBSERVER_MODEL` | `stepfun/step-3.5-flash:free` | Primary model for compression (free) |
- | `OBSERVER_FALLBACK_MODEL` | `nvidia/nemotron-3-nano-30b-a3b:free` | Fallback if primary fails (free) |
- | `OBSERVER_LOOKBACK_MIN` | `15` | Minutes to look back (daytime) |
- | `OBSERVER_MORNING_LOOKBACK_MIN` | `480` | Minutes to look back (before 8am) |
- | `OBSERVER_LINE_THRESHOLD` | `40` | Lines before reactive trigger (Linux) |
- | `OBSERVER_COOLDOWN_SECS` | `300` | Cooldown between reactive triggers (Linux) |
- | `REFLECTOR_WORD_THRESHOLD` | `8000` | Words before reflector runs |
- | `REFLECTOR_MODEL` | `nvidia/nemotron-3-super-120b-a12b:free` | Model for consolidating observations (free) |
- | `REFLECTOR_FALLBACK_MODEL` | `openrouter/hunter-alpha` | Fallback if reflector model fails (free) |
- | `OPENCLAW_WORKSPACE` | `~/your-workspace` | Workspace root |
- ## LLM Provider Configuration
- Total Recall uses any OpenAI-compatible chat completion API. Switch providers by setting environment variables:
- | Variable | Default | Description |
- |----------|---------|-------------|
- | `LLM_BASE_URL` | `https://openrouter.ai/api/v1` | API endpoint |
- | `LLM_API_KEY` | falls back to `OPENROUTER_API_KEY` | API key |
- | `LLM_MODEL` | `deepseek/deepseek-v3.2` | Model to use |
- ### Provider examples
- ```bash
- # OpenRouter (default)
- export OPENROUTER_API_KEY="your-key"
- # Ollama (local)
- export LLM_BASE_URL="http://localhost:11434/v1"
- export LLM_API_KEY="ollama"
- export LLM_MODEL="llama3.1:8b"
- # Groq
- export LLM_BASE_URL="https://api.groq.com/openai/v1"
- export LLM_API_KEY="your-groq-key"
- export LLM_MODEL="llama-3.3-70b-versatile"
- ```
- ## Files Created
- ```
- memory/
- observations.md # The main observation log (loaded at startup)
- observation-backups/ # Reflector backups (last 10 kept)
- .observer-last-run # Timestamp of last observer run
- .observer-last-hash # Dedup hash of last processed messages
- logs/
- observer.log
- reflector.log
- session-recovery.log
- observer-watcher.log
- ```
- ## Cron Jobs
- The setup script creates these OpenClaw cron jobs:
- | Job | Schedule | Description |
- |-----|----------|-------------|
- | `memory-observer` | Every 15 min | Compress recent conversation |
- | `memory-reflector` | Hourly | Consolidate if observations are large |
- ## Reactive Watcher (Linux only)
- The reactive watcher uses `inotifywait` to detect session activity and trigger the observer faster than cron alone. Requires Linux with `inotify-tools` installed.
- ```bash
- # Install inotify-tools (Debian/Ubuntu)
- sudo apt install inotify-tools
- # Check watcher status
- systemctl --user status total-recall-watcher
- # View logs
- journalctl --user -u total-recall-watcher -f
- ```
- ## Cost
- Using the default free models via OpenRouter:
- - ~$0.00/month (using free-tier models) for typical usage (observer + reflector)
- - ~15-30 cron runs/day, each processing a few hundred tokens
- - All default models are free tier models
- ## Model Notes
- The scripts include defensive handling for both `.content` and `.reasoning` fields in API responses. While most models return content in the standard `.content` field, the fallback to `.reasoning` ensures compatibility with models that may use different response formats.
- ## How It Works (Technical)
- ### Observer
- 1. Finds recently modified session JSONL files
- 2. Filters out subagent/cron sessions
- 3. Extracts user + assistant messages from the lookback window
- 4. Deduplicates using MD5 hash comparison
- 5. Sends to LLM with the observer prompt (priority-based compression)
- 6. Appends result to `observations.md`
- 7. If observations exceed the word threshold, triggers reflector
- ### Reflector
- 1. Backs up current observations
- 2. Sends entire log to LLM with consolidation instructions
- 3. Validates output is shorter than input (sanity check)
- 4. Replaces observations with consolidated version
- 5. Cleans old backups (keeps last 10)
- ### Session Recovery
- 1. Runs at every `/new` or `/reset`
- 2. Hashes recent lines of the last session file
- 3. Compares against stored hash from last observer run
- 4. If mismatch: runs observer in recovery mode (4-hour lookback)
- 5. Fallback: raw message extraction if observer fails
- ### Reactive Watcher
- 1. Uses `inotifywait` to monitor session directory
- 2. Counts JSONL writes to main session files only
- 3. After 40+ lines: triggers observer (with 5-min cooldown)
- 4. Resets counter when cron/external observer runs are detected
- ## Customizing the Prompts
- The observer and reflector system prompts are in `prompts/`:
- - `prompts/observer-system.txt` — controls how conversations are compressed
- - `prompts/reflector-system.txt` — controls how observations are consolidated
- Edit these to match your agent's personality and priorities.
- ---
- ## Dream Cycle
- The Dream Cycle is an optional nightly agent that runs after hours to consolidate `observations.md`. It archives stale items and adds semantic hooks so nothing useful is actually lost. Context stays lean; everything remains findable.
- ### What It Does
- - Classifies every observation by impact (critical / high / medium / low / minimal) and age
- - Archives items that have passed their relevance threshold
- - Adds a semantic hook for each archived item (specific keywords + archive reference)
- - Validates the result and rolls back automatically if something goes wrong
- ### Features
- **Multi-Hook Retrieval** — 4-5 alternative search phrasings per archived item. Searches using different words than the original still find the memory.
- **Confidence Scoring** — every observation gets a confidence score (0.0-1.0) and source type (`explicit`, `implicit`, `inference`, `weak`, `uncertain`). High-confidence items are preserved longer; low-confidence items are archived sooner.
- **Memory Type System** — 7 types with per-type TTLs: `event` (14d), `fact` (90d), `preference` (180d), `goal` (365d), `habit` (365d), `rule` (never), `context` (30d). Embedded as invisible HTML metadata comments in `observations.md`.
- **Observation Chunking** — clusters of 3+ related observations are compressed into single summary entries. Source observations are archived; a chunk hook replaces them. Achieves up to 75% token reduction.
- **Importance Decay** — per-type daily decay applied to importance scores before each archival decision. Items that decay below the archive threshold are queued for removal. Rates: `event` (-0.5/day), `fact` (-0.1/day), `preference` (-0.02/day), `rule`/`habit`/`goal` (no decay).
- **Pattern Promotion** — scans recent dream logs for recurring themes (3+ occurrences across 3+ separate days). Writes promotion proposals to `memory/dream-staging/` for human review. Use `staging-review.sh` to list, show, approve, or reject proposals. The `context` type is never promoted automatically.
- ### Setup
- 1. Run `bash skills/total-recall/scripts/setup.sh` — creates Dream Cycle directories automatically.
- 2. Add the nightly cron job as a full agent turn:
- ```
- # Dream Cycle — nightly (3am recommended; adjust to your timezone)
- # The dream cycle runs as a full agent turn — NOT as a direct bash call.
- # dream-cycle.sh is a file operations helper called BY the agent, not the entry point.
- #
- # 0 3 * * * bash -c 'source ~/.openclaw/shared/secrets/openclaw-secrets.env \
- # && openclaw agent --agent main \
- # --message "Run the Total Recall Dream Cycle. Follow the instructions in \
- # $WORKSPACE/skills/total-recall/prompts/dream-cycle-prompt.md exactly. \
- # Use READ_ONLY_MODE=false and DREAM_PHASE=1." \
- # --json >> $WORKSPACE/logs/dream-cycle.log 2>&1'
- ```
- 3. Configure your cron agent using `prompts/dream-cycle-prompt.md` as the system prompt. Recommended models: Claude Sonnet for the Dreamer (analysis + decisions), DeepSeek v3.2 for the Observer (cheap, fast).
- 4. Start with `READ_ONLY_MODE=true` for the first few nights. Check `memory/dream-logs/` after each run to verify what it would have archived.
- 5. Switch to `READ_ONLY_MODE=false` once satisfied.
- ### Configuration
- | Variable | Default | Description |
- |----------|---------|-------------|
- | `DREAM_TOKEN_TARGET` | `8000` | Token target for observations.md after consolidation |
- | `READ_ONLY_MODE` | `false` | Set `true` for dry-run analysis without writes |
- ### Files
- | File | Description |
- |------|-------------|
- | `scripts/dream-cycle.sh` | Shell helper called **by the agent** (not a standalone runner): preflight, archive, update-observations, write-log, write-metrics, validate, rollback |
- | `prompts/dream-cycle-prompt.md` | Agent prompt for the nightly Dream Cycle run |
- | `dream-cycle/README.md` | Dream Cycle quick reference |
- | `schemas/observation-format.md` | Extended observation metadata format |
- ### Directories Created
- ```
- memory/
- archive/
- observations/ # Archived items (one .md file per night)
- chunks/ # Chunked observation groups
- dream-logs/ # Nightly run reports
- dream-staging/ # Pattern promotion proposals awaiting human review
- .dream-backups/ # Pre-run safety backups
- research/
- dream-cycle-metrics/
- daily/ # JSON metrics per night
- ```
- ---
- ## Troubleshooting
- **Observer not running?**
- - Check `logs/observer.log` for errors
- - Verify `OPENROUTER_API_KEY` is set and valid
- - Confirm cron is active: `crontab -l`
- **Observations not being loaded at session start?**
- - Ensure your agent's startup instructions include reading `memory/observations.md`
- - Check `MEMORY_DIR` points to the right location
- **Reactive watcher not triggering (Linux)?**
- - Run `systemctl --user status total-recall-watcher`
- - Check `inotify-tools` is installed: `which inotifywait`
- - View watcher logs: `journalctl --user -u total-recall-watcher -f`
- **Dream Cycle archiving too aggressively?**
- - Enable `READ_ONLY_MODE=true` and review dream logs before going live
- - Adjust `DREAM_TOKEN_TARGET` upward to archive less per run
- **Dream Cycle not archiving enough?**
- - Lower `DREAM_TOKEN_TARGET` to trigger more aggressive consolidation
- ---
- ## Inspired By
- This system is inspired by how human memory works during sleep — the hippocampus (observer) captures experiences, and during sleep consolidation (reflector), important memories are strengthened while noise is discarded.
- Read more: [Your AI Has an Attention Problem](https://gavlahh.substack.com/p/your-ai-has-an-attention-problem)
- *"Get your ass to Mars." — Well, get your agent's memory to work.*
README.md · README · 317 lines
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
- # Total Recall
- > **Note (April 2026):** This project is currently on hold. I'm focusing on other work for the foreseeable future. The code works, the docs are accurate, and issues/PRs are welcome, but response times will be slower than usual. See [#22](https://github.com/gavdalf/total-recall/issues/22) for details.
- Autonomous memory for OpenClaw-style agents.
- Total Recall v2.0 keeps the existing v1.x stack intact:
- - Observer
- - Reflector
- - Session Recovery
- - Reactive Watcher
- - Dream Cycle
- It also adds the Ambient Intelligence Engine (AIE): a configurable sensor and rumination pipeline that can watch external systems, think about what changed, maintain a preconscious buffer, and surface urgent items.
- Prerequisites: `python3`, `jq`, `curl`, and `PyYAML`.
- Install PyYAML with:
- ```bash
- python3 -m pip install PyYAML
- # or on Debian/Ubuntu:
- sudo apt install python3-yaml
- ```
- `setup.sh` will verify all dependencies are present before continuing.
- ## Architecture
- ### v1.x memory loop
- ```text
- Observer -> observations.md -> Reflector -> Dream Cycle -> session recovery / watcher
- ```
- ### v2.0 Ambient Intelligence Engine
- ```text
- sensor-sweep
- -> enabled connectors emit events to memory/events/bus.jsonl
- -> rumination-engine reads new events and writes structured insights
- -> preconscious-select scores recent insights into memory/preconscious-buffer.md
- -> ambient-actions optionally enriches insights with read-only lookups
- -> emergency-surface pushes urgent alerts through configured channels
- -> buffer-inject sends the latest buffer back into the live session
- ```
- The AIE flow is additive. None of the v1.x scripts are removed or replaced.
- ## Quick Start
- ### v1.x setup
- ```bash
- git clone https://github.com/gavdalf/total-recall.git
- cd total-recall
- bash scripts/setup.sh
- ```
- ### AIE setup
- 1. Review [`config/aie.yaml`](config/aie.yaml).
- 2. Set `workspace` if you do not want to use the repo root.
- 3. Enable only the connectors and notification channels you actually use.
- 4. Add credentials to `./.env` or your shell environment.
- 5. Run a dry pass:
- ```bash
- bash scripts/sensor-sweep.sh --dry-run
- bash scripts/rumination-engine.sh --dry-run
- bash scripts/preconscious-select.sh --dry-run
- bash scripts/ambient-actions.sh --dry-run-actions
- ```
- 6. Schedule the AIE loop once the dry run looks correct:
- ```bash
- */15 * * * * OPENCLAW_WORKSPACE=/path/to/total-recall bash /path/to/total-recall/scripts/sensor-sweep.sh >> /path/to/total-recall/logs/sensor-sweep.log 2>&1
- 17,47 * * * * OPENCLAW_WORKSPACE=/path/to/total-recall bash /path/to/total-recall/scripts/preconscious-select.sh >> /path/to/total-recall/logs/rumination.log 2>&1
- 19,49 * * * * OPENCLAW_WORKSPACE=/path/to/total-recall bash /path/to/total-recall/scripts/emergency-surface.sh >> /path/to/total-recall/logs/emergency-surface.log 2>&1
- ```
- Minimal first-run path:
- - leave every connector disabled except `filewatch`
- - keep notifications disabled
- - set only the model IDs you want under `models`
- - add the API key required by your chosen model provider
- ## AIE Configuration
- All new AIE behavior is controlled by [`config/aie.yaml`](config/aie.yaml).
- ### Top-level sections
- - `workspace`: root directory for memory, logs, health data, and `.env`
- - `paths`: all file and directory locations used by AIE scripts
- - `profile`: assistant/user labels and timezone used in prompts and quiet hours
- - `api`: shared API metadata such as the outbound HTTP referer
- - `models`: model IDs for rumination, classification, enrichment, and ambient actions
- - `connectors`: per-connector enable flags, high-importance sender patterns, and connector-specific settings
- - `notifications`: quiet hours plus Telegram, Discord, and generic webhook delivery
- - `thresholds`: cooldowns, pruning windows, emergency thresholds
- - `ambient_actions`: global action toggle plus read-only tool settings
- ### Connector toggles
- Each connector now checks its own `enabled` flag before doing any work:
- - `connectors.calendar.enabled`
- - `connectors.todoist.enabled`
- - `connectors.ionos.enabled`
- - `connectors.gmail.enabled`
- - `connectors.fitbit.enabled`
- - `connectors.filewatch.enabled`
- The orchestrator in [`scripts/sensor-sweep.sh`](scripts/sensor-sweep.sh) also skips disabled connectors.
- ### Model settings
- Set your own model IDs here:
- ```yaml
- models:
- rumination: <model-id>
- classification: <model-id>
- enrichment: <model-id>
- ambient_actions: <model-id>
- ```
- The AIE scripts no longer hardcode user-specific model selections.
- ### Notification settings
- ```yaml
- notifications:
- quiet_hours:
- enabled: true
- timezone: UTC
- start_hour: 22
- end_hour: 7
- telegram:
- enabled: false
- bot_token: ""
- chat_id: ""
- discord:
- enabled: false
- webhook_url: ""
- webhook:
- enabled: false
- url: ""
- headers: {}
- ```
- `emergency-surface.sh` will only send through enabled channels. If no channel is enabled, it exits without error.
- ### Path settings
- Everything that was previously tied to `~/clawd` is now configurable under `paths`, including:
- - event bus
- - sensor state
- - rumination directory
- - preconscious buffer
- - health data
- - log directory
- - `.env` file
- - optional web search helper path
- ### Threshold settings
- Key defaults:
- ```yaml
- thresholds:
- rumination_cooldown_seconds: 1800
- rumination_staleness_seconds: 14400
- sensor_prune_hours: 48
- emergency:
- importance: 0.85
- expires_within_seconds: 14400
- max_alerts_per_day: 2
- ```
- ### Connector reference
- `calendar`
- - `account`
- - `calendar_id`
- - `lookahead_days`
- - `max_events`
- - `keyring_password`
- `gmail`
- - `account`
- - `query` (default `newer_than:3h`)
- - `max_messages`
- - `keyring_password`
- `ionos`
- - `account`
- - `query` (`recent` or `unread`)
- - `max_messages`
- `connectors.scoring`
- - `model`
- - `batch_size`
- - `cache_threshold`
- - `sender_cache_file`
- `connectors.high_importance_senders`
- - list of sender substrings that should raise email importance (default: empty)
- - add patterns for senders you care about most: your employer, accountant, school, doctor, bank, tax authority, etc.
- - example: `["mycompany", "school", "hospital", "accountant", "bank"]`
- `fitbit`
- - `sleep_target_hours`
- - `short_sleep_minutes`
- - `great_sleep_minutes`
- - `watch_off_minutes`
- - `watch_uncertain_minutes`
- - `resting_hr_threshold`
- - `weight_target_lbs`
- - `steps_milestone`
- `filewatch`
- - `watch_files`
- ### Ambient action reference
- `ambient_actions`
- - `enabled`
- - `max_actions`
- - `action_budget_seconds`
- - `weather_url`
- - `places.default_lat`
- - `places.default_lng`
- - `places.default_limit`
- `ambient_actions.tool_settings`
- - `calendar_lookup.gog_account`
- - `calendar_lookup.gog_keyring_password`
- - `gmail_search.gog_account`
- - `gmail_search.gog_keyring_password`
- - `gmail_read.gog_account`
- - `gmail_read.gog_keyring_password`
- - `ionos_search.account`
- - `fitbit_data.enabled`
- - `openrouter_balance.enabled`
- - `web_search.enabled`
- - `web_search.script`
- - `places_lookup.enabled`
- ### Action resolution system
- `ambient-actions.sh` reads enriched rumination insights and decides what to do with them. Five action types are supported, each with guardrails to prevent runaway behaviour:
- | Action | Description | Guardrails |
- |--------|-------------|------------|
- | `ask` | Surfaces a question to the user via preconscious buffer | Max 3/run |
- | `learn` | Stores a confirmed fact to `learned-facts.json` | Importance >= 0.7, dedup, max 5/run |
- | `draft` | Prepares content for user review in `drafts/` | Importance >= 0.75, max 2/run |
- | `notify` | Sends an urgent alert via emergency-surface | Importance >= 0.85, max 2/day, quiet hours respected |
- | `remind` | Creates a time-based nudge in `reminders.jsonl` | Auto-surfaces when due, max 3/run |
- #### Runtime files
- The AIE creates several files in `memory/rumination/` during operation:
- - `learned-facts.json` — facts the engine has confirmed and stored autonomously
- - `reminders.jsonl` — pending time-based nudges
- - `drafts/` — content prepared for user review (one `.md` file per draft)
- - `cycle-state.json` — working memory: tracks lookups between cycles with TTL-based dedup (4hr window)
- #### Agent startup
- For best results, have your agent read `memory/rumination/learned-facts.json` and check `memory/rumination/drafts/` at session start. This surfaces what the AIE has learned and prepared between sessions.
- ## Existing v1.x Notes
- The original observer / reflector / dream-cycle flow still works as before. The v1.x scripts continue to read their existing environment variables and paths. The new AIE config does not remove that compatibility layer.
- See:
- - [`dream-cycle/README.md`](dream-cycle/README.md)
- - [`SKILL.md`](SKILL.md)
- - [`docs/architecture.md`](docs/architecture.md)
- ## Repository Layout
- | Path | Purpose |
- |------|---------|
- | `scripts/observer-agent.sh` | v1.x observer |
- | `scripts/reflector-agent.sh` | v1.x reflector |
- | `scripts/dream-cycle.sh` | v1.x nightly consolidation helper |
- | `scripts/sensor-sweep.sh` | AIE connector orchestrator |
- | `scripts/rumination-engine.sh` | AIE reasoning pass |
- | `scripts/preconscious-select.sh` | buffer scorer/selector |
- | `scripts/ambient-actions.sh` | read-only enrichment loop |
- | `scripts/emergency-surface.sh` | urgent alert surfacing |
- | `scripts/buffer-inject.sh` | inject buffer back into active session |
- | `scripts/connectors/*.sh` | pluggable AIE sensors |
- | `config/aie.yaml` | AIE runtime configuration |
- ## License
- MIT. See [`LICENSE`](LICENSE).
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.