Skip to content

Instantly share code, notes, and snippets.

@szmeku
Created August 23, 2026 17:06
Show Gist options
  • Select an option

  • Save szmeku/c8f18800fba3d5a0ed489d6189b2c259 to your computer and use it in GitHub Desktop.

Select an option

Save szmeku/c8f18800fba3d5a0ed489d6189b2c259 to your computer and use it in GitHub Desktop.
name: coding2
version: 1
description: Increase Go test coverage and deliver the verified change.
agents:
implementer:
description: Selects and implements the smallest meaningful test-only coverage improvement.
model: openrouter/openai/gpt-5.6-luna
temperature: 0
tools: [read, grep, bash]
maxTurns: 8
resultSchema:
type: object
required: [summary, changed_files, checks]
properties:
summary: {type: string, minLength: 1}
changed_files:
type: array
minItems: 1
items: {type: string, minLength: 1}
checks:
type: array
minItems: 1
items: {type: string, minLength: 1}
steps:
- id: inventory
tool: bash
timeout: 5m
toolInput:
command: 'bash "$ZENFLOW_CODING2_LIB/collect-before-coverage.sh"'
timeout_seconds: 300
working_directory: "."
- id: implement
agent: implementer
dependsOn: [inventory]
condition: "steps[\"inventory\"].content.contains('INVENTORY_OK')"
timeout: 10m
instructions: |
Requested task: ${TASK}
Use the inventory output as evidence. Choose one currently uncovered branch
in a package with a natural test location and add one small meaningful test
for it. Act promptly after locating the target. This is test-only work:
preserve existing behavior, tests, and assertions. Use Bash to append a new
test or create a new *_test.go file; do not rewrite an existing test file.
Run gofmt and the focused test, inspect the actual worktree, and submit only
after a real test file change exists. Do not commit, push, or use GitHub.
- id: verify
tool: bash
dependsOn: [implement]
timeout: 5m
toolInput:
command: 'bash "$ZENFLOW_CODING2_LIB/verify-coverage-increase.sh"'
timeout_seconds: 300
working_directory: "."
- id: publish
tool: bash
dependsOn: [verify]
condition: "steps[\"verify\"].content.contains('VERIFY_OK')"
timeout: 5m
toolInput:
command: 'bash "$ZENFLOW_CODING2_LIB/publish-coverage-pr.sh"'
timeout_seconds: 300
working_directory: "."
options:
maxConcurrency: 1
onStepFailure: cascade
timeout: 25m
stepTimeout: 8m
maxRetries: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment