{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "nameforjt-afk-session-knowledge--pick-the-right-credential-value",
 "repo": "nameforjt-afk/session-knowledge",
 "repo_url": "https://github.com/nameforjt-afk/session-knowledge",
 "repo_slug": "nameforjt-afk-session-knowledge",
 "title": "Choose the correct credential value without exposing it",
 "page_title": "How to choose the correct credential value without exposing it with Session Knowledge",
 "summary": "List variable names, then review ranked candidate values in masked form.",
 "who": "A developer who needs the staging or production DATABASE_URL or another key and remembers using several different values.",
 "problem": "The same variable name often has several real values across apps and environments, and picking the wrong one causes errors.",
 "outcome": "The correct variable name and a ranked set of masked candidates, with the call site each one came from.",
 "steps": [
  "`git clone https://github.com/nameforjt-afk/session-knowledge.git`",
  "`cd session-knowledge` then `bash install.sh`",
  "`python3 -m sessionmcp.cli creds list`",
  "`python3 -m sessionmcp.cli creds get DATABASE_URL --masked` (inferred, check the README)",
  "`python3 -m sessionmcp.cli verify-redaction`"
 ],
 "agent_prompt": "In the session-knowledge repo, call list_credentials to find the variable name for <service>, then call get_credential in masked form only. Expect ranked candidates with their call sites and no plaintext shown. Verify that the chosen candidate is not a documentation example before using it.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "Doc examples and made-up values are also extracted as candidates, so blacklist fakes with creds forget --fingerprint rather than deleting them, since deleting alone is undone by the next daily re-scan.",
 "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": [
  {
   "tag": "credentials",
   "notice": "Plaintext values are stored in vault.db at mode 0600 and creds get returns them, so keep output in masked form and never commit or sync the index directory."
  }
 ],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/nameforjt-afk-session-knowledge/pick-the-right-credential-value/",
 "md": "https://dedupedai.com/use-cases/nameforjt-afk-session-knowledge/pick-the-right-credential-value/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--pick-the-right-credential-value.json",
 "api_version": "v1"
}
