Skip to content

Replace about 170 wrapper scripts with per-track subcommand CLIs #100

Closed

Description

@lanyue-llk

Problem

The median script in scripts/ is 7 lines that call a main_* variant in harness/. Style is inconsistent: 64 of 169 scripts use sys.path.insert, 30 have shebangs, and some carry # noqa: E402.

Some scripts contain real logic, against the AGENTS.md thin-CLI rule: audit_initial_references.py (236 lines), build_report.py (155), review_guidelines.py (150), check_track_naming.py (144), run_webarena_trajectory_replay.py (75).

scripts/moli_report/ is a 4k-line JS/CSS app living in scripts/.

Proposal

  • One python -m harness.<track> <command> per track, as harness.web_fetch already does, plus console scripts in pyproject.toml.
  • Move script logic into harness/ and the moli_report assets into a package.
  • Migrate the Makefile, CI, docs, skills and the 42 test files that call script paths, all in one atomic change per track. No old names are kept as aliases.

Risk: medium. Depends on: script pruning.


Part of the refactor roadmap: #87

Activity

  1. added
    refactor
    on Oct 29, 2026
  2. lanyue-llk commented on Nov 3, 2026

    @lanyue-llk
    ContributorAuthor

    Resolved by #139, #143. Remaining work is tracked in #155.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions