Reference
Protected paths
The hard rails - what Spark's rules make ask or refuse in a chat, and what is refused even with no rules.
All pagesWith no rules, the default, the mode decides all of this but outside changes. Recommended rules give the table below, outside Terminal sessions.
What always asks
| What | Examples | What happens |
|---|---|---|
| Secret files | Below | Claude refuses changes, even in Bypass permissions; Codex and commands ask. Reads follow your mode, logged by path. |
Files in .sparkignore |
Anything you list | Reading asks too. |
| Agent instruction files | AGENTS.md, CLAUDE.md at any depth, .github/copilot-instructions.md, .agents/, .claude/, .codex/, .cursor/rules/, .spark/ |
Allow once or Allow for this chat. |
| Git hooks and config | Writes into .git/hooks, .git/config, deleting .git, git config writes, --global |
Hold to confirm, in worktrees too. Other .git files can't change. |
| Outside the linked repos | Changes or deletes outside the project | Asks; Allow for this session covers later changes, not deletes. Reads, /tmp: your mode. |
| Force pushes | git push --force-with-lease to a named, non-default branch |
Hold to confirm; no "always" option. Claude can't, even in Bypass permissions. |
| Sending a secret value | A push, gh upload, or site address or text holding a secret file's value |
Hold to confirm, naming the file. |
Windows and macOS match any case.

The recommended rules also refuse other branches than the chat's or its adopted one, other force pushes and remote changes. Unasked changes are flagged.
What is always refused
Even with no rules:
- Reading, copying or changing Spark's data folder and browser data (Personal included) or other chats' folders.
- Your ChatGPT or Claude account's own apps and connectors; add MCP servers in Spark.
--no-verify, and reading or changing Spark's rules files directly.- Changing Sparks' folders or workflow files directly; agents may read them.
A blocked step reads "Refused …".
When a chat says Codex "ran with Codex's own sandbox instead", the browser data block can't apply. In a mode that runs without asking, Spark flags a command reading it afterwards.
Spark rules
Rules live in Spark's data folder, in settings.json. A company's managed-settings.json, in /Library/Application Support/SparkOutpost/ or %ProgramData%\SparkOutpost\, can't be loosened.
Rules go in permissions.allow, ask or deny; deny wins, then ask. Unlisted or allowed rules follow the mode, unflagged. A broken or unreadable file means recommended rules.
| Rule | Covers | Recommended |
|---|---|---|
Push, PullRequest |
Pushing or a pull request when nothing allows it | deny |
Push(other), GitRemote |
Other branches; remotes, other hosting CLIs | deny |
Gh(workflow run), Gh(run rerun), Gh(run cancel) |
Run a workflow | allow |
Gh(<group> <verb>), Gh(*) |
Other gh commands; a named one escapes Gh(*) |
deny Gh(*) |
Gh(pr merge), Gh(pr review), GhAdmin, Gh(auth), Gh(api write) |
Merging, reviews, --admin, gh auth, gh api writes |
deny |
SecretFile(edit), SecretFile(read) |
Secret files; .sparkignore reads |
ask |
Push(force), InstructionFile(edit), GitConfig, WriteOutside, SecretSend |
Their rows above | ask |
Fixed: Spark's ports, the always refused list and the Mac control, Browser pane, Calendar and web address rules.
Settings → Spark rules (Mac) sets each rule in your file; Use recommended rules adds the table's choices. A refusal shows a card.
spark_rules_edit asks on the Mac. Allow for this session: one file, that chat, your turns, same agent and mode. Outside edits wait for Review.
Secret files
| Kind | Patterns |
|---|---|
| Environment | .env and .env.*, except .env.example |
| Keys | SSH keys (id_rsa, id_ed25519), *.pem, *.key, *.p12, *.pfx |
| Credential files | .npmrc, .netrc, .pgpass, .pypirc, .git-credentials, credentials files, api-token |
Ship leaves these out of commits.
When an agent may publish
An agent may push the chat's own branch and open its pull request only when:
- your message asks, such as "open a PR" or "push it" (which allows only the push);
- the chat is at Full auto → PR;
- the agent's mode is Auto, Bypass permissions or Full access;
- the turn fixes feedback on the chat's own open pull request.
Otherwise the recommended rules refuse it, and you ship.