You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow-up to #69 (v2 phase). v1 (codex-cli) shipped via PR #70.
Goal
Add a claude-cli backend that spawns claude -p with the patina prompt on stdin, returning the cleaned text. Unlocks key-free use for users with a Claude Code subscription.
Follow-up to #69 (v2 phase). v1 (codex-cli) shipped via PR #70.
Goal
Add a
claude-clibackend that spawnsclaude -pwith the patina prompt on stdin, returning the cleaned text. Unlocks key-free use for users with a Claude Code subscription.Sketch
src/backends/claude-cli.jsmirroringcodex-cli.jsshapeisAvailable()checksclaude --versionisAuthenticated()checks~/.claude/credentialsor equivalent (verify path)invoke()spawnsclaude -p, pipes prompt to stdin, captures stdoutsrc/backends/index.jsREGISTRY--model claude*→ claude-cli (mirroring codex)--backend claude-cli(or--model claude*)--sandbox read-onlyif claude CLI supports it; otherwise document the trust assumptionAcceptance
patina --backend claude-cli input.txtworks when claude is installed and logged inpatina --model claude-sonnet-4-6 input.txtroutes to claude-clipatina auth statusreports availability + auth stateOut of scope