mini-code-cli 0.3.0.0__tar.gz → 0.3.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/PKG-INFO +3 -54
  2. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/README.md +2 -52
  3. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/utils.py +73 -77
  4. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli.egg-info/PKG-INFO +3 -54
  5. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli.egg-info/SOURCES.txt +0 -1
  6. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/pyproject.toml +2 -4
  7. mini_code_cli-0.3.0.0/mini_code_cli.egg-info/requires.txt +0 -1
  8. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/LICENSE +0 -0
  9. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/__init__.py +0 -0
  10. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/__main__.py +0 -0
  11. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/agent_files.py +0 -0
  12. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/agent_loop.py +0 -0
  13. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/background.py +0 -0
  14. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/compaction.py +0 -0
  15. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/config.py +0 -0
  16. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/media.py +0 -0
  17. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/permissions.py +0 -0
  18. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/persistence.py +0 -0
  19. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/plan.py +0 -0
  20. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/planning.py +0 -0
  21. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/prompts.py +0 -0
  22. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/recovery.py +0 -0
  23. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/runner.py +0 -0
  24. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/sandbox.py +0 -0
  25. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/settings.py +0 -0
  26. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/shell_safety_utils.py +0 -0
  27. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/skills.py +0 -0
  28. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/subagents/__init__.py +0 -0
  29. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/subagents/base.py +0 -0
  30. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/subagents/builtin.py +0 -0
  31. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/todos.py +0 -0
  32. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/tokens.py +0 -0
  33. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/tools.py +0 -0
  34. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/tui.py +0 -0
  35. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli/ui.py +0 -0
  36. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli.egg-info/dependency_links.txt +0 -0
  37. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli.egg-info/entry_points.txt +0 -0
  38. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/mini_code_cli.egg-info/top_level.txt +0 -0
  39. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/setup.cfg +0 -0
  40. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_advanced_features.py +0 -0
  41. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_background.py +0 -0
  42. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_cli_features.py +0 -0
  43. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_config.py +0 -0
  44. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_e2e_agent_loop.py +0 -0
  45. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_interactive.py +0 -0
  46. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_media.py +0 -0
  47. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_permissions.py +0 -0
  48. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_recovery.py +0 -0
  49. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_release_script.py +0 -0
  50. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_runner.py +0 -0
  51. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_settings.py +0 -0
  52. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_subagents.py +0 -0
  53. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_todos.py +0 -0
  54. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_tokens.py +0 -0
  55. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_tools.py +0 -0
  56. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_tui.py +0 -0
  57. {mini_code_cli-0.3.0.0 → mini_code_cli-0.3.0.1}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mini-code-cli
3
- Version: 0.3.0.0
3
+ Version: 0.3.0.1
4
4
  Summary: Mini Coding Agent. Allows you to easily experiment with a small coding agent.
5
5
  Author-email: Nikolai Rozanov <nikolai.rozanov@gmail.com>
6
6
  License-Expression: AGPL-3.0-only
@@ -14,7 +14,6 @@ Classifier: Operating System :: OS Independent
14
14
  Requires-Python: >=3.10
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: requests<3,>=2.31
18
17
  Dynamic: license-file
19
18
 
20
19
  # mini-code-cli
