// Simplified: response parsing and error handling omitted.
async function callTool(endpoint, token, name, args) {
let session = null;
let id = 0;
const post = async (body) => {
const headers = {One memory for several AI tools
Claude Code, Codex and Hermes each kept their own notes. Two small hooks and one shared memory service changed that. What we built, why the hooks talk HTTP instead of using MCP tools, and what broke on the first day.