Skip to content

[Feature]: Opt-in mode where Orca never writes agent config outside its own data #22892

Open

Description

@thukabjj

Problem or use case

Some of us manage our agent CLIs' global config ourselves, often generating ~/.claude/settings.json, ~/.codex/config.toml and similar from a script or dotfiles repo. For us, Orca writing into those files is the one thing that stops us adopting it. Today Orca writes outside its own data directory on startup and on agent launch:

Turning off status hooks covers only the first item, and the rest have no off switch. Related reports: #9963, #14301, #16016, #22592.

Proposed solution

A single opt-in setting, Settings → Agents → "Isolate external agent config", default off. When it's on, Orca writes nothing outside its own data directories:

  • no managed hooks (local or remote); status hooks read as off everywhere they're checked
  • no folder-trust presets in agent homes (the Orca-owned Codex runtime config still gets trust, so Codex launches keep working)
  • no Codex hook-approval promotion or settings write-back into ~/.codex
  • no Claude credential sync. Turning isolation on first switches back to the system-default login, so a managed account isn't left in ~/.claude. Managed-account switching is disabled while isolated.

Trade-offs: status dots fall back to what can be inferred without hooks, and agents show their own "trust this folder?" prompt.

This builds on the direction of #19974 (first-run disclosure) and #20691 (hooks opt-in) without depending on either. It doesn't change any default, and it covers the writes those PRs don't touch.

Alternatives or additional context

I've opened a PR with an implementation, including unit and E2E tests. Happy to adjust the direction based on maintainer feedback.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions