@gonzih/cc-agent 0.15.21 → 0.15.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/seeds.d.ts.map +1 -1
- package/dist/seeds.js +71 -0
- package/dist/seeds.js.map +1 -1
- package/package.json +1 -1
package/dist/seeds.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seeds.d.ts","sourceRoot":"","sources":["../src/seeds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAClD,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9C;AAED,QAAA,MAAM,gBAAgB,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"seeds.d.ts","sourceRoot":"","sources":["../src/seeds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAClD,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9C;AAED,QAAA,MAAM,gBAAgB,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,EAuJjD,CAAC;AAEF,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAUtF;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
package/dist/seeds.js
CHANGED
|
@@ -82,6 +82,73 @@ Fix any breakage. Run tests. Commit if green.`,
|
|
|
82
82
|
description: "Bump all dependencies, fix breakage, run tests",
|
|
83
83
|
builtin: true,
|
|
84
84
|
},
|
|
85
|
+
{
|
|
86
|
+
name: "coder",
|
|
87
|
+
repoUrl: "",
|
|
88
|
+
taskTemplate: "{{task}}",
|
|
89
|
+
defaultBudgetUsd: 20,
|
|
90
|
+
description: "General coding agent — Karpathy discipline: think before coding, simplicity first, surgical changes",
|
|
91
|
+
builtin: true,
|
|
92
|
+
preamble: `# Coding Guidelines (Karpathy discipline)
|
|
93
|
+
|
|
94
|
+
Behavioral guidelines to reduce common LLM coding mistakes.
|
|
95
|
+
|
|
96
|
+
**Tradeoff:** These guidelines bias toward caution over speed. For trivial tasks, use judgment.
|
|
97
|
+
|
|
98
|
+
## 1. Think Before Coding
|
|
99
|
+
|
|
100
|
+
**Don't assume. Don't hide confusion. Surface tradeoffs.**
|
|
101
|
+
|
|
102
|
+
Before implementing:
|
|
103
|
+
- State your assumptions explicitly. If uncertain, ask.
|
|
104
|
+
- If multiple interpretations exist, present them — don't pick silently.
|
|
105
|
+
- If a simpler approach exists, say so. Push back when warranted.
|
|
106
|
+
- If something is unclear, stop. Name what's confusing. Ask.
|
|
107
|
+
|
|
108
|
+
## 2. Simplicity First
|
|
109
|
+
|
|
110
|
+
**Minimum code that solves the problem. Nothing speculative.**
|
|
111
|
+
|
|
112
|
+
- No features beyond what was asked.
|
|
113
|
+
- No abstractions for single-use code.
|
|
114
|
+
- No "flexibility" or "configurability" that wasn't requested.
|
|
115
|
+
- No error handling for impossible scenarios.
|
|
116
|
+
- If you write 200 lines and it could be 50, rewrite it.
|
|
117
|
+
|
|
118
|
+
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
|
|
119
|
+
|
|
120
|
+
## 3. Surgical Changes
|
|
121
|
+
|
|
122
|
+
**Touch only what you must. Clean up only your own mess.**
|
|
123
|
+
|
|
124
|
+
When editing existing code:
|
|
125
|
+
- Don't "improve" adjacent code, comments, or formatting.
|
|
126
|
+
- Don't refactor things that aren't broken.
|
|
127
|
+
- Match existing style, even if you'd do it differently.
|
|
128
|
+
- If you notice unrelated dead code, mention it — don't delete it.
|
|
129
|
+
|
|
130
|
+
When your changes create orphans:
|
|
131
|
+
- Remove imports/variables/functions that YOUR changes made unused.
|
|
132
|
+
- Don't remove pre-existing dead code unless asked.
|
|
133
|
+
|
|
134
|
+
The test: Every changed line should trace directly to the user's request.
|
|
135
|
+
|
|
136
|
+
## 4. Goal-Driven Execution
|
|
137
|
+
|
|
138
|
+
**Define success criteria. Loop until verified.**
|
|
139
|
+
|
|
140
|
+
Transform tasks into verifiable goals:
|
|
141
|
+
- "Add validation" → "Write tests for invalid inputs, then make them pass"
|
|
142
|
+
- "Fix the bug" → "Write a test that reproduces it, then make it pass"
|
|
143
|
+
- "Refactor X" → "Ensure tests pass before and after"
|
|
144
|
+
|
|
145
|
+
For multi-step tasks, state a brief plan:
|
|
146
|
+
1. [Step] → verify: [check]
|
|
147
|
+
2. [Step] → verify: [check]
|
|
148
|
+
3. [Step] → verify: [check]
|
|
149
|
+
|
|
150
|
+
Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.`,
|
|
151
|
+
},
|
|
85
152
|
];
|
|
86
153
|
export async function seedBuiltinProfiles(store) {
|
|
87
154
|
for (const profile of BUILTIN_PROFILES) {
|
|
@@ -89,6 +156,10 @@ export async function seedBuiltinProfiles(store) {
|
|
|
89
156
|
if (!existing) {
|
|
90
157
|
await store.saveProfile({ ...profile, createdAt: new Date().toISOString() });
|
|
91
158
|
}
|
|
159
|
+
else if (existing.builtin === true) {
|
|
160
|
+
// Always overwrite stale builtin definitions with the latest version
|
|
161
|
+
await store.saveProfile({ ...profile, createdAt: existing.createdAt });
|
|
162
|
+
}
|
|
92
163
|
}
|
|
93
164
|
}
|
|
94
165
|
export { BUILTIN_PROFILES };
|
package/dist/seeds.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seeds.js","sourceRoot":"","sources":["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