A local, bring-your-own-key maintenance agent that turns a bounded issue into a reviewable patch. The model can propose; deterministic policy decides whether the patch is in scope; a human explicitly approves application; fixed checks must pass before the tool can commit or open a draft pull request.
Open the visual Team Flow in Codelit | Local Runs documentation | Browse Agent Teams
npm install
npm run preview
npm run verifyEdit maintenance.config.json:
contextPathsare the only files sent to your selected model.allowedPathsare the only files a proposed patch may change.blockedPathsextend built-in blocks for secrets, workflows, migrations, and infrastructure.verifyCommandsare fixed by the repository owner, not the model.- Patch bytes, files, lines, and context all have explicit caps.
The included fixture and issues/example.md make the safety flow inspectable
before you point it at a real repository.
export CODELIT_PROVIDER=openai
export CODELIT_MODEL=gpt-4o-mini
export OPENAI_API_KEY=...
npm run maintain -- plan --issue issues/example.md
# Review .codelit/proposal.patch
npm run maintain -- applyThe apply command requires a clean worktree, creates a new codelit/* branch,
revalidates the patch, applies it with Git, runs every configured check, and
commits only on success. It does not push.
To apply the reviewed proposal and open a draft PR in the same approved step, use this command instead of the plain apply command:
gh auth login
npm run maintain -- apply --draft-prThe runner can never merge, approve, or deploy. See the implementation boundary for the exact free and hosted split.
MIT
