{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "nameforjt-afk-session-knowledge--find-duplicated-implementations-across-projects",
 "repo": "nameforjt-afk/session-knowledge",
 "repo_url": "https://github.com/nameforjt-afk/session-knowledge",
 "repo_slug": "nameforjt-afk-session-knowledge",
 "title": "Spot logic implemented more than once across projects",
 "page_title": "How to spot logic implemented more than once across projects with Session Knowledge",
 "summary": "Run the duplicate-implementation report to find copies and mark the canonical version.",
 "who": "A developer or team lead maintaining several related repos who suspects the same logic was copied into multiple places.",
 "problem": "Copied implementations drift apart over time, and no single project directory shows the duplicates.",
 "outcome": "A report of what was implemented several times and which projects are forks, plus a canonical file you can declare.",
 "steps": [
  "`git clone https://github.com/nameforjt-afk/session-knowledge.git`",
  "`cd session-knowledge` then `bash install.sh`",
  "`python3 -m sessionmcp.cli index`",
  "`python3 -m sessionmcp.cli code dup`",
  "Create ~/.claude/knowledge/canonical.json to claim the file that should be the canonical implementation. (inferred, check the README)"
 ],
 "agent_prompt": "Using the session-knowledge repo, call list_duplication and review the output for <capability> across projects. Expect a list of repeated implementations and any projects marked as forks. Verify each flagged duplicate by opening the file before proposing a canonical version.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Duplication is only reported for the Python, JS, and TS files inside the auto-derived or manually set project directories, so duplicates in other directories or languages are invisible.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Claude Code with session transcripts in ~/.claude/projects/",
  "Python 3.10+ with FTS5 in the bundled sqlite3 (on macOS, install from python.org or run brew install python)",
  "git and bash to clone and run install.sh",
  "Terminal access to run the CLI and restart Claude Code"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.6,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/nameforjt-afk-session-knowledge/find-duplicated-implementations-across-projects/",
 "md": "https://dedupedai.com/use-cases/nameforjt-afk-session-knowledge/find-duplicated-implementations-across-projects/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/nameforjt-afk-session-knowledge--find-duplicated-implementations-across-projects.json",
 "api_version": "v1"
}
