cline:file creation and editing - chunhualiao/public-docs GitHub Wiki

cline

System prompt : https://github.com/cline/cline/blob/eed9ee98/src/core/prompts/system.ts

  • You have access to two tools for working with files: write_to_file and replace_in_file. Understanding their roles and selecting the right one for the job will help ensure efficient and accurate modifications.

Cline creates new files using the write_to_file tool. This process involves several components working together:

  • The user requests to create a new file through the chat interface
  • Cline processes this request and uses the write_to_file tool
  • The system shows a preview of the file to be created
  • Upon approval, the file is created in the specified location