Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .claude/commands/deep-sweep.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,17 @@ with path.open() as f:
reader = csv.DictReader(f)
header = reader.fieldnames
rows = [r for r in reader if r["module"] != "{module}"]
def _oneline(v):
# merge=union is line-based: a newline inside a quoted field splits
# the record on parallel-agent merges. Force one physical line per
# record by collapsing embedded newlines to " | ".
return "" if v is None else str(v).replace("\r\n", " | ").replace("\r", " | ").replace("\n", " | ")

with path.open("w", newline="") as f:
w = csv.DictWriter(f, fieldnames=header, quoting=csv.QUOTE_MINIMAL)
w.writeheader()
for r in rows:
w.writerow(r)
w.writerow({k: _oneline(v) for k, v in r.items()})
```

This removes only the target module's row from each state file, leaving
Expand Down
8 changes: 7 additions & 1 deletion .claude/commands/sweep-accuracy.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,17 @@ If CUDA_AVAILABLE is false:
"notes": "<single-line notes (replace any newlines with spaces), or empty>",
}

def _oneline(v):
# merge=union is line-based: a newline inside a quoted field splits
# the record on parallel-agent merges. Force one physical line per
# record by collapsing embedded newlines to " | ".
return "" if v is None else str(v).replace("\r\n", " | ").replace("\r", " | ").replace("\n", " | ")

with path.open("w", newline="") as f:
w = csv.DictWriter(f, fieldnames=header, quoting=csv.QUOTE_MINIMAL)
w.writeheader()
for m in sorted(rows):
w.writerow(rows[m])
w.writerow({k: _oneline(v) for k, v in rows[m].items()})
```

Use empty strings (not `null`) for missing values. Set `issue` to the
Expand Down
8 changes: 7 additions & 1 deletion .claude/commands/sweep-api-consistency.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,17 @@ If CUDA_AVAILABLE is false:
"notes": "<single-line notes or empty>",
}

def _oneline(v):
# merge=union is line-based: a newline inside a quoted field splits
# the record on parallel-agent merges. Force one physical line per
# record by collapsing embedded newlines to " | ".
return "" if v is None else str(v).replace("\r\n", " | ").replace("\r", " | ").replace("\n", " | ")

with path.open("w", newline="") as f:
w = csv.DictWriter(f, fieldnames=header, quoting=csv.QUOTE_MINIMAL)
w.writeheader()
for m in sorted(rows):
w.writerow(rows[m])
w.writerow({k: _oneline(v) for k, v in rows[m].items()})
```

Then `git add` and commit.
Expand Down
8 changes: 7 additions & 1 deletion .claude/commands/sweep-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,17 @@ If CUDA_AVAILABLE is false:
"notes": "<single-line notes (replace any newlines with spaces), or empty>",
}

def _oneline(v):
# merge=union is line-based: a newline inside a quoted field splits
# the record on parallel-agent merges. Force one physical line per
# record by collapsing embedded newlines to " | ".
return "" if v is None else str(v).replace("\r\n", " | ").replace("\r", " | ").replace("\n", " | ")

with path.open("w", newline="") as f:
w = csv.DictWriter(f, fieldnames=header, quoting=csv.QUOTE_MINIMAL)
w.writeheader()
for m in sorted(rows):
w.writerow(rows[m])
w.writerow({k: _oneline(v) for k, v in rows[m].items()})
```

Use empty strings (not `null`) for missing values.
Expand Down
8 changes: 7 additions & 1 deletion .claude/commands/sweep-performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,17 @@ If CUDA_AVAILABLE is false:
"notes": "<single-line notes (replace any newlines with spaces), or empty>",
}

def _oneline(v):
# merge=union is line-based: a newline inside a quoted field splits
# the record on parallel-agent merges. Force one physical line per
# record by collapsing embedded newlines to " | ".
return "" if v is None else str(v).replace("\r\n", " | ").replace("\r", " | ").replace("\n", " | ")

with path.open("w", newline="") as f:
w = csv.DictWriter(f, fieldnames=header, quoting=csv.QUOTE_MINIMAL)
w.writeheader()
for m in sorted(rows):
w.writerow(rows[m])
w.writerow({k: _oneline(v) for k, v in rows[m].items()})
```

Use empty strings (not `null`) for missing values. Set `issue` to the
Expand Down
8 changes: 7 additions & 1 deletion .claude/commands/sweep-security.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,17 @@ If CUDA_AVAILABLE is false:
"notes": "<single-line notes (replace any newlines with spaces), or empty>",
}

def _oneline(v):
# merge=union is line-based: a newline inside a quoted field splits
# the record on parallel-agent merges. Force one physical line per
# record by collapsing embedded newlines to " | ".
return "" if v is None else str(v).replace("\r\n", " | ").replace("\r", " | ").replace("\n", " | ")

with path.open("w", newline="") as f:
w = csv.DictWriter(f, fieldnames=header, quoting=csv.QUOTE_MINIMAL)
w.writeheader()
for m in sorted(rows):
w.writerow(rows[m])
w.writerow({k: _oneline(v) for k, v in rows[m].items()})
```

Use empty strings (not `null`) for missing values. Set `issue` to the
Expand Down
8 changes: 7 additions & 1 deletion .claude/commands/sweep-test-coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,17 @@ If CUDA_AVAILABLE is false:
"notes": "<single-line notes or empty>",
}

def _oneline(v):
# merge=union is line-based: a newline inside a quoted field splits
# the record on parallel-agent merges. Force one physical line per
# record by collapsing embedded newlines to " | ".
return "" if v is None else str(v).replace("\r\n", " | ").replace("\r", " | ").replace("\n", " | ")

with path.open("w", newline="") as f:
w = csv.DictWriter(f, fieldnames=header, quoting=csv.QUOTE_MINIMAL)
w.writeheader()
for m in sorted(rows):
w.writerow(rows[m])
w.writerow({k: _oneline(v) for k, v in rows[m].items()})
```

Then `git add` and commit.
Expand Down
Loading