Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.318 ·

Prompts are scored for security-related intent

Claude Code now scores each prompt 0 to 2 for security-audit intent and stores it in _securityCheckRequestScores; hook docs mention inner REPL calls

Group of 2 You'll notice Internal Changes
JSON All of v2.1.318
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
Code ReviewArea: what it touches
Internal ChangesKind: in v2.1.318,
What probably matters to youSection of the release

Unclear It is not known where the stored scores are used, or whether they are sent anywhere.

What

Claude Code now scores each prompt you type for how strongly it asks for security work, and keeps those scores for the session.

  • A score of 2 means audit or vulnerability-hunting wording such as 'security audit' or 'find vulnerabilities'.
  • A score of 1 means any mention of 'security', or words starting with 'vuln' or 'exploit'.
  • Phrases like 'social security' and 'dependency injection' do not count.
  • Only nonzero scores are kept, in a _securityCheckRequestScores map keyed by each message's id. These sit with the signals Claude Code uses to choose tips.
  • Scoring is skipped when one of the other checks that sort prompts into kinds has already matched.

Separately, the description of the classifierContext hook field changed. A hook is a script you set up to run at certain moments. Behind an internal check, the description now says that inner REPL calls, as well as remote-engine shells, produce no per-result line. Before, it named only remote-engine shells.

Why

Your prompts are now sorted by whether they look like a security request. The members do not show where the scores are used. Their placement next to tip signals points to a security-related tip. If you write hooks that read classifierContext, note that inner REPL calls also leave no per-result line there.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not known where the stored scores are used, or whether they are sent anywhere.

See this entry in the whole of v2.1.318 →

Feedback