Credentials. The setup puts your OpenAI API key in an environment variable, so keep it out of shared logs and scripts you publish.
Who it is forAn account manager or sales developer whose AI agent must say who is the decision-maker on an account as of today, after several changes over months.
The problemNearest-match memory returns an old statement that sounds relevant, such as the first owner, and gives no date or reason, so the agent gives a stale answer.
The outcomeThe agent returns the current answer with each supporting moment, showing who said it and when, so a person can check it quickly.
What you need first
- Python with pip available
- An OpenAI API key, or an OpenAI-compatible provider with OPENAI_BASE_URL set
- Network access to download the demo_codebook.xml file from GitHub
- Conversation text you are allowed to store in a local memory file
Steps
- Install the library:
python -m pip install memoket-kite - Set your key, replacing the placeholder with your own:
export OPENAI_API_KEY="sk-..." - Create the artifacts folder:
mkdir -p artifacts - Download the demo file:
curl -fsSL https://raw.githubusercontent.com/memoket/memoket-kite/main/examples/data/demo_codebook.xml -o artifacts/quickstart.xml(inferred, check the README) - In Python, call Memory.load("artifacts/quickstart.xml"), then memory.remember([{"role": "user", "content": "<client message>"}], session_id="<session id>") for each dated client message.
- Call memory.answer_with_evidence("Who is the decision-maker on <account> now?") and print result.text and each fact.sources.
Prompt for your agent
Use the memoket-kite repo's Python API. Load artifacts/quickstart.xml, store each stored message about <client account> with remember, then call answer_with_evidence on "Who owns <client account> now?" Expected output: the current owner's name plus the source lines with their dates. Verify that the most recent dated source supports the answer before you report it.
Caveat. The README says integrations with Claude Code, Codex, Cursor, and OpenCode are on the roadmap, so agents use KITE through the Python API today.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for memoket/memoket-kite and "Answer who owns a client account now, with sources"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer