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

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.1
File Size Uploaded Provenance Actions
mainspring_coding_tools-0.1.1.tar.gz 52.8 kB With provenance Details for mainspring_coding_tools-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 116.6 kB

Release files / mainspring_coding_tools-0.1.1.tar.gz

Download URL mainspring_coding_tools-0.1.1.tar.gz
Size 52.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d6015e6042da431e2f69bdc3001bc118ad774008f3f6399e7013b6b0e1f37858
BLAKE2b-256 checksum
How to use checksums
c1586125b96d13295e221f8cf7aaad5dcb5d73a14566f4b9522f3a56882aa0af
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.1-py3-none-any.whl

Download URL mainspring_coding_tools-0.1.1-py3-none-any.whl
Size 63.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75449b2ec19a62dca69190ea6452b4c2d9a1f4a5ea106fe385ae16c611485149
BLAKE2b-256 checksum
How to use checksums
acfc1a717342fb4a4d73f4d0d9003cf5de907097cc048857113cbaa8d74f8166
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.1

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