MCPcopy Create free account
hub / github.com/T0UGH/codex-self-evolution-plugin / build_parser

Function build_parser

src/codex_self_evolution/csep.py:15–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def build_parser() -> argparse.ArgumentParser:
16 parser = argparse.ArgumentParser(
17 prog="csep",
18 description="Short runtime commands for codex-self-evolution.",
19 )
20 subparsers = parser.add_subparsers(dest="command", required=True)
21
22 recall = subparsers.add_parser(
23 "recall",
24 help="Run focused recall for a model-generated query. Defaults to Markdown output.",
25 )
26 recall.add_argument("query", nargs="+", help="Focused recall query. Quote it when it contains spaces.")
27 recall.add_argument("--cwd", default=None, help="Repo/current working directory. Defaults to $PWD.")
28 recall.add_argument("--state-dir", default=None)
29 recall.add_argument("--top-k", type=int, default=3)
30 recall.add_argument("--format", choices=("markdown", "json"), default="markdown")
31 return parser
32
33
34def _query_hash(query: str) -> str:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected