Neocortex (TinyHuman) memory tools for CrewAI.
Provides explicit BaseTool implementations that expose a Mastra-aligned Neocortex tool surface in CrewAI.
Core tools:
NeocortexSaveMemoryToolNeocortexRecallMemoryToolNeocortexDeleteMemoryTool
Newer endpoint tools:
NeocortexSyncMemoryToolNeocortexInsertDocumentToolNeocortexInsertDocumentsBatchToolNeocortexListDocumentsToolNeocortexGetDocumentToolNeocortexDeleteDocumentToolNeocortexQueryMemoryContextToolNeocortexChatMemoryContextToolNeocortexRecordInteractionsToolNeocortexRecallThoughtsToolNeocortexChatMemoryToolNeocortexInteractMemoryToolNeocortexRecallMemoryMasterToolNeocortexRecallMemoriesToolNeocortexGetIngestionJobToolNeocortexGetGraphSnapshotTool
insert_documentrequiresdocument_id.insert_documents_batchrequiresdocument_idon every item initems_json.
Helper:
create_neocortex_tools(client, default_namespace)returns all tools pre-built.
pip install neocortex-crewaiSet your API key:
export TINYHUMANS_API_KEY="your_token_here"Instantiate tools with a TinyHumanMemoryClient and pass them to your agents.
import os
from crewai import Agent
from tinyhumansai import TinyHumanMemoryClient
from neocortex_crewai import create_neocortex_tools
client = TinyHumanMemoryClient(token=os.getenv("TINYHUMANS_API_KEY"))
tools = create_neocortex_tools(client=client, default_namespace="my_crew")
researcher = Agent(
role='Memory Researcher',
goal='Store facts and recall them accurately.',
backstory='You are an AI assistant that can persist thoughts.',
tools=tools,
)Run the package smoke example:
cd packages/plugin-crewai
python3 examples/crewai_agent.pyThe example exercises broad tool coverage (save/recall, documents, context/chat, interactions, recall variants, sync/job/admin snapshot, cleanup) and prints each call result.