Skip to content

Proposal: opt-in trust for Skillshare-managed Codex project hooks #951

Open

Description

@salmonumbrella

@runkids Would project-scoped Codex hook trust fit Skillshare? I’d like to propose it as a follow-up to #828 / #829, not a change to the global default.

Problem

skillshare hooks sync -p can write a repo’s managed Codex hooks, but --trust only works in global mode. For project hooks such as Kata’s session-start hook, syncing and reviewing the new or changed command in Codex’s /hooks are separate steps.

Proposal

Explore explicit, interactive trust for one project at a time. Resolve that project’s native Codex hook file, show the project path and the exact new or changed commands Skillshare owns, and use Codex’s native review/trust interface only after confirmation. If Codex can’t distinguish the project’s owned entries reliably, stop and point users to /hooks.

Plain sync should keep writing files without changing trust. No automatic trust for other projects, unmanaged hooks, or plugin hooks; no change to workspace trust or the existing global flow. Start with the CLI, not a dashboard or bulk approval.

Question

Does that scope make sense, or should project trust stay exclusively in Codex’s /hooks? No implementation or PR attached; I’m asking for direction first.

AI-assisted write-up of the requested workflow.

Activity

  1. self-assigned this
    on Nov 18, 2026
  2. runkids commented on Nov 18, 2026

    @runkids
    Owner

    Thanks for raising this separately and keeping it scoped. Asking for direction first is helpful.

    Nothing is decided yet, but here is my first reaction.

    • The shape feels right to me, and I would keep it the same as global --trust: list the new or changed commands, ask once, --yes to skip the question, and nothing trusted without a terminal unless --yes is given. Plain sync stays as it is.
    • Like global, it would record trust in every Codex home Skillshare manages, account homes like codex-2 included.
    • The one extra step is Codex's trust of the project folder itself. I would not want Skillshare to touch that. If the folder is not trusted yet, it should say so and stop.
    • Trust is not stored in the project. It goes into the user's own Codex home (~/.codex/config.toml), so this would be the first project-mode command that writes a global file. The prompt and docs would need to say that plainly.
    • The dashboard already has the same action in global scope, so I would give project scope the same button rather than leave it CLI-only. It only ever covers the one project that is open, so there is no bulk approval across projects.

    I checked Codex 0.169.0: the app-server lists project hooks with a key and hash once the folder is trusted, and lists nothing for an untrusted folder. Trust is keyed by the project's absolute path, so it is per home and per checkout.

    Two questions:

    1. Does recording trust in every managed home fit how you use codex-2, or do you keep some homes away from certain projects?
    2. For the Kata hook, would you run this by hand, or from a script with --yes?
  3. added
    feature
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions