MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / run

Method run

tools/provenance-eval/run.py:103–109  ·  view source on GitHub ↗
(self, *args, payload=None, timeout=45)

Source from the content-addressed store, hash-verified

101 self.hook("session-start", {"session_id": SESSION})
102
103 def run(self, *args, payload=None, timeout=45):
104 result = subprocess.run([self.binary, *args, "--no-color"], cwd=self.root,
105 input=payload, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
106 timeout=timeout, env=self.env)
107 if result.returncode:
108 raise RuntimeError(f"{' '.join(args)}: {result.stderr.decode(errors='replace')}")
109 return result
110
111 def hook(self, verb, payload):
112 result = self.run("agent", "hooks", "claude-code", verb, "--foreground",

Callers 15

startMethod · 0.95
hookMethod · 0.95
workerFunction · 0.95
measure_turnFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
commandFunction · 0.45
runFunction · 0.45
callFunction · 0.45
shellMethod · 0.45

Calls 1

decodeMethod · 0.45