[Feature] Per-project resource toggles in config (port of pi config -l) #1473
ruttybob
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Area: Agent core / Coding agent and CLI / TUI
Problem
prime-agent configonly manages global resources. There is no way to give a project its own resource set — a repo that wants a specific skill, prompt, extension, or theme enabled, or a global one disabled, has to either install it globally (leaks into every other project) or hand-edit the project's.prime/agent/settings.jsonwith+pattern/-patternoverrides. The storage layer already supports project scope, but the config TUI never surfaces it, so precedence is opaque and sharing a setup across a team means hand-writing JSON.Proposed direction
Port pi's
config -lUX:prime-agent config -lopens the config TUI in project-local mode; Tab switches between a Global pane and a Project pane.+pattern/-patterndiffs into the project's.prime/agent/settings.json; inherited-from-global entries render dimmed; explicit project overrides win by the existing precedence ranks — resolution semantics unchanged.settings.jsonis committable by design (no trust gate).Alternatives considered
settings.jsontoday: works, but you need to know the pattern syntax and precedence ranks, with no feedback on what actually resolves.projectTrusted): rejected — the repo has no trust model and the committable settings file is the point.Additional context
pi config -l, Tab scope switch, tri-state toggles). The port is the config-selector TUI plus a scoped-resolve seam; no storage-layer changes are needed.-lflag, scoped resolution, tests) and can open a PR if invited.All reactions