@@ -48,7 +47,7 @@ pip3 install mini-code-cli
48
47
  ```
49
48
 
50
49
  - **PyPI:** <https://pypi.org/project/mini-code-cli/>
51
- - **Python:** `>= 3.10` &nbsp;·&nbsp; **runtime dependency:** `requests` only
50
+ - **Python:** `>= 3.10` &nbsp;·&nbsp; **runtime dependencies:** none (stdlib only)
52
51
  - **From source / contributing:** see [docs/README_DEV.md](docs/README_DEV.md)
53
52
 
54
53
  ## Quick start
@@ -594,56 +593,6 @@ says what went wrong in red, so it does not get a cheerful summary box on top. W
594
593
  the old per-field `Token usage (this session)` block is printed above it as well.
595
594
 
596
595
 
597
- ## Benchmarks (academic evaluation)
598
-
599
- Everything benchmark-related lives in **[`benchmarks/`](benchmarks/README.md)** — the harness,
600
- its tests, its dependencies and its scripts:
601
-
602
- ```bash
603
- python -m pip install -r benchmarks/requirements.txt # harbor (from its branch), swebench, vllm
604
- # one 3.12 env is enough: harbor needs >=3.12, mini-code supports 3.10+
605
- benchmarks/scripts/setup_external_repos.sh # the TB 2.1 task set (data: clone, not pip)
606
- benchmarks/scripts/apply_local_fixes.sh # re-apply the ignored-checkout fixes
607
-
608
- python benchmarks/run_benchmarks.py --dataset swe-bench --agent mini-code --mode short_eval
609
- python benchmarks/run_benchmarks.py --dataset swe-bench-lite --agent all --mode short_eval
610
- python benchmarks/run_benchmarks.py --dataset terminalbench-2.1 --agent all --mode short
611
-
612
- # On an existing Slurm GPU allocation: start vLLM, wait for /health, then run
613
- # one agent at a time (variables at the top of the script):
614
- benchmarks/scripts/run_benchmark_slurm.sh
615
- # Or generate/submit an sbatch job for the full matrix on 1-4 GPUs:
616
- benchmarks/scripts/submit_benchmark_slurm.sh
617
- # Prepare/verify the Terminal-Bench SIFs on a CPU partition:
618
- benchmarks/scripts/submit_prepare_tb_sifs.sh
619
- ```
620
-
621
- Both SWE-bench splits work on this cluster and need no extra repository — `swe-bench-lite`
622
- is the same harness, the same published instance images and the same grading, only the
623
- HuggingFace dataset changes. Measured on the Docker-less H200 with `--limit 5`,
624
- `--agent all`: Verified 10/15 (mini-code 2, pi 4, claude-code 4) and Lite 12/15
625
- (mini-code 3, pi 4, claude-code 5); Terminal-Bench 2.1 scores per task but not yet as a
626
- campaign (one task: reward 0.0, nine verifier tests, no exception).
627
-
628
- Each run writes `results/<run-id>/summary_results.csv` — one row per agent, with
629
- `trials, resolved, pass_rate, mean_reward, mean_seconds`. `--mode short` is a smoke run
630
- (3 tasks, no grading), `short_eval` grades those 3, `full` runs everything, and `--dry-run`
631
- prints every command and starts nothing.
632
-
633
- The harness runs coding agents against **Terminal-Bench 2.x** and **SWE-bench Verified/Lite** and
634
- compares them — mini-code with several settings, Claude Code, Pi and a deterministic `mock`
635
- agent — by wrapping each benchmark's own official harness (`harbor`, `tb`,
636
- `swebench.harness.run_evaluation`). It supports Docker and Apptainer, exports a CSV and ships an
637
- analyser. Every agent gets the same instructions from one file,
638
- `benchmarks/agents/agent.md`, so a comparison cannot be explained by three different prompts.
639
-
640
- See **[benchmarks/README.md](benchmarks/README.md)** for prerequisites, the two harness forks and
641
- their branches (installed from GitHub, and cloned into `external_repos/` for local development by
642
- `benchmarks/scripts/setup_external_repos.sh`), the `plan` / `run --csv` / `analyze` commands
643
- underneath the entry point, the Docker and Apptainer variants, the configs
644
- (`benchmarks/configs/ornith_30b.json` for TB 2.0 + SWE-bench, `terminal_bench_21.json` for the
645
- local TB 2.1 checkout), and what a run produces.
646
-
647
596
  ## Serving a model locally
648
597
 
649
598
  For a one-GPU quick start, `scripts/run_model.sh` starts the small
@@ -671,7 +620,7 @@ If you use `mini-code-cli` in your research or writing, please cite it:
671
620
  author = {Rozanov, Nikolai},
672
621
  title = {mini-code-cli: A minimal, dependency-light coding agent},
673
622
  year = {2026},
674
- version = {0.3.0.0},
623
+ version = {0.3.0.1},
675
624
  howpublished = {\url{https://github.com/ai-nikolai/mini-code-cli}},
676
625
  note = {A no-bloat, dependency-light agent CLI for experimenting.}
677
626
  }
@@ -29,7 +29,7 @@ pip3 install mini-code-cli
29
29
  ```
30
30
 
31
31
  - **PyPI:** <https://pypi.org/project/mini-code-cli/>
32
- - **Python:** `>= 3.10` &nbsp;·&nbsp; **runtime dependency:** `requests` only
32
+ - **Python:** `>= 3.10` &nbsp;·&nbsp; **runtime dependencies:** none (stdlib only)
33
33
  - **From source / contributing:** see [docs/README_DEV.md](docs/README_DEV.md)
34
34
 
35
35
  ## Quick start
