mainspring-coding-tools
编码智能体工具组(T10):读 / 写 / 编辑 / 搜索 / shell / 后台任务 / todo / 可选网页工具, 外加一个终端 REPL。除 core 外零额外运行时依赖。
安装
pip install mainspring-coding-tools
终端编码助手
mainspring-coder --root .
工具卡片、diff、写文件与执行命令前的 y/n 审批全在终端里;命令:/new、/resume、
/model <name>、/quit。独立入口使用内存会话与本机命令引擎;需要持久化与沙箱引擎时,
改用仓库 examples/coding_cli.py 的完整装配。
作为库使用
from pathlib import Path
from mainspring_coding_tools import SafetyPolicy, build_coding_tools
tools = build_coding_tools(SafetyPolicy(root=Path.cwd()))
14 个工具:读写编辑、列目录、glob、grep、bash、后台任务状态与终止、todo、网页搜索与抓取。 所有有副作用的工具在注册了审批 Hook 时都会走审批链。
mainspring 工作区成员,与 core 同源。MIT。
Metadata
Release files for mainspring-coding-tools 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mainspring_coding_tools-0.1.0.tar.gz | 52.8 kB | With provenance | Details for mainspring_coding_tools-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mainspring_coding_tools-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mainspring_coding_tools-0.1.0-py3-none-any.whl |
Total release size: 116.6 kB
Release files / mainspring_coding_tools-0.1.0.tar.gz
| Download URL | mainspring_coding_tools-0.1.0.tar.gz |
|---|---|
| Size | 52.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42e400c941fbbfb52147d3e39a38317740e55f0c2127b51cf74d598ddd9bcfa9
|
|
BLAKE2b-256 checksum How to use checksums |
da6d9b92a7154dbca18b64dc5c02ce17e31f88fe06bf4886b74bbf0553e2b737
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logRelease files / mainspring_coding_tools-0.1.0-py3-none-any.whl
| Download URL | mainspring_coding_tools-0.1.0-py3-none-any.whl |
|---|---|
| Size | 63.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a88ea95416b60e2eee092306c51421c194d0a1dda615910c4da557d0be4c76f
|
|
BLAKE2b-256 checksum How to use checksums |
d6b0260d7745e5ae5dcf599af3e3521ad49a71eb868f270d61bf563fa26a3449
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logSecurity for mainspring-coding-tools 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mainspring_coding_tools-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.