# How AlwaysOn Memory Works: Workspaces, Projects, Explicit Writes & Recall

> AlwaysOn Memory stores Markdown memory pages, session handoffs, and inbox messages inside one dedicated SQLite Durable Object per workspace. Every connected AI editor, CLI, or chat app reads and writes the same project memory explicitly—with keyword full-text search, optional expiry dates, and full web editing.

- **Canonical HTML:** https://always-on.cloud/docs/concepts/how-it-works
- **Markdown Mirror:** https://always-on.cloud/docs/concepts/how-it-works.md
- **Public Docs MCP:** https://always-on.cloud/docs/mcp
- **Agent Skill:** https://always-on.cloud/skill.md
- **Last Updated:** 2026-12-01

## How is AlwaysOn Memory different from built-in AI memory or local files?

Built-in assistant memory stays locked inside one vendor and often saves opaque snippets without asking. Local Markdown files work in one IDE on one machine but can't reach web chat apps or teammates. AlwaysOn gives every MCP tool access to readable, editable, exportable project memory.

| Dimension | AlwaysOn Memory | Built-in Assistant Memory | Local Repo Markdown Files |
| --- | --- | --- | --- |
| Works across 18 editors, CLIs & web chat | Yes (Streamable HTTP MCP) | No (one vendor only) | Local IDE only |
| Explicit writes (no silent capture) | Yes (only when asked or edited) | Often auto-captured silently | Yes (manual edits) |
| Inspect, edit & delete in a web UI | Yes (dashboard + JSON export) | Limited summary snippets | Local editor only |
| Structured session handoffs | Yes (open / accepted / canceled) | No | Manual ad-hoc notes |
| Per-project team access control | Yes (Team plan read/write ACLs) | No | Repo-wide Git access only |
| Automatic secret redaction | Yes (before storage) | Varies by vendor | No (easy to commit secrets) |
| Full portable backup | SHA-256 JSON export on every plan | Rarely structured | Git / filesystem |

## How are workspaces, projects, and memory pages organized?

Each workspace is a physically isolated database reached at `/t/<workspace-slug>/mcp`. Inside a workspace, memory pages are grouped by logical `workspace` (default `default`), `project` (such as `atlas` or `billing-api`), and a file-like `path` (such as `decisions/database.md`).

- **Workspace (isolation boundary)**: Dedicated SQLite Durable Object with its own plan limits, connection keys, browser-approved apps, and Team members.
- **Project (`project`)**: Logical project or repo namespace inside a workspace (for example `atlas` or `mobile-app`). On Team plans, per-project read/write access applies here.
- **Memory page (`path`)**: Markdown note with title, body, tags, optional `pinned` flag (included in `memory_briefing`), and optional ISO-8601 `expires_at` date.
- **Overwrites & expiry**: Editing a page or calling `memory_write_page` on an existing path replaces the text in place—AlwaysOn doesn't keep hidden older versions. Expired pages are cleared automatically.

> **NOTE — Keyword full-text search (no black-box embeddings):** AlwaysOn searches saved memories with SQLite FTS5 keyword ranking scoped to the projects you can access. Clear titles, concrete domain words, and tags make retrieval fast and predictable.

## What folder conventions work best for project memory?

Keep memory paths under short prefixes like `decisions/`, `conventions/`, `gotchas/`, `architecture/`, and `runbooks/`. Pin the key architectural decisions so `memory_briefing` returns them automatically whenever a new session starts.

| Prefix | Use For | Pin or Expire? |
| --- | --- | --- |
| `decisions/` | Architectural choices and trade-offs so future sessions don't reopen settled debates. | Pin key decisions |
| `conventions/` | Coding style, naming rules, test commands, and repo guardrails. | Pin |
| `gotchas/` | Non-obvious bugs, environment quirks, and third-party API edge cases. | Durable |
| `runbooks/` | Release checklists, deploy commands, and recovery steps. | Durable |
| `temp/` or `notes/` | Short-lived sprint notes or migration checklists. | Set `expires_at` |

### Agent Context: Agent Memory Hygiene Rules

Keep memory pages short and focused so briefings stay fast and small.

- If you're adding one fact to an existing page, call `memory_patch_page` (`append` or `find`/`replace`) instead of rewriting the whole page.
- Stay well below the single-page size cap (`64 KB` on Free, `256 KB` on Pro Solo and Team); split large topics into separate paths.
- If a note is only useful for a sprint or debug session, set `expires_at` (ISO-8601 UTC, e.g. `2026-12-31T00:00:00Z`) so it cleans itself up.

## Related Documentation

- [Handoffs & inbox](https://always-on.cloud/docs/concepts/handoffs-and-messages.md): Pass unfinished work between AI sessions, tools, or teammates with structured handoffs and asynchronous project inbox messages.
- [Authentication](https://always-on.cloud/docs/concepts/authentication.md): Compare OAuth 2.1 PKCE and scoped awm_ connection keys for MCP tools, plus account sign-in with email links, Google/GitHub/GitLab/OpenID SSO, and passkeys.
- [Team access](https://always-on.cloud/docs/concepts/team-access.md): Invite up to 5 teammates on AlwaysOn Team, issue per-seat connection keys, grant per-project read or write access, and share handoffs safely.
- [Memory tools (16)](https://always-on.cloud/docs/reference/mcp-tools.md): Parameter tables, safety annotations, and JSON-RPC examples for all 16 AlwaysOn Memory MCP tools: pages, search, briefings, handoffs, and inbox messages.