@@ -575,56 +575,6 @@ says what went wrong in red, so it does not get a cheerful summary box on top. W
575
575
  the old per-field `Token usage (this session)` block is printed above it as well.
576
576
 
577
577
 
578
- ## Benchmarks (academic evaluation)
579
-
580
- Everything benchmark-related lives in **[`benchmarks/`](benchmarks/README.md)** — the harness,
581
- its tests, its dependencies and its scripts:
582
-
583
- ```bash
584
- python -m pip install -r benchmarks/requirements.txt # harbor (from its branch), swebench, vllm
585
- # one 3.12 env is enough: harbor needs >=3.12, mini-code supports 3.10+
586
- benchmarks/scripts/setup_external_repos.sh # the TB 2.1 task set (data: clone, not pip)
587
- benchmarks/scripts/apply_local_fixes.sh # re-apply the ignored-checkout fixes
588
-
589
- python benchmarks/run_benchmarks.py --dataset swe-bench --agent mini-code --mode short_eval
590
- python benchmarks/run_benchmarks.py --dataset swe-bench-lite --agent all --mode short_eval
591
- python benchmarks/run_benchmarks.py --dataset terminalbench-2.1 --agent all --mode short
592
-
593
- # On an existing Slurm GPU allocation: start vLLM, wait for /health, then run
594
- # one agent at a time (variables at the top of the script):
595
- benchmarks/scripts/run_benchmark_slurm.sh
596
- # Or generate/submit an sbatch job for the full matrix on 1-4 GPUs:
597
- benchmarks/scripts/submit_benchmark_slurm.sh
598
- # Prepare/verify the Terminal-Bench SIFs on a CPU partition:
599
- benchmarks/scripts/submit_prepare_tb_sifs.sh
600
- ```
601
-
602
- Both SWE-bench splits work on this cluster and need no extra repository — `swe-bench-lite`
603
- is the same harness, the same published instance images and the same grading, only the
604
- HuggingFace dataset changes. Measured on the Docker-less H200 with `--limit 5`,
605
- `--agent all`: Verified 10/15 (mini-code 2, pi 4, claude-code 4) and Lite 12/15
606
- (mini-code 3, pi 4, claude-code 5); Terminal-Bench 2.1 scores per task but not yet as a
607
- campaign (one task: reward 0.0, nine verifier tests, no exception).
608
-
609
- Each run writes `results/<run-id>/summary_results.csv` — one row per agent, with
610
- `trials, resolved, pass_rate, mean_reward, mean_seconds`. `--mode short` is a smoke run
611
- (3 tasks, no grading), `short_eval` grades those 3, `full` runs everything, and `--dry-run`
612
- prints every command and starts nothing.
613
-
614
- The harness runs coding agents against **Terminal-Bench 2.x** and **SWE-bench Verified/Lite** and
615
- compares them — mini-code with several settings, Claude Code, Pi and a deterministic `mock`
616
- agent — by wrapping each benchmark's own official harness (`harbor`, `tb`,
617
- `swebench.harness.run_evaluation`). It supports Docker and Apptainer, exports a CSV and ships an
618
- analyser. Every agent gets the same instructions from one file,
619
- `benchmarks/agents/agent.md`, so a comparison cannot be explained by three different prompts.
620
-
621
- See **[benchmarks/README.md](benchmarks/README.md)** for prerequisites, the two harness forks and
622
- their branches (installed from GitHub, and cloned into `external_repos/` for local development by
623
- `benchmarks/scripts/setup_external_repos.sh`), the `plan` / `run --csv` / `analyze` commands
624
- underneath the entry point, the Docker and Apptainer variants, the configs
625
- (`benchmarks/configs/ornith_30b.json` for TB 2.0 + SWE-bench, `terminal_bench_21.json` for the
626
- local TB 2.1 checkout), and what a run produces.
627
-
628
578
  ## Serving a model locally
629
579
 
630
580
  For a one-GPU quick start, `scripts/run_model.sh` starts the small
@@ -652,7 +602,7 @@ If you use `mini-code-cli` in your research or writing, please cite it:
652
602
  author = {Rozanov, Nikolai},
653
603
  title = {mini-code-cli: A minimal, dependency-light coding agent},
654
604
  year = {2026},
