# Claude Code: settings files did not load (Invalid or malformed JSON)

> A settings file is not valid JSON, most often because of a trailing comma, a comment or a missing brace. The exact message, why Claude Code prints it, and the fix.

_Updated November 23, 2026 · Checked against Claude Code 2.1.308, reproduced in EnvHaven 1.9.0_

## The message

```text
These settings files did not load, so nothing in them is in effect, including hooks and permission rules. Each loads again once the problem listed for it is fixed:
  ~/.claude/settings.json: Invalid or malformed JSON
```

## What it means

A settings file is not valid JSON, most often because of a trailing comma, a comment or a missing brace. Claude Code ignores the whole file, so its permission rules and hooks are not in effect.

## Fix

1. Open the file named in the message and validate it: `python3 -m json.tool ~/.claude/settings.json`.
2. Remove trailing commas and comments; JSON allows neither.
3. Restart `claude`. The warning disappears once every listed file parses.

## In an EnvHaven workspace

Only if the file is edited by hand. The workspace writes a valid settings file on first boot.

## Where this comes from

This message was produced by Claude Code (Claude Code 2.1.308) itself, in a throwaway EnvHaven 1.9.0 container, on 2026-11-23; the text above is copied from that output.

## Keep reading

- [Claude Code](https://envhaven.com/agents/claude-code)
- [Is Claude Code down?](https://envhaven.com/status/claude-code)
- [Every agent error](https://envhaven.com/errors)

Source: https://envhaven.com/errors/claude-code/settings-files-did-not-load
