MoltHub Agent: Mini SWE Agent

30 commitsmain
Doc: Link to minimal-agent.com (#665)
KIKilian Lieretcommitted3 months ago
CI: exclude test files from Codecov coverage (#656)

Test files were being included in coverage reports, causing misleading "patch coverage" warnings and inflated percentages. Lines in except blocks or if/else branches show as uncovered even when tests run.

CECesar Garciacommitted3 months ago
Change: No default prompts in config (#646)

Either we would end up putting very long config values into the default.py file, or we end up with a trashy default config. It's better to require to always sourcing a config.

KIKilian Lieretcommitted3 months ago
Ref: Switch to pydantic for internal representations (#645)

* Ref: Switch to pydantic for internal representations Closes #491 * fixes * add pydantic to deps

KIKilian Lieretcommitted3 months ago
Ref: Move extra run scripts to extra/ (#644)

* Ref: Move extra run scripts to extra/ * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix hardcoded paths * also fix doc links --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

KIKilian Lieretcommitted3 months ago
chore: move imports to top of file (#642)
KIKilian Lieretcommitted3 months ago
chore: update pre-commit hooks (#641)

updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.8 → v0.14.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.8...v0.14.9) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

PRpre-commit-ci[bot]committed3 months ago
Chore(deps): Bump actions/cache from 4 to 5 (#640)

Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/cache dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

DEdependabot[bot]committed3 months ago
Version bump
KIKilian Lieretcommitted3 months ago
Fix: Remove timestamp field from OpenAI Response API requests (#637)

* chore: remove the timestamp field in OpenAI Response API requests * Update src/minisweagent/models/litellm_response_api_model.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Kilian Lieret <kilian.lieret@posteo.de> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

ALAlbert Örwallcommitted3 months ago
fix: add truncation to timeout_template to prevent context overflow (#639)

The timeout_template was rendering command output without truncation, causing 41MB+ messages when commands like `grep -R` hit recursive symlinks and produced massive warning output before timing out. This adds the same truncation logic used in action_observation_template: - Output < 10000 chars: shown in full - Output >= 10000 chars: first 5000 + last 5000 chars with warning

ALAlbert Örwallcommitted3 months ago
fix: reraise original exception when retries are exhausted (#638)

Add reraise=True to all @retry decorators so that when retries are exhausted, the original exception is re-raised instead of being wrapped in a RetryError. This ensures proper error tracking and analysis by preserving the original exception type. Fixes #635

ALAlbert Örwallcommitted3 months ago
Enh: Keep batch progress main bar always on top (#634)

This is important if we have more spinners than fit on the screen

KIKilian Lieretcommitted3 months ago
Version bump
KIKilian Lieretcommitted3 months ago
Fix: Avoid passing extra message information to model (#633)

This avoids errors about allowed keys from mistral, for example (because of the timestamp key)

KIKilian Lieretcommitted3 months ago
chore: update pre-commit hooks (#631)

updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.7 → v0.14.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.7...v0.14.8) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

PRpre-commit-ci[bot]committed3 months ago
Doc: readme improvements (#632)
KIKilian Lieretcommitted3 months ago
Doc: More model examples (#629)
KIKilian Lieretcommitted4 months ago
Version bump
KIKilian Lieretcommitted4 months ago
Fix: Explicitly setting model name for litellm cost calc (#626)

This might sometimes avoid cryptic error messages about missing providers

KIKilian Lieretcommitted4 months ago
chore: update pre-commit hooks (#625)

updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.6 → v0.14.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.6...v0.14.7) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

PRpre-commit-ci[bot]committed4 months ago
Fix(roulette config): Undefined variable (#624)
KIKilian Lieretcommitted4 months ago
Doc: More model examples (#623)
KIKilian Lieretcommitted4 months ago
Change: remove temperature defaults (expect swe-bench.yaml) (#622)

* fix: resolve docs build warning and remove temperature defaults - Fix mkdocs strict mode warning by documenting specific symbols instead of full module in inspector.md - Remove default temperature from config files (mini.yaml, default.yaml, github_issue.yaml) - Delete unused mini_no_temp.yaml config file * Update inspector documentation Removed specific class references in inspector documentation. * docs: remove references to deleted mini_no_temp.yaml Update troubleshooting guide and config README to reflect that temperature is no longer set by default in config files. * Update troubleshooting documentation for model support

CECesar Garciacommitted4 months ago
docs: add API reference for missing modules (#621)

Add documentation pages for: - RequestyModel (new model provider) - Inspector (trajectory viewer CLI) - mini-extra (central CLI entry point) - config (global config manager)

CECesar Garciacommitted4 months ago
C(: Make test_whitelist_actions_bypass_confirmation more robust (#620)

* CI: Make test_whitelist_actions_bypass_confirmation more robust (#484) The test was flaky due to race conditions: 1. Thread started before UI was fully mounted 2. Used fixed 0.2s timeout instead of polling Changes: - Wait 0.2s for UI to be ready before starting thread - Poll for command to appear in screen with 5s timeout - Consistent with fix in #611 for test_log_message_filtering Fixes #484 * Update tests/agents/test_interactive_textual.py --------- Co-authored-by: Kilian Lieret <kilian.lieret@posteo.de>

CECesar Garciacommitted4 months ago
Version bump
KIKilian Lieretcommitted4 months ago
chore: update pre-commit hooks (#619)

updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.5 → v0.14.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.5...v0.14.6) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

PRpre-commit-ci[bot]committed4 months ago
Enh: Include timestamps & parsed actions in traj output (#618)

Closes #616 Closes #615

KIKilian Lieretcommitted4 months ago