Skip to content

System prompts of coding agents

FolderAgentSource
codexOpenAI Codexcodex-rs/models-manager/models.json, split by codex/build.py
opencodeOpenCodetext files in packages/core/src/
clineClineTypeScript strings in sdk/packages/
roomoteRoomoteTypeScript strings in packages/cloud-agents/src/

extract.py creates the prompts/ folders of OpenCode, Cline and Roomote from local checkouts of the three repositories:

python3 -I extract.py <checkouts folder> .

It reads the source files and doesn’t run any code from the repositories. Each folder’s README names the commit it was copied from. When a repository changes, the script stops with an error if a string it looks for has moved.

In all folders, placeholders and tags such as <X> or <system-reminder> are wrapped in backticks so that Markdown shows them.