Skip to main content

MossCode

终端里的 coding agent:读写文件、运行命令、搜索代码,按权限档位请你确认后执行。支持 Anthropic Messages、OpenAI Responses 和 Chat Completions 三种协议,可以接入 MCP 工具、Skill、Hook、子 Agent 和 Agent 团队。

安装

需要 Python 3.12 或更高版本。推荐用 uv 或 pipx 安装成独立的命令:

uv tool install mosscode

或

pipx install mosscode

升级用 uv tool upgrade mosscode(或 pipx upgrade mosscode)。安装后得到 moss 和 mosscode 两个相同的命令。

第一次运行

moss

找不到配置时,moss 在终端里逐项询问协议、服务地址、模型和凭据,写入 ~/.mosscode/config.yaml 后进入界面。凭据推荐放在环境变量中,配置里只写变量名。moss doctor 检查安装、配置和依赖工具,不发送请求。

moss "解释这个项目的入口"          # 启动后立即发送
moss -c                            # 恢复本项目最近的会话
moss -p "列出 src 下的模块"        # 无界面模式,运行一个任务后退出

功能

  • 本地工具:读、写、编辑、命令、glob、grep;相邻的只读调用并发执行。
  • 四个权限档位与分层规则,危险命令分级确认,只读的计划模式。
  • MCP 外部工具、Skill、生命周期 Hook。
  • 子 Agent、后台任务、git 工作树隔离和 Agent 团队。
  • 上下文自动压缩、会话存档与恢复、记忆笔记、项目指令 AGENTS.md。

支持 Windows、Linux 和 macOS。搜索优先使用 PATH 中的 ripgrep,没有时退回内置实现。

文档

MIT 许可证。

Metadata

Release files for mosscode 0.1.0

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

Source distribution (sdist)

Source distribution for mosscode 0.1.0
File Size Uploaded Provenance Actions
mosscode-0.1.0.tar.gz 471.7 kB With provenance Details for mosscode-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mosscode 0.1.0
File Interpreter ABI Platform Actions
mosscode-0.1.0-py3-none-any.whl Python 3 none any Details for mosscode-0.1.0-py3-none-any.whl

Total release size: 796.3 kB

Release files / mosscode-0.1.0.tar.gz

Download URL mosscode-0.1.0.tar.gz
Size 471.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c8cadb6061af2d640d8bec4d93a1ab1c4ab6345cf4c002025a8166dadc3b84b0
BLAKE2b-256 checksum
How to use checksums
5f4416c825ed22b77e490fed9996656a47185d9d58505db07e147b08dbf5c736
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 Nov 3, 2026.

Transparency log

Release files / mosscode-0.1.0-py3-none-any.whl

Download URL mosscode-0.1.0-py3-none-any.whl
Size 324.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ffc81eba2ca3a6445fdef98e673ccc590464aad3ba3d35ef75a7e3860c1e0a7
BLAKE2b-256 checksum
How to use checksums
ba5a1c6f7e6f6119978e050e2d2f8692dee6c1be9723b40035112f6bab6e9620
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 Nov 3, 2026.

Transparency log

Security for mosscode 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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mosscode-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 Nov 3, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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