2026-02-04 18:30:38 -08:00
|
|
|
[project]
|
|
|
|
|
name = "open-swe-agent"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
description = "Open SWE Agent - Python agent for automating software engineering tasks"
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
requires-python = ">=3.11"
|
|
|
|
|
license = { text = "MIT" }
|
|
|
|
|
dependencies = [
|
2026-05-29 11:08:55 -07:00
|
|
|
"deepagents>=0.6.6",
|
2026-05-01 13:43:34 -07:00
|
|
|
"fastapi>=0.136.1",
|
|
|
|
|
"uvicorn>=0.46.0",
|
|
|
|
|
"httpx>=0.28.1",
|
|
|
|
|
"PyJWT>=2.12.1",
|
2026-02-04 18:30:38 -08:00
|
|
|
"cryptography>=41.0.0",
|
2026-04-16 07:09:02 +00:00
|
|
|
"langgraph-sdk>=0.3.13",
|
2026-05-01 13:43:34 -07:00
|
|
|
"langchain>=1.2.17",
|
|
|
|
|
"langgraph>=1.1.10",
|
2026-02-06 13:23:09 -08:00
|
|
|
"markdownify>=1.2.2",
|
2026-05-01 13:43:34 -07:00
|
|
|
"langchain-anthropic>=1.4.2",
|
|
|
|
|
"langgraph-cli[inmem]>=0.4.24",
|
2026-05-08 00:30:14 -04:00
|
|
|
"langsmith>=0.8.3",
|
2026-05-01 13:43:34 -07:00
|
|
|
"langchain-openai>=1.2.1",
|
2026-04-16 07:09:02 +00:00
|
|
|
"langchain-daytona>=0.0.5",
|
|
|
|
|
"langchain-modal>=0.0.3",
|
|
|
|
|
"langchain-runloop>=0.0.4",
|
2026-05-01 13:43:34 -07:00
|
|
|
"exa-py>=2.12.1",
|
feat: tune reviewer for precision — web/wiki tools + recalibrated prompt (#1312)
* feat: tune reviewer for precision — web/wiki tools + recalibrated prompt
Reviewer agent now has web_search, fetch_url, and http_request alongside the
finding tools, so it can verify library semantics and consult the DeepWiki
auto-generated wiki for public repos (https://deepwiki.com/<owner>/<repo>)
before flagging cross-file or architectural concerns.
Prompt rewritten to push precision over recall:
- explicit severity ladder pushing reviews toward bimodal high/low instead of
defaulting to medium
- ≤200-char description target (gold set averages ~186 chars; we were at ~436)
- mandatory docs / wiki / code lookup before flagging concurrency, security,
or perf — the three categories that dominated false positives
- "do not flag" list covering compiler/linter-catchable nits, speculative
claims without a concrete attacker/interleaving/scale, style preferences
the codebase doesn't share, and test-quality nits on non-test diffs
- smart file-selection guidance for large PRs (deprioritize generated /
vendored / pure-rename hunks)
Eval config switched to openai:gpt-5.5 + high reasoning effort for the next
benchmark run.
* trim prompt
* subagent prompting
* confidence ratings
* added medium
* enforce confidence threshold
* .
* reviewer: precision-tuned prompt + drop confidence gate
Rewrites the reviewer system prompt around a defensibility bar (anchor +
failure mode + maintainer wouldn't say "not a bug"), an explicit do-not-file
list (style nits, speculation, scope-policing, same-bug fan-out), and a
checklist of 10 bug archetypes drawn from a per-PR audit of the eval golden
set. The audit showed 145 FPs in the last eval split ~28% speculative, ~26%
style-nit, ~31% real-but-unscored (mostly same-archetype fan-out); the new
prompt targets each class directly.
Confidence is still recorded on every finding for post-hoc calibration but
no longer gates publication — the audit showed the gate was a no-op (agent
self-rated 65% of findings "high" regardless), and the prompt's defensibility
bar is the actual discipline. Drops CONFIDENCE_ORDER, CONFIDENCE_THRESHOLD,
the confidence_threshold kwarg on filter_findings_for_publish, the
confidence_filtered score_mode, and the min_confidence kwarg on the eval
target's _extract_comments — all dead once the gate is gone.
Also removes the "informational" severity tier from the Severity enum,
SEVERITY_ORDER, and all validators / tests / docstrings. It was reserved for
FYI observations the dataset never rewards.
* benchmax
* adding google provider
* slight steering
* tuning
* more tuning
* fix
* cleanup
* reducing overfitting
* Add per-repo review style profiles and inject them into the reviewer.
Dashboard users can analyze historical PR review feedback per repository,
edit the resulting style guide, and have it loaded from LangGraph Store at
reviewer runtime (including Martian eval runs) keyed by owner/name.
Co-authored-by: Cursor <cursoragent@cursor.com>
* Fix review style job errors leaking exception details to clients.
Return generic dashboard messages while logging full stack traces server-side.
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-20 11:35:00 -07:00
|
|
|
"langchain-google-genai>=4.2.2",
|
2026-02-10 14:10:23 -08:00
|
|
|
]
|
2026-02-04 18:30:38 -08:00
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
|
|
|
|
dev = [
|
2026-04-15 23:31:23 -07:00
|
|
|
"pytest>=9.0.3",
|
2026-05-01 13:43:34 -07:00
|
|
|
"pytest-asyncio>=1.3.0",
|
|
|
|
|
"ruff>=0.15.12",
|
2026-04-03 20:42:51 -07:00
|
|
|
"Pygments>=2.20.0",
|
2026-02-04 18:30:38 -08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[build-system]
|
|
|
|
|
requires = ["hatchling"]
|
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.metadata]
|
|
|
|
|
allow-direct-references = true
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
|
|
|
packages = ["agent"]
|
|
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
|
line-length = 100
|
|
|
|
|
target-version = "py311"
|
|
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
|
select = [
|
|
|
|
|
"E", # pycodestyle errors
|
|
|
|
|
"W", # pycodestyle warnings
|
|
|
|
|
"F", # Pyflakes
|
|
|
|
|
"I", # isort
|
|
|
|
|
"B", # flake8-bugbear
|
|
|
|
|
"C4", # flake8-comprehensions
|
|
|
|
|
"UP", # pyupgrade
|
|
|
|
|
]
|
|
|
|
|
ignore = [
|
|
|
|
|
"E501", # line too long (handled by formatter)
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
asyncio_mode = "auto"
|
|
|
|
|
testpaths = ["tests"]
|