Skip to content

Commit ddd4bd7

Browse files
committed
Update feature sections formatting and add documentation for commit messages
1 parent 9f0b8cf commit ddd4bd7

1 file changed

Lines changed: 39 additions & 12 deletions

File tree

‎README.md‎

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333

3434
**CWC** helps with all common use-cases like multi-file editing, planning, generating code at cursor or commit messages.
3535

36-
<details>
37-
<summary><strong>File editing</strong> (click to expand)</summary>
36+
#### File editing
3837

39-
_Implement new features, fix bugs and refactor code across many files._
38+
Implement new features, fix bugs and refactor code across many files.
4039

41-
Structure of the constructed prompt:
40+
<details>
41+
<summary>Structure of the constructed prompt (click to expand)</summary>
4242

4343
```
4444
# Files
@@ -57,12 +57,12 @@ Whenever showing a new, updated, renamed, or deleted file, provide a brief expla
5757

5858
</details>
5959

60-
<details>
61-
<summary><strong>Asking about file selection</strong></summary>
60+
#### Asking about file selection
6261

63-
_Plan features or get explanations._
62+
Plan features or get explanations.
6463

65-
Structure of the constructed prompt:
64+
<details>
65+
<summary>tructure of the constructed prompt</summary>
6666

6767
```
6868
# Files
@@ -76,12 +76,12 @@ Structure of the constructed prompt:
7676

7777
</details>
7878

79-
<details>
80-
<summary><strong>TAB completions</strong></summary>
79+
#### TAB completions
8180

82-
<p>_Quality TAB completions from SOTA reasoning models._</p>
81+
Quality autocomplete with SOTA reasoning models.
8382

84-
Structure of the constructed prompt:
83+
<details>
84+
<summary>Structure of the constructed prompt</summary>
8585

8686
````
8787
# Files
@@ -107,6 +107,33 @@ Find correct replacement text for the <missing_text> symbol.
107107

108108
</details>
109109

110+
#### Commit messages
111+
112+
Generate commit messages based on staged changes and context files.
113+
114+
<details>
115+
<summary>Structure of the constructed prompt</summary>
116+
117+
```
118+
# Files
119+
120+
[SELECTED FILES OF ACCEPTED EDITS]
121+
122+
# Changes
123+
124+
[STAGED CHANGES]
125+
126+
# Output formatting
127+
128+
[FORMATTING INSTRUCTIONS]
129+
130+
# Task
131+
132+
Write a brief and precise summary for the changes, limited to a single sentence. Because the summary will be used for a commit message, don't use any markdown formatting and don't include a trailing dot. Use an imperative tone to ensure clarity and focus on the primary change or purpose.
133+
```
134+
135+
</details>
136+
110137
## Prompt caching
111138

112139
**CWC** orders context files by modification and selection recency. This, combined with instructions placement at the message's very end effecively utilizes [prompt caching](https://developers.openai.com/api/docs/guides/prompt-caching) across tasks.

0 commit comments

Comments
 (0)