MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / parse_task_list

Function parse_task_list

core/orchestrator.py:117–125  ·  view source on GitHub ↗

Extract numbered steps from model output.

(model_output)

Source from the content-addressed store, hash-verified

115 return signals >= 3
116
117def parse_task_list(model_output):
118 """Extract numbered steps from model output."""
119 tasks = []
120 for line in model_output.splitlines():
121 line = line.strip()
122 m = re.match(r'^(\d+)[.)\s]+(.+)$', line)
123 if m and len(m.group(2)) > 5:
124 tasks.append(m.group(2).strip())
125 return _postprocess_plan(tasks[:8])
126
127
128# Filename extraction pattern

Callers 1

plan_tasksFunction · 0.85

Calls 2

_postprocess_planFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected