Sticky --commit-scope so the flag isn't required on every call #104
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
coily --commit-scope=<repo-path>is required on every invocation when working from~/projects/coilysiren/(the parent cwd, which is 95% of Kai's workflow). Auto-resolving scope from cwd doesn't help here - cwd is the parent, not a repo. The flag is friction Kai pays on nearly every coily call.Proposal
Sticky scope, modeled after
kubectl config use-context:coily scope use <repo>- write active scope to a per-shell or per-tty state file. Subsequentcoily ...calls inherit it.coily scope- print the active scope (no args).coily scope clear- drop the active scope, require the flag again.--commit-scope=<path>- still works, overrides sticky for that one call.State location: per-tty so concurrent terminals don't fight (e.g.
$XDG_RUNTIME_DIR/coily/scope-$(tty | tr / _)or similar). Falls back to a single global file if tty-keying is awkward.Audit log
Audit log records the resolved scope at call time, not the source (flag vs sticky vs default). Attribution stays honest. The whole point of this feature is to not lose the audit log while removing the per-call typing.
Mitigation for context-shift mistakes
The risk is that Kai switches mental context between repos and forgets to switch scope. Mitigations:
coily scopewith no args prints the active scope.[scope: <name>]to its own output on every call, so the active scope is visible without asking.Out of scope
Origin
Chat with Kai 2026-05-26. Quote: "the commit scope arg is super annoying to actually work with... I don't want to lose the entire audit log."