You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 37d8996
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+48-2Lines changed: 48 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,8 +40,10 @@ _Implement features and fix bugs without a single tool call, in mere seconds!_
40
40
41
41
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.
42
42
43
+
**Prompt types:**
44
+
43
45
<details>
44
-
<summary>"Edit context" prompt type.</summary>
46
+
<summary>"Edit context"</summary>
45
47
46
48
```
47
49
<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
51
53
52
54
</details>
53
55
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>
55
101
56
102
> [!TIP]
57
103
> Got lost in the codebase? Use "Find relevant files" prompt type with a rough file selection.
0 commit comments