Coding

1 Database Password, 46 Copies in Old Chats: How He Found Secrets Saved in Claude Code and Codex Logs

  • Level Intermediate
  • Setup1–3 hrs (estimated)
  • Evidence Some evidence
  • CostNot stated in source
  • No-codeNo
Claude CodeCodexSource-linked

What they did

Coding agents save every chat to your disk as plain text. Claude Code keeps about a month, and Codex had kept all of his since he installed it. When he checked, one database password showed up 46 times (22 of them the agent typing it into its own commands), plus an access token another 14 times. Now he pastes keys into files himself and his agent rules say never to print them. Since then, every session has had zero.

How it went

X post by @Bajanpunkw (Oct 26, 2026 UTC) with a screenshot: a database password appeared 46 times and a token 14 times; new rule gave zero after. Rotate any key you find, because deleting the logs doesn't undo a leak. He mentions a full rules article that isn't needed for this check

Worth knowing

  • X post by @Bajanpunkw (Oct 26, 2026 UTC) with a screenshot: a database password appeared 46 times and a token 14 times; new rule gave zero after.
  • Rotate any key you find, because deleting the logs doesn't undo a leak. He mentions a full rules article that isn't needed for this check.

Prompt

Cleaned version rewritten from the source — not a direct quote.

Search my local agent chat logs (~/.codex/sessions and ~/.claude/projects) for anything that looks like a password, API key or token. Report each file and how many times each secret appears, but print only the first 4 characters of any secret. Then suggest which keys I should rotate and add a rule to my agent instructions: never print or echo secrets.

Recommended

Try it in Grok Bot

Grok Bot can run this check through a coding agent on your computer and summarize what it finds.

  1. Copy the prompt (button below).
  2. Open Grok Bot chat and paste it. Replace any [bracketed] placeholders.
  3. Connect the listed tools (as needed) as connectors when Grok Bot asks.
  4. If the task repeats, ask: "Make this a daily routine."

Alternatives: the same prompt works in Claude Code, Codex, Claude, ChatGPT Agent, OpenClaw.

Set it up

Stack: Claude Code + Codex

  1. Read the original source for full context.
  2. Connect the tools your agent needs.
  3. Paste the prompt and replace [bracketed] placeholders.
  4. Run once manually and check the output before scheduling it.

Generic suggested steps, not from the source.

Evidence

X post by @Bajanpunkw (Oct 26, 2026 UTC) with a screenshot: a database password appeared 46 times and a token 14 times; new rule gave zero after. Rotate any key you find, because deleting the logs doesn't undo a leak. He mentions a full rules article that isn't needed for this check

Source: X · 2026-10-26 · Verified by us: not yet · Report broken or outdated

Related use cases

ContentX · 2026-01

Turn YouTube channels into a weekly EPUB magazine

Every week, pulls new videos from a list of YouTube channels, rewrites their transcripts as magazine articles, and emails them to you as a newsletter plus an EPUB file.

  • Level Intermediate
  • Setup1–3 hrs*
  • Evidence Strong evidence
Claude CodeSource-linked
CodingX · 2026-10

Hermes Agent Nearly Doubled Speech-to-Text Accuracy on Hard Words: 99 to 183 of 240

A user turned his 15K saved Wispr Flow dictations into a test set for the local Whisper model behind his Hermes Agent. The agent turned his Wispr dictionary into a hint list, diffed raw vs corrected text to find words Whisper keeps mishearing, made find-and-fix rules, and tested every rule against the full history. With no fine-tuning, dictionary words went from 99/240 to 183/240 on Wispr clips and 19/45 to 43/45 on sentences he read aloud. It now archives the data nightly and looks for new fixes weekly.

  • Level Advanced
  • Setup1–3 hrs*
  • Evidence Strong evidence
Hermes AgentSource-linked
CodingReddit · 2026-10

1 Minute to 1 Second: Claude Code Built a Faster Plex App for a Samsung TV

On a 2022 Samsung TV the official Plex app took about a minute to open and search lagged about 10 seconds. A Redditor used Claude Code to build a free, open-source web-app client that opens in about a second, searches as you type and plays 98.7% of his library directly in hardware.

  • Level Advanced
  • Setup1–3 hrs*
  • Evidence Strong evidence
Claude CodeSource-linked