655
- version = {0.3.0.0},
605
+ version = {0.3.0.1},
656
606
  howpublished = {\url{https://github.com/ai-nikolai/mini-code-cli}},
657
607
  note = {A no-bloat, dependency-light agent CLI for experimenting.}
658
608
  }
@@ -1,83 +1,79 @@
1
1
  import json
2
2
  import time
3
3
 
4
- try: # The only third-party import in the package.
5
- import requests
6
- except ModuleNotFoundError: # pragma: no cover - bare images (Terminal-Bench)
7
- # A benchmark task image is free-form: it may ship python3 without pip and
8
- # without `requests` (the first real Terminal-Bench trial died with
9
- # "No module named 'requests'", and `python3 -m pip` is not even there to
10
- # fix it). Everything this module uses from `requests` is a thin layer over
11
- # urllib, so fall back to a shim with the same surface -- `get`, `post`,
12
- # `exceptions.RequestException` and a response object with `status_code`,
13
- # `text`, `json()` and `raise_for_status()` -- and no code below changes.
14
- import socket
15
- import urllib.error
16
- import urllib.request
17
-
18
- class RequestException(Exception):
19
- """Stand-in for ``requests.exceptions.RequestException``."""
20
-
21
- class _Response:
22
- """The slice of ``requests.Response`` this module relies on."""
23
-
24
- def __init__(self, status_code, body):
25
- self.status_code = status_code
26
- self._body = body
27
-
28
- @property
29
- def text(self):
30
- return self._body.decode("utf-8", "replace")
31
-
32
- def json(self):
33
- return json.loads(self.text)
34
-
35
- def raise_for_status(self):
36
- if self.status_code >= 400:
37
- raise RequestException(
38
- f"{self.status_code} error for {self.url}")
39
-
40
- def _request(method, url, headers=None, payload=None, timeout=None):
41
- data = None
42
- prepared_headers = dict(headers or {})
43
- if payload is not None:
44
- # NB: keep this parameter off the name `json` -- that would shadow
45
- # the module imported at the top of this file.
46
- data = json.dumps(payload).encode("utf-8")
47
- prepared_headers.setdefault("Content-Type", "application/json")
48
- request = urllib.request.Request(url, data=data,
49
- headers=prepared_headers, method=method)
50
- try:
51
- with urllib.request.urlopen(request, timeout=timeout) as handle:
52
- response = _Response(handle.status, handle.read())
53
- except urllib.error.HTTPError as error:
54
- # An HTTP status is a *response*, not a transport failure: the caller
55
- # reports the body, so hand back what the server said.
56
- body = error.read() if hasattr(error, "read") else b""
57
- response = _Response(error.code, body)
58
- except (urllib.error.URLError, socket.timeout, TimeoutError, OSError) as error:
59
- raise RequestException(str(error)) from error
60
- response.url = url
61
- return response
62
-
63
- class _Exceptions:
64
- RequestException = RequestException
65
-
66
- class _RequestsShim:
67
- """Namespace mirroring the parts of `requests` used in this module."""
68
-
69
- exceptions = _Exceptions
70
-
71
- @staticmethod
72
- def get(url, headers=None, timeout=None):
73
- return _request("GET", url, headers=headers, timeout=timeout)
74
-
75
- @staticmethod
76
- def post(url, headers=None, json=None, timeout=None):
77
- return _request("POST", url, headers=headers, payload=json,
78
- timeout=timeout)
79
-
80
- requests = _RequestsShim
4
+ #: The HTTP client is a stdlib-only ``urllib`` shim. It mirrors the small
5
+ #: slice of the ``requests`` API this module uses -- ``get``, ``post``,
6
+ #: ``exceptions.RequestException`` and a response object with ``status_code``,
7
+ #: ``text``, ``json()`` and ``raise_for_status()`` -- so mini-code has no
8
+ #: required third-party dependency. It started as the fallback for bare
9
+ #: benchmark images; it is now the only path.
10
+ import socket
11
+ import urllib.error
12
+ import urllib.request
13
+
14
+ class RequestException(Exception):
15
+ """Stand-in for ``requests.exceptions.RequestException``."""
16
+
17
+ class _Response:
18
+ """The slice of ``requests.Response`` this module relies on."""
19
+
20
+ def __init__(self, status_code, body):
21
+ self.status_code = status_code
22
+ self._body = body
23
+
24
+ @property
25
+ def text(self):
26
+ return self._body.decode("utf-8", "replace")
27
+
28
+ def json(self):
29
+ return json.loads(self.text)
30
+
31
+ def raise_for_status(self):
32
+ if self.status_code >= 400:
33
+ raise RequestException(
34
+ f"{self.status_code} error for {self.url}")
35
+
36
+ def _request(method, url, headers=None, payload=None, timeout=None):
37
+ data = None
38
+ prepared_headers = dict(headers or {})
39
+ if payload is not None:
40
+ # NB: keep this parameter off the name `json` -- that would shadow
41
+ # the module imported at the top of this file.
42
+ data = json.dumps(payload).encode("utf-8")
43
+ prepared_headers.setdefault("Content-Type", "application/json")
44
+ request = urllib.request.Request(url, data=data,
45
+ headers=prepared_headers, method=method)
46
+ try:
47
+ with urllib.request.urlopen(request, timeout=timeout) as handle:
48
+ response = _Response(handle.status, handle.read())
49
+ except urllib.error.HTTPError as error:
50
+ # An HTTP status is a *response*, not a transport failure: the caller
51
+ # reports the body, so hand back what the server said.
52
+ body = error.read() if hasattr(error, "read") else b""
53
+ response = _Response(error.code, body)
54
+ except (urllib.error.URLError, socket.timeout, TimeoutError, OSError) as error:
55
+ raise RequestException(str(error)) from error
56
+ response.url = url
57
+ return response
58
+
59
+ class _Exceptions:
60
+ RequestException = RequestException
61
+
62
+ class _RequestsShim:
63
+ """Namespace mirroring the parts of `requests` used in this module."""
64
+
65
+ exceptions = _Exceptions
66
+
67
+ @staticmethod
68
+ def get(url, headers=None, timeout=None):
69
+ return _request("GET", url, headers=headers, timeout=timeout)
70
+
71
+ @staticmethod
72
+ def post(url, headers=None, json=None, timeout=None):
73
+ return _request("POST", url, headers=headers, payload=json,
74
+ timeout=timeout)
75
+
76
+ requests = _RequestsShim
81
77
 
82
78
 
83
79
  from . import media
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mini-code-cli
3
- Version: 0.3.0.0
3
+ Version: 0.3.0.1
4
4
  Summary: Mini Coding Agent. Allows you to easily experiment with a small coding agent.
5
5
  Author-email: Nikolai Rozanov <nikolai.rozanov@gmail.com>
6
6
  License-Expression: AGPL-3.0-only
@@ -14,7 +14,6 @@ Classifier: Operating System :: OS Independent
14
14
  Requires-Python: >=3.10
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: requests<3,>=2.31
18
17
  Dynamic: license-file
19
18
 
20
19
  # mini-code-cli
@@ -48,7 +47,7 @@ pip3 install mini-code-cli
48
47
  ```
49
48
 
50
49
  - **PyPI:** <https://pypi.org/project/mini-code-cli/>
51
- - **Python:** `>= 3.10` &nbsp;·&nbsp; **runtime dependency:** `requests` only
50
+ - **Python:** `>= 3.10` &nbsp;·&nbsp; **runtime dependencies:** none (stdlib only)
52
51
  - **From source / contributing:** see [docs/README_DEV.md](docs/README_DEV.md)
53
52
 
54
53
  ## Quick start
@@ -594,56 +593,6 @@ says what went wrong in red, so it does not get a cheerful summary box on top. W
594
593
  the old per-field `Token usage (this session)` block is printed above it as well.
595
594
 
596
595
 
597
- ## Benchmarks (academic evaluation)
598
-
599
- Everything benchmark-related lives in **[`benchmarks/`](benchmarks/README.md)** — the harness,
600
- its tests, its dependencies and its scripts:
601
-
602
- ```bash
603
- python -m pip install -r benchmarks/requirements.txt # harbor (from its branch), swebench, vllm
604
- # one 3.12 env is enough: harbor needs >=3.12, mini-code supports 3.10+
605
- benchmarks/scripts/setup_external_repos.sh # the TB 2.1 task set (data: clone, not pip)
606
- benchmarks/scripts/apply_local_fixes.sh # re-apply the ignored-checkout fixes
607
-
608
- python benchmarks/run_benchmarks.py --dataset swe-bench --agent mini-code --mode short_eval
609
- python benchmarks/run_benchmarks.py --dataset swe-bench-lite --agent all --mode short_eval
610
- python benchmarks/run_benchmarks.py --dataset terminalbench-2.1 --agent all --mode short
611
-
612
- # On an existing Slurm GPU allocation: start vLLM, wait for /health, then run
613
- # one agent at a time (variables at the top of the script):
614
- benchmarks/scripts/run_benchmark_slurm.sh
615
- # Or generate/submit an sbatch job for the full matrix on 1-4 GPUs:
616
- benchmarks/scripts/submit_benchmark_slurm.sh
617
- # Prepare/verify the Terminal-Bench SIFs on a CPU partition:
618
- benchmarks/scripts/submit_prepare_tb_sifs.sh
619
- ```
620
-
621
- Both SWE-bench splits work on this cluster and need no extra repository — `swe-bench-lite`
622
- is the same harness, the same published instance images and the same grading, only the
623
- HuggingFace dataset changes. Measured on the Docker-less H200 with `--limit 5`,
624
- `--agent all`: Verified 10/15 (mini-code 2, pi 4, claude-code 4) and Lite 12/15
625
- (mini-code 3, pi 4, claude-code 5); Terminal-Bench 2.1 scores per task but not yet as a
626
- campaign (one task: reward 0.0, nine verifier tests, no exception).
627
-
628
- Each run writes `results/<run-id>/summary_results.csv` — one row per agent, with
629
- `trials, resolved, pass_rate, mean_reward, mean_seconds`. `--mode short` is a smoke run
630
- (3 tasks, no grading), `short_eval` grades those 3, `full` runs everything, and `--dry-run`
631
- prints every command and starts nothing.
632
-
633
- The harness runs coding agents against **Terminal-Bench 2.x** and **SWE-bench Verified/Lite** and
634
- compares them — mini-code with several settings, Claude Code, Pi and a deterministic `mock`
635
- agent — by wrapping each benchmark's own official harness (`harbor`, `tb`,
636
- `swebench.harness.run_evaluation`). It supports Docker and Apptainer, exports a CSV and ships an
637
- analyser. Every agent gets the same instructions from one file,
638
- `benchmarks/agents/agent.md`, so a comparison cannot be explained by three different prompts.
639
-
640
- See **[benchmarks/README.md](benchmarks/README.md)** for prerequisites, the two harness forks and
641
- their branches (installed from GitHub, and cloned into `external_repos/` for local development by
642
- `benchmarks/scripts/setup_external_repos.sh`), the `plan` / `run --csv` / `analyze` commands
643
- underneath the entry point, the Docker and Apptainer variants, the configs
644
- (`benchmarks/configs/ornith_30b.json` for TB 2.0 + SWE-bench, `terminal_bench_21.json` for the
645
- local TB 2.1 checkout), and what a run produces.
646
-
647
596
  ## Serving a model locally
648
597
 
649
598
  For a one-GPU quick start, `scripts/run_model.sh` starts the small
@@ -671,7 +620,7 @@ If you use `mini-code-cli` in your research or writing, please cite it:
671
620
  author = {Rozanov, Nikolai},
672
621
  title = {mini-code-cli: A minimal, dependency-light coding agent},
673
622
  year = {2026},
674
- version = {0.3.0.0},
623
+ version = {0.3.0.1},
675
624
  howpublished = {\url{https://github.com/ai-nikolai/mini-code-cli}},
676
625
  note = {A no-bloat, dependency-light agent CLI for experimenting.}
677
626
  }
@@ -30,7 +30,6 @@ mini_code_cli.egg-info/PKG-INFO
30
30
  mini_code_cli.egg-info/SOURCES.txt
31
31
  mini_code_cli.egg-info/dependency_links.txt
32
32
  mini_code_cli.egg-info/entry_points.txt
33
- mini_code_cli.egg-info/requires.txt
34
33
  mini_code_cli.egg-info/top_level.txt
35
34
  mini_code_cli/subagents/__init__.py
36
35
  mini_code_cli/subagents/base.py
@@ -1,13 +1,11 @@
1
1
  [project]
2
2
  name = "mini-code-cli"
3
3
  # version = { file = "mini_code_cli/__init__.py", attr = "__version__" }
4
- version = "0.3.0.0"
4
+ version = "0.3.0.1"
5
5
  description = "Mini Coding Agent. Allows you to easily experiment with a small coding agent."
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.10"
8
- dependencies = [
9
- "requests>=2.31,<3"
10
- ]
8
+ dependencies = []
11
9
  authors = [
12
10
  {name = "Nikolai Rozanov", email = "nikolai.rozanov@gmail.com"},
13
11
  ]
@@ -1 +0,0 @@
1
- requests<3,>=2.31
File without changes