Skip to main content

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mainspring-coding-tools 0.1.2
File Size Uploaded Provenance Actions
mainspring_coding_tools-0.1.2.tar.gz 52.8 kB With provenance Details for mainspring_coding_tools-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mainspring-coding-tools 0.1.2
File Interpreter ABI Platform Actions
mainspring_coding_tools-0.1.2-py3-none-any.whl Python 3 none any Details for mainspring_coding_tools-0.1.2-py3-none-any.whl

Total release size: 116.6 kB

Release files / mainspring_coding_tools-0.1.2.tar.gz

Download URL mainspring_coding_tools-0.1.2.tar.gz
Size 52.8 kB
Tags Source
SHA-256 checksum
How to use checksums
930236c656b29faaa8209ca1418cd49cd882f5243fe8a3b24888f6cbf8e426c3
BLAKE2b-256 checksum
How to use checksums
33d0aab7f39450785591dab5d1bb3d8472d6a63440fb10cc43b0fc1da76ba23e
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 log

Release files / mainspring_coding_tools-0.1.2-py3-none-any.whl

Download URL mainspring_coding_tools-0.1.2-py3-none-any.whl
Size 63.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9cee2040a02d3938a520f1fbfd0956d2c02f49cefc2a618263296e18edc8191e
BLAKE2b-256 checksum
How to use checksums
ff1ae4cf5609d44dfa09442584afdbff236a3e047d22b7715c0b8cdd12d1070c
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 log

Security for mainspring-coding-tools 0.1.2

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.

Select from 2 files

Attestation for mainspring_coding_tools-0.1.2.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page