MCPcopy
hub / github.com/shareAI-lab/learn-claude-code / create

Method create

agents/s_full.py:278–282  ·  view source on GitHub ↗
(self, subject: str, description: str = "")

Source from the content-addressed store, hash-verified

276 (TASKS_DIR / f"task_{task['id']}.json").write_text(json.dumps(task, indent=2))
277
278 def create(self, subject: str, description: str = "") -> str:
279 task = {"id": self._next_id(), "subject": subject, "description": description,
280 "status": "pending", "owner": None, "blockedBy": []}
281 self._save(task)
282 return json.dumps(task, indent=2)
283
284 def get(self, tid: int) -> str:
285 return json.dumps(self._load(tid), indent=2)

Callers 15

agent_loopFunction · 0.45
agent_loopFunction · 0.45
agent_loopFunction · 0.45
runFunction · 0.45
agent_loopFunction · 0.45
agent_loopFunction · 0.45
runFunction · 0.45
agent_loopFunction · 0.45
agent_loopFunction · 0.45
runFunction · 0.45
agent_loopFunction · 0.45
spawn_subagentFunction · 0.45

Calls 2

_next_idMethod · 0.95
_saveMethod · 0.95

Tested by

no test coverage detected