Skip to content

Commit 025b4ad

Browse files
authored
Enhance classify step with critical output requirement (#183)
* Enhance classify step with critical output requirement Updated the classify step to include critical output instructions. * Reduce timeouts and update model in workflow * Fix model version in claude-code-test.yml * Increase timeout minutes for jobs in workflow * Adjust timeout and refine job creation instructions Increased timeout for the job creation step and refined instructions to avoid unnecessary commentary. * Clarify output file location in workflow Updated instructions to clarify the output file location for classified fruits. * Update output file paths for fruits job * Modify workflow to create fruits directory and update path Update working directory for validation step and ensure fruits directory is created.
1 parent e30b56f commit 025b4ad

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

.github/workflows/claude-code-test.yml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,13 @@ jobs:
197197
- name: Create job with /deepwork_jobs
198198
if: steps.check-key.outputs.has_key == 'true'
199199
working-directory: test_project
200-
timeout-minutes: 10
200+
timeout-minutes: 6
201201
run: |
202202
echo "=== Running /deepwork_jobs to create fruits job ==="
203+
mkdir fruits
203204
204205
# Provide detailed, deterministic instructions for creating the job
205-
claude --print <<'PROMPT_EOF'
206+
claude --print --model claude-sonnet-4-5 <<'PROMPT_EOF'
206207
/deepwork_jobs I want to create a simple job called "fruits" for identifying and classifying fruits.
207208
208209
Here are the EXACT specifications.
@@ -213,14 +214,17 @@ jobs:
213214
1. Step: identify
214215
Name: Identify Fruits
215216
Description: Filter a list of items to include only the fruits
217+
**CRITICAL**: The output MUST be stored in `fruits/identified_fruits.md`.
216218
217219
2. Step: classify
218220
Name: Classify Fruits
219-
Description: Organize identified fruits into categories (citrus, tropical, berries, etc.)
220-
Input: identified_fruits.md (file from step identify)
221-
Output: classified_fruits.md
221+
Description: Organize identified fruits into categories (citrus, tropical, berries, etc.).
222+
**CRITICAL**: must put the classified fruit list in `./fruits/classified_fruits.md`.
222223
223-
Please create this job now. Do not ask questions.
224+
**Key Instructions:**
225+
- Do not ask questions - just make the job
226+
- Rules are explicitly not desired. Tell the review agents that.
227+
- Do not give long commentary of what you did - just make the job with no commentary.
224228
PROMPT_EOF
225229
226230
# Verify the job.yml was created
@@ -266,40 +270,43 @@ jobs:
266270
fi
267271
268272
# STEP 3: Execute the /fruits workflow (runs all steps automatically)
269-
- name: Run /fruits workflow
273+
- name: Run Workflow
270274
if: steps.check-key.outputs.has_key == 'true'
271275
working-directory: test_project
272-
timeout-minutes: 10
276+
timeout-minutes: 3
273277
run: |
274278
echo "=== Running /fruits workflow with test input ==="
275279
276-
claude --print "/fruits" <<'PROMPT_EOF'
280+
claude --print --model claude-sonnet-4-5 <<'PROMPT_EOF'
281+
/fruits Proccess the list to the file and don't give any extra commentary or text output.
277282
raw_items: apple, car, banana, chair, orange, table, mango, laptop, grape, bicycle
278283
PROMPT_EOF
284+
285+
echo "=== Workflow finished - looking for output file ==="
279286
280287
# Verify both outputs were created
281-
if [ -f "identified_fruits.md" ]; then
288+
if [ -f "fruits/identified_fruits.md" ]; then
282289
echo "SUCCESS: identified_fruits.md created"
283290
echo "--- Output ---"
284-
cat identified_fruits.md
291+
cat fruits/identified_fruits.md
285292
else
286293
echo "ERROR: identified_fruits.md was not created"
287294
exit 1
288295
fi
289296
290-
if [ -f "classified_fruits.md" ]; then
297+
if [ -f "fruits/classified_fruits.md" ]; then
291298
echo "SUCCESS: classified_fruits.md created"
292299
echo "--- Output ---"
293-
cat classified_fruits.md
300+
cat fruits/classified_fruits.md
294301
else
295302
echo "ERROR: classified_fruits.md was not created"
296303
exit 1
297304
fi
298305
299306
# STEP 4: Validate the complete workflow output
300-
- name: Validate complete workflow
307+
- name: Validate Workflow Output
301308
if: steps.check-key.outputs.has_key == 'true'
302-
working-directory: test_project
309+
working-directory: test_project/fruits
303310
run: |
304311
echo "=== Validating complete workflow ==="
305312

0 commit comments

Comments
 (0)