mini-swe-agent
A radically minimal (~100-line) open-source agent from the SWE-agent team that solves G…
A radically minimal (~100-line) open-source agent from the SWE-agent team that solves GitHub issues from the command line. Scores >74% on SWE-bench Verified despite ~100 lines; high-credibility academic lineage (SWE-agent / Princeton) and strong GitHub traction as a reference agent.
Beta
Status
SDK / Library
Pattern
Python
Runtime
Not yet published
SDK version
Readiness
What “Beta” means for mini-swe-agent
The integration path is built and tested. Real customers can attach now, but expect minor breaking changes until the 1.0 contract freeze.
How it attaches
SDK / Library.
Install the trustvice-actor-mini-swe-agent package and call witness.attach() once during agent initialisation.
Install the Trustvice adapter package from npm, PyPI, or cargo and call witness.attach(agent) in your application.
pip install trustvice-actor-mini-swe-agent
- 1
Install the adapter
Add trustvice-actor-mini-swe-agent to your project from PyPI.
- 2
Issue a workspace API key
Generate a twk_-prefixed key in the dashboard under Settings → API Keys, scoped to the workspace and environment this agent's data should land in.
- 3
Attach the witness
Call witness.attach(agent) once when you initialise your mini-swe-agent agent. The adapter registers the framework callbacks, handles retries, and performs the workspace handshake.
- 4
Verify
Trigger one agent run. The dashboard's Witness page shows the canonical record within ~1 second of the agent emitting it.
pip install trustvice-actor-mini-swe-agent
Coverage
4 event types captured.
agent.invocationEvery top-level agent run — the input, the resolved output, timing, and token usage.
tool.callEach tool / function the agent invokes, with arguments and the returned result.
memory.writeWrites to the agent's persistent memory store, so state changes are auditable.
sub_agent.spawnSub-agents the orchestrator spawns, captured with their parent lineage.
The full pattern guide
SDK / Library — end to end.
Every framework on this pattern shares the same platform-side spine, endpoints, and gotchas. The pattern guide covers them in full.
Read the SDK / Library guideNeed help landing mini-swe-agent?
Talk to the integration team.
We help you land the integration end to end — including the parts that live in your environment.
Request integration help声明规则,让每次运行都接受检查。
智能体、证据、治理、商务和披露都在 Trustvice 360 中。免费注册,在一个仪表板中打开所有套件。