Long-term memory that starts empty takes weeks to become useful. The quickest route is to install, then import the sessions already sitting on your disk. You need Node.js.
- Install the CLI and plugins. The installer finds the coding agents on your machine and asks which ones should get the Glen plugin.
npx @tryglen/cli@latest install - Sign in to your organization. The installer offers to sign you in. Your memory belongs to the organization you pick, so choose the one your team will share.
- Import your past sessions. Backfill old local agent sessions into memory. Glen's own advice is to import your last 30 days on day one. Skip it and recall has little to draw on until new sessions pile up.
glen import - Ask a question only your history can answer. Pick something you worked out weeks ago. The answer comes back with a citation for every claim, in about 10 seconds. A model writes it, so open the sources before you rely on it.
glen search "why did we stop retrying failed uploads inline" - Start a new agent session and work. Hooks load at session start. From here every turn is recorded, and agents with per-prompt recall get matching memories before the model reads each prompt.
How recall reaches each agent
| Agent | How recall arrives | Docs |
|---|---|---|
| Claude Code | Injected before the model reads each prompt | tryglen.com/docs/claude-code |
| Codex | Injected each prompt through UserPromptSubmit's additionalContext | tryglen.com/docs/codex |
| Pi | At the start of every turn | tryglen.com/docs/pi |
| Cursor | On demand, when the agent runs glen search | tryglen.com/docs/cursor |
| Grok Build | On demand, when the agent runs glen search | tryglen.com/docs/grok |
Keeping long-term memory accurate
- Promote a decision that should always hold into
AGENTS.mdorCLAUDE.md, so it no longer depends on recall. - When recall brings back something the team has since reversed, run
glen forgeton it. It is reversible with restore. - For work that should not become team memory,
glen incognitokeeps recall on and records nothing.glen offstops both;glen silentrecords but surfaces nothing.
Bringing teammates in next? Setting up memory for a team's agents starts from invites. Glen is hosted only, with no self-hosted build, and does not train models on your content. See the privacy policy and sub-processors.
Frequently asked questions
Can I import old AI agent conversations into Glen?
Yes. glen import backfills old local coding-agent sessions into your organization's memory. Importing your last 30 days on day one is the recommended start.
How much long-term memory does the free plan hold?
Free holds 15,000 memories for up to 3 people. Personal goes to 250,000 memories and adds integrations, and Team has no limits.
Can I keep some sessions out of long-term memory?
Yes. glen incognito stops recording to team memory while recall keeps working, and the mode applies account-wide.