MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / parse_args

Function parse_args

eval/run_real_model.py:74–130  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

72
73
74def parse_args(argv):
75 parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
76 parser.add_argument(
77 "--scenario",
78 action="append",
79 help="Scenario id (repeatable). Default: every scenario with a real_model block.",
80 )
81 parser.add_argument(
82 "--driver",
83 choices=("hermes", "cursor-agent"),
84 default="hermes",
85 help="Agent driver. cursor-agent support is experimental.",
86 )
87 parser.add_argument("--agent-turn", action="store_true", help="Actually run real agent turns.")
88 parser.add_argument(
89 "--i-understand-model-cost",
90 action="store_true",
91 help="Acknowledge that real turns consume model credits/quota.",
92 )
93 parser.add_argument("--model", default=DEFAULT_MODEL, help="Model override for the agent.")
94 parser.add_argument(
95 "--provider",
96 help="Hermes inference provider (e.g. openai-codex, zai). Default: profile config.",
97 )
98 parser.add_argument("--max-turns", type=int, help="Override scenario max_turns.")
99 parser.add_argument(
100 "--hermes-dir",
101 type=Path,
102 default=DEFAULT_HERMES_DIR,
103 help="Hermes checkout to `uv run` from.",
104 )
105 parser.add_argument(
106 "--profile",
107 help=(
108 "Hermes profile name used for the eval. By default the runner creates "
109 "a unique temporary Hermes home instead of writing to ~/.hermes."
110 ),
111 )
112 parser.add_argument(
113 "--hermes-home",
114 type=Path,
115 help=(
116 "Explicit HERMES_HOME/profile directory to use. Passing this or "
117 "--profile opts into user-managed Hermes storage."
118 ),
119 )
120 parser.add_argument(
121 "--tracedecay-bin",
122 type=Path,
123 help="tracedecay binary (default: target/debug/tracedecay if built, else PATH).",
124 )
125 parser.add_argument(
126 "--keep-fixture",
127 action="store_true",
128 help="Keep the throwaway fixture project for inspection.",
129 )
130 return parser.parse_args(argv)
131

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected