Set up with your agent
modelstill setup hands your coding agent a short fixed prompt that finds your LLM calls and adds a first task spec, recording and a CI gate.
Run it at the root of your application's repository, with modelstill installed:
modelstill setupmodelstill setup --agent claudemodelstill setup --agent codexprint, the default, prints the prompt for you to paste into any agent.clauderunsclaude -p --permission-mode acceptEdits "<prompt>".codexrunscodex exec --sandbox workspace-write "<prompt>".
The agent is launched only when its binary is on the PATH; otherwise the command says so and prints the prompt. setup itself writes no file, asks for no key and contacts nothing.
What the prompt asks for
- Read the bundled skill; the prompt carries its installed path.
- Find the application's LLM calls: file, model, prompt and answer shape.
- Add
tasks/<task>/spec.yamlfor the narrowest, busiest call and runmodelstill spec validateuntil it passes. - Wire recording: the ModelStill LiteLLM plugin in mode
offif the app goes through LiteLLM, otherwise run history files. - Add the pull-request gate workflow (see Gate a change in CI).
- Stop and list what it changed and what you still decide: teachers, judge and thresholds. No commit, no push.
It must not run the application, read secret files or write a secret into the repository.
Why these flags
claude -pruns once and exits.acceptEditslets it edit files but still asks before shell commands, so it cannot start your application unattended. In headless mode that also deniesmodelstill spec validate: run it yourself afterwards.codex exec --sandbox workspace-writecan write only inside the repository and has no network by default.
Review the diff before committing. The spec's teachers, judge and gate thresholds are placeholders until you pick them.