Skip to content

Commit 37d8996

Browse files
committed
Add documentation for all prompt types with formatted examples in README
1 parent d170079 commit 37d8996

1 file changed

Lines changed: 48 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ _Implement features and fix bugs without a single tool call, in mere seconds!_
4040

4141
In the world of AI coding, agents like Claude Code or Codex rely on "Function Calling" (where the AI asks "the harness" to read a file, waits for the tool to respond, then reads another). CWC flips this by letting you provide context files upfront in a single, well-structured XML message.
4242

43+
**Prompt types:**
44+
4345
<details>
44-
<summary>"Edit context" prompt type.</summary>
46+
<summary>"Edit context"</summary>
4547

4648
```
4749
<files>[the selected files]</files>
@@ -51,7 +53,51 @@ In the world of AI coding, agents like Claude Code or Codex rely on "Function Ca
5153

5254
</details>
5355

54-
Other prompt types, like "Code at cursor" follow a similar pattern.
56+
<details>
57+
<summary>"Ask about context"</summary>
58+
59+
```
60+
<files>[the selected files]</files>
61+
[user-typed instructions]
62+
```
63+
64+
</details>
65+
66+
<details>
67+
<summary>"Code at cursor"</summary>
68+
69+
```
70+
<files>[the selected files]</files>
71+
<file path="[active file]">
72+
<![CDATA[
73+
[text before cursor]<missing_text>[user-typed instructions]</missing_text>[text after cursor]
74+
]]>
75+
</file>
76+
</files>
77+
<system>[code at cursor instructions]</system>
78+
```
79+
80+
</details>
81+
82+
<details>
83+
<summary>"Find relevant files"</summary>
84+
85+
```
86+
<files>[the selected files]</files>
87+
<system>[find relevant files format and instructions]</system>
88+
[user-typed instructions]
89+
```
90+
91+
</details>
92+
93+
<details>
94+
<summary>"No context"</summary>
95+
96+
```
97+
[user-typed instructions]
98+
```
99+
100+
</details>
55101

56102
> [!TIP]
57103
> Got lost in the codebase? Use "Find relevant files" prompt type with a rough file selection.

0 commit comments

Comments
 (0)