Paperclip
Persistent memory for Paperclip AI agents using Hindsight.
Install the @vectorize-io/hindsight-paperclip plugin once. Every agent in your Paperclip instance automatically gets long-term memory that persists across runs, companies, and restarts β no code changes required.
Installationβ
pnpm paperclipai plugin install @vectorize-io/hindsight-paperclip
Then configure in Settings β Plugins β Hindsight Memory.
Prerequisitesβ
Sign up free β no infrastructure to run. Skip straight to Configuration below.
Self-hosting alternative β run Hindsight locally:
pip install hindsight-all
export HINDSIGHT_API_LLM_API_KEY=your-openai-key
hindsight-api
How It Worksβ
agent.run.started
ββ fetch issue via ctx.issues.get
ββ recall(issueTitle + description) β cached in plugin state for this run
agent runningβ¦
ββ hindsight_recall(query) β returns cached context or live recall
ββ hindsight_retain(content) β stores immediately
issue.comment.created
ββ retain(full comment body via ctx.issues.listComments)
ββ bank attribution: agent comment author when present; otherwise issue assignee
agent.run.finished
ββ no-op (subscription kept for future use when payload carries output)
The bundled plugin manifest declares the issues.read and issue.comments.read capabilities needed by the new SDK calls, so Paperclip may prompt for these on first install or upgrade.
Memory is keyed to companyId + agentId β never to the run ID β so it accumulates across every run.
Configurationβ
| Field | Default | Description |
|---|---|---|
hindsightApiUrl | https://api.hindsight.vectorize.io | Hindsight server URL (Cloud default; use http://localhost:8888 for self-hosted) |
hindsightApiKeyRef | β | Paperclip secret name holding Hindsight Cloud API key |
bankGranularity | ["company", "agent"] | Memory isolation: per company+agent, per company, or per agent |
recallBudget | mid | low = fastest, mid = balanced, high = most thorough |
autoRetain | true | Automatically retain run output after every run |
Bank ID Formatβ
paperclip::{companyId}::{agentId} β default (company + agent granularity)
paperclip::{companyId} β company granularity (shared across agents)
paperclip::{agentId} β agent granularity (agent memory across companies)
Agent Toolsβ
Agents can call these tools directly during a run:
hindsight_recall(query) β search memory for relevant context. Called automatically at run start; agents can also call it mid-run for targeted queries.
hindsight_retain(content) β store a fact or decision immediately, without waiting for run end.
Adapter Compatibilityβ
Works with all Paperclip adapter types via the event system:
| Adapter | Supported |
|---|---|
| Claude | β |
| Codex | β |
| Cursor | β |
| HTTP | β |
| Process | β |