feat(paperclip): add hindsight-paperclip TypeScript integration#773
Open
benfrank241 wants to merge 3 commits intomainfrom
Open
feat(paperclip): add hindsight-paperclip TypeScript integration#773benfrank241 wants to merge 3 commits intomainfrom
benfrank241 wants to merge 3 commits intomainfrom
Conversation
Adds long-term memory for Paperclip AI agents via a lightweight
TypeScript/Node.js npm package with no runtime dependencies.
- recall() / retain() functions for heartbeat lifecycle hooks
- createMemoryMiddleware() for Express HTTP adapter agents
- Bank ID strategy: paperclip::{companyId}::{agentId} (configurable)
- Skill file for agents to call Hindsight REST API directly
- 27 unit tests covering bank derivation, recall, and retain
- Docs page at sdks/integrations/paperclip
4580d6a to
91d364b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hindsight-paperclipnpm package providing long-term memory for Paperclip AI agentsrecall()/retain()functions for use in heartbeat lifecycle hooks (HTTP and Process adapters)createMemoryMiddleware()for Express HTTP adapter agents — auto-recalls before each request, auto-retains agent output after each responsepaperclip::{companyId}::{agentId}(configurable granularity)sdks/integrations/paperclipadded to sidebarPackage structure
Test plan
npm run build— TypeScript compiles cleanlynpm test— 27 tests pass (bank derivation, recall, retain)