{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "sherlockwz-ama--harness-agent-memory-skill",
 "repo": "Sherlockwz/AMA",
 "repo_url": "https://github.com/Sherlockwz/AMA",
 "repo_slug": "sherlockwz-ama",
 "title": "Add AMA long-term memory policy to an agent harness",
 "page_title": "How to add AMA long-term memory policy to an agent harness with AMA",
 "summary": "Load the portable SKILL.md policy and bind AMA memory operations to your agent's tools.",
 "who": "An agent developer whose harness forgets user details between sessions and needs a documented policy for when to recall, capture, and forget.",
 "problem": "Agents lose prior context and have no consistent rule for when to retrieve memory, store turns, or honor deletion requests.",
 "outcome": "Your harness loads a written memory operating policy and can call AMA memory operations through its own tool interface.",
 "steps": [
  "`git clone https://github.com/Sherlockwz/AMA.git`",
  "`cd AMA`",
  "`corepack enable pnpm`",
  "`./scripts/setup.sh`",
  "Export `AMA_LLM_API_KEY`, `AMA_LLM_BASE_URL`, and `AMA_EMBEDDING_URL` in your shell, pointing to your OpenAI-compatible endpoints.",
  "Open `SKILL.md` and map its retrieve, capture, synthesize, inspect, and delete rules onto your harness tool interface, using the six operations in `tools/`."
 ],
 "agent_prompt": "In the AMA repo at <path-to-AMA>, read SKILL.md and list each rule about when to retrieve prior context, capture turns, synthesize episodes, inspect state, and honor deletion requests. Expected output: a bulleted list of those rules with the heading each came from. Verify that every rule you list appears in SKILL.md text and none is invented.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README describes the six operations and the policy only in general terms, so you must read the tools/ folder to see their exact interfaces before binding them.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10 or newer",
  "Node.js 22.22.3 or newer (24.15 or newer also supported)",
  "pnpm 11 or newer",
  "An OpenAI-compatible chat-completions endpoint and embedding endpoint, with an API key",
  "Git, to clone the repository"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The setup needs LLM and embedding API keys, which must be exported in your shell and never committed to the repo."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/sherlockwz-ama/harness-agent-memory-skill/",
 "md": "https://dedupedai.com/use-cases/sherlockwz-ama/harness-agent-memory-skill/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/sherlockwz-ama--harness-agent-memory-skill.json",
 "api_version": "v1"
}
