declare
A Claude Code settings key, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
Shell command safety check now catches more declare/typeset/local flag combinations, and drops a narrower older check
Not Anthropic's. This is the line from the earliest changelog entry here that named it, v2.1.271.
In the changelogs
12Releases whose published page names declare.
-
v2.1.315
Shell functions whose names start with
-or+now survive the shell snapshotClaude Code's copy of your shell setup now handles functions whose names begin with a minus or plus sign
found in this entry's text
-
v2.1.312
Permission checks now look at what follows export and declare
When checking shell commands against your permissions, Claude Code now examines the words after export- and declare-style commands
found in this entry's text
-
v2.1.311
Stricter checks on declare, export and readonly in shell commands
Claude Code checks
declare,export,readonlyand similar commands more strictly, so more of them now ask for permissionfound in this entry's text
-
v2.1.311
Delete-command checks now look again at commands that set variables
The check on inline shell commands runs a second pass for commands starting with
export,declare,typeset,readonlyorlocalfound in this entry's text
-
v2.1.309
Some export and declare shell commands now ask for approval
Shell declarations whose value comes from an expansion that can fail at runtime are now treated as too complex and need your approval
found in this entry's text
-
v2.1.290
Some
rmcommands with variables set in front now ask firstClaude Code now rechecks
rmcommands with variables set before a declaration, and asks you when it cannot check them allfound in this entry's text
-
v2.1.290
Shell command safety check notes a quoting risk in declarations
Claude Code's shell command analysis now marks declaration commands where its quote tracking may go out of step
found in this entry's text
-
v2.1.273
Shell-safety analyzer: new differential detection for array-assignment-shaped flags
Shell-safety checker now flags export/readonly commands whose flags look like an array assignment
found in this entry's text
-
v2.1.273
Shell static-analysis tightened for declare/typeset/local operands
Claude Code's shell command checker now catches trickier declare/typeset/local arguments
named in this entry, found in this entry's text
-
v2.1.273
Bash differential-execution checker gains new too-complex guards for declare/typeset/local
Bash safety checker now flags declare/typeset/local commands with complex operands as too complex to pre-check
named in this entry, found in this entry's text
-
v2.1.271
Shell command safety check expanded for declare/typeset/local flags
Shell command safety check now catches more declare/typeset/local flag combinations, and drops a narrower older check
found in this entry's text
-
v2.1.271
zsh typeset/declare permission check widened to more flags
Bash's zsh permission check now catches more typeset/declare flags that change assignment behavior
found in this entry's text
First cited
0No release's published evidence quotes this name. The ledger indexes the Evidence lines of every changelog on this site, so this says nobody here has ever quoted it; it says nothing about how old the name is.
Presence across releases
0The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the settings key does. All settings keys.