* docs: link every integration changelog from its doc page The release script has written a changelog page per integration since 0.4.20 (src/pages/changelog/integrations/<slug>.md), but nothing reliably linked them: 16 of 61 doc pages carried a "View Changelog" link, and the only index was a hand-written table at the bottom of /changelog listing 6 of the 48 pages, stale since the release that introduced them. coding-agents was one of the 31 pages with a changelog nobody could reach except by guessing the URL. Adds the link to the 30 pages missing one, plus a third invariant in check-integrations.mjs so the next one can't ship unlinked: every changelog page whose integration has a gallery entry must be linked from its doc page. coding-agents.md is generated, so its link goes in the README as an absolute hindsight.vectorize.io URL — the sync script rewrites our own absolute URLs to site-relative, so it resolves on npm, GitHub and the docs site. It sits outside the skill:begin regions, so SKILL.md is unchanged. Claude-Session: https://claude.ai/code/session_01DNWFQn8AUN6SApcswHG3aN * docs(integrations): compact grouped gallery with Docs/Changelog buttons The Integrations Hub listed 60 three-line cards with a repeated "Hindsight Team" byline and an OFFICIAL badge on 52 of them, running 6092px tall — scanning it meant scrolling past what you came for. Cards are now a compact row (icon, name, two-line description) grouped by category, with the featured three using the same row tinted rather than a second card design: 4352px, and the shape of the catalogue is visible at a glance. Each card carries Docs and Changelog buttons. Which integrations have a changelog comes from a new build-time plugin that indexes src/pages/changelog/integrations/*.md and joins integrations.json on the link slug (vercel-ai-sdk -> /sdks/integrations/ai-sdk -> ai-sdk.md), so an integration grows the button on its first release with nothing to update by hand. The card is a <div> now — nested anchors are invalid — so the name and the pills are the links, not the whole card. /changelog's first line points here instead of carrying its own listing. Also drops the 14 CSS classes the old card owned, and shares CATEGORY_LABELS / groupByCategory from src/lib/integrations.ts so the taxonomy has one definition. Claude-Session: https://claude.ai/code/session_01DNWFQn8AUN6SApcswHG3aN
6.9 KiB
sidebar_position, title, description
| sidebar_position | title | description |
|---|---|---|
| 13 | Composio Persistent Memory with Hindsight | Integration Guide | Add long-term memory to Composio agents. Hindsight's retain, recall, and reflect register as Composio custom tools, with memory isolated per session user automatically. |
Composio
Persistent memory for Composio agents via Hindsight. Exposes Hindsight's retain, recall, and reflect operations as Composio in-process custom tools your agent can call directly.
The Hindsight memory bank for each call is the Composio session's user_id, so a single
registered tool set isolates memory per user automatically.
Features
- Composio Custom Tools — registered via
composio.experimental.tool()and bound to a session - Per-user memory — the session
user_idmaps to the Hindsightbank_id(with a configurable fallback bank) - Three Memory Tools — Retain (store), Recall (search), Reflect (synthesize) — include any combination
- Simple Configuration — pass a client/URL directly, or
configure()once globally
Installation
pip install hindsight-composio
Quick Start
:::tip Recommended: Hindsight Cloud Sign up free and grab an API key — no self-hosting required. :::
from composio import Composio
from hindsight_composio import register_hindsight_tools
composio = Composio() # uses COMPOSIO_API_KEY
tools = register_hindsight_tools(
composio,
hindsight_api_url="https://api.hindsight.vectorize.io",
api_key="hsk_...", # or set HINDSIGHT_API_KEY env var
)
session = composio.create(
user_id="user-123", # becomes the Hindsight bank_id
experimental={"custom_tools": tools},
)
# Pass session.tools() to your agent/LLM as usual.
The session now has three tools the agent can call:
HINDSIGHT_RETAIN— Store information to long-term memoryHINDSIGHT_RECALL— Search long-term memory for relevant factsHINDSIGHT_REFLECT— Synthesize a reasoned answer from memories
Bank selection
The bank is resolved per call:
- The session's
user_id(recommended — one tool set, isolated per user). default_bank(passed toregister_hindsight_toolsorconfigure) when a call has nouser_id.
If neither is available, the tool raises an error.
tools = register_hindsight_tools(
composio,
hindsight_api_url="https://api.hindsight.vectorize.io",
default_bank="shared", # used only when a session has no user_id
)
Self-hosting (local development)
If you're running Hindsight locally with ./scripts/dev/start-api.sh, swap the URL:
tools = register_hindsight_tools(
composio,
hindsight_api_url="http://localhost:8888",
)
See the installation guide for self-hosting setup.
Selecting tools
Include only the tools you need:
tools = register_hindsight_tools(
composio,
hindsight_api_url="https://api.hindsight.vectorize.io",
enable_retain=True,
enable_recall=True,
enable_reflect=False, # omit reflect
)
Global configuration
Instead of passing connection details every time, configure once:
from hindsight_composio import configure, register_hindsight_tools
configure(
hindsight_api_url="https://api.hindsight.vectorize.io",
api_key="your-api-key", # or set HINDSIGHT_API_KEY env var
default_bank="shared", # fallback bank when no user_id
budget="mid", # recall/reflect budget: low/mid/high
max_tokens=4096, # max tokens for recall results
tags=["env:prod"], # tags for stored memories
recall_tags=["scope:global"], # tags to filter recall
recall_tags_match="any", # any/all/any_strict/all_strict
)
tools = register_hindsight_tools(composio)
Configuration Reference
register_hindsight_tools()
| Parameter | Default | Description |
|---|---|---|
composio |
required | The Composio instance (provides the decorator) |
client |
None |
Pre-configured Hindsight client |
hindsight_api_url |
None |
API URL (used if no client provided) |
api_key |
None |
API key (used if no client provided) |
default_bank |
None |
Bank used when a call has no Composio user_id |
budget |
"mid" |
Recall/reflect budget level (low/mid/high) |
max_tokens |
4096 |
Maximum tokens for recall results |
tags |
None |
Tags applied when storing memories |
recall_tags |
None |
Tags to filter when searching |
recall_tags_match |
"any" |
Tag matching mode |
enable_retain |
True |
Include the retain (store) tool |
enable_recall |
True |
Include the recall (search) tool |
enable_reflect |
True |
Include the reflect (synthesize) tool |
configure()
| Parameter | Default | Description |
|---|---|---|
hindsight_api_url |
Hindsight Cloud (https://api.hindsight.vectorize.io) |
Hindsight API URL |
api_key |
HINDSIGHT_API_KEY env |
API key for authentication |
default_bank |
None |
Fallback bank when a session has no user_id |
budget |
"mid" |
Default recall/reflect budget level |
max_tokens |
4096 |
Default max tokens for recall |
tags |
None |
Default tags for retain operations |
recall_tags |
None |
Default tags to filter recall |
recall_tags_match |
"any" |
Default tag matching mode |
Requirements
- Python >= 3.10
- composio >= 0.13.1, < 1
- hindsight-client >= 0.4.0
- A running Hindsight API server (or Hindsight Cloud)
:::note
Composio's custom-tools API is currently experimental. This integration targets the Composio
0.13.x SDK (from composio import Composio) and intentionally excludes the in-progress 1.0.0
rewrite, whose API differs.
:::