Skip to main content

YesCC(Yes Compiler Collection)

The compiler that never says no. 语法是可选的,编译是必然的。

给 YesCC 一句「洗衣机说,每少一只袜子,就有一只成功脱单了。请社区调解员跟它谈赔偿」,它可以把调解现场写成一个 C 程序。给它一段能编译的代码,它就直接运行;少了分号,会先试着补上。

  • Python、C、JavaScript 原生直通。原生构建成功就结束,不改源码、不调用模型。
  • C 修复依次尝试有限规则和受限模型候选,每份候选都交真实工具链验证。
  • 模型创意、固定梗和原文回显分别记录;编译或运行通过不代表实现了意图,也不保证作品有趣。
  • 支持模型推理设置、输出额度、费用与请求上限、缓存及 JSON/explain 报告。推理正文不写入报告。

安装

需要 Python ≥3.11,推荐使用独立工具环境:

pipx install yescc
# 或者:uv tool install yescc
yescc --version

C 程序需要 PATH 中的 GCC,JavaScript 需要 Node.js;Python 程序使用安装环境的解释器。Linux/Windows x86_64 免安装归档见 GitHub Releases:解压后保留整个目录,包括 _internal、licenses 和 MANIFEST.json;其用户程序仍需要外部工具链,冻结版 Python 从 PATH 选择外部 Python 3。

快速体验

解压原生归档时,将下列yescc换成Linux的./yescc或Windows的.\yescc.exe;归档自带 examples/ 目录,START-HERE.txt给出直接运行命令。

把下面的 C 程序保存为 hello.c:

#include <stdio.h>
int main(void) { puts("hello"); return 0; }
yescc run hello.c --offline
yescc hello.c --explain --offline

第一条输出 hello;第二条读取报告,正常代码应为 native_ok,没有模型请求。把 return 0; 中的分号改成全角 ; 后再运行,可以体验有限规则修复;源文件保持用户保存的内容。

同一目录下的hello.py与hello.c等同stem文件共用最近一次报告。查询--explain时若报告已属于另一文件,会明确返回100并提示重新构建,避免展示错对象;它仍可读取同一文件的历史结果。

把开头的洗衣机题保存为 UTF-8 的 idea.txt:

yescc run idea.txt --offline
yescc idea.txt --explain --offline

这里的离线运行会原样打印题目,解释报告会显示 print_input。配置模型及单价后,运行 yescc run idea.txt --budget 0.005 就能让它编一出调解现场,预算单位为 USD。想看改编幅度更大的版本,可加 --creativity wild。配置与推理参数见 使用与隐私指南 和 完整 README。

边界

  • AI 修复/生成目标仅 C;Python/JavaScript 只做原生直通。只支持单文件 UTF-8 输入,没有跨文件构建、macOS 或 MSVC 支持。
  • --strict 关闭修复和兜底;--no-fallback 禁止创意兜底。原命令使用 --play 时先移除它,再选这两项之一。
  • AI 运行使用尽力隔离:它不是阻止所有文件系统访问、联网或进程逃逸的安全边界。原生用户程序保留自身行为;--offline 只控制 YesCC 的模型请求。
  • 模型创意 run 检查有限的输出、退出状态和超时。--check-undefined 默认关闭,显式启用时用当前 GCC 检查部分运行期错误,不保证内存安全或语义正确;build 不偷偷运行作品。
  • Linux 归档在 Ubuntu 24.04 构建,不保证旧 glibc、musl/Alpine 或其他架构;Windows 归档内置 Python 3.14,要求 Windows 10+,验证范围以原生 CI 记录为准。

真实模型效果与安装证据见 评测入口。自动回归、独立 AI 测试和维护者验收分别标注,历史模型成绩绑定采样版本。

问题请附版本、平台、命令、最小脱敏输入和报告,提交到 Issues;不要上传密钥或私密源码。YesCC 使用 MIT,二进制捆绑组件分别适用其原许可证。

Metadata

Release files for yescc 0.2.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 yescc 0.2.0
File Size Uploaded Provenance Actions
yescc-0.2.0.tar.gz 27.5 MB Without provenance Details for yescc-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 27.6 MB

Release files / yescc-0.2.0.tar.gz

Download URL yescc-0.2.0.tar.gz
Size 27.5 MB
Tags Source
SHA-256 checksum
How to use checksums
6231a42c12c4b9f325c459e3743e49df8e9e5e7ba1a6777047b1617d048e8130
BLAKE2b-256 checksum
How to use checksums
f79b8fc43f92d2546df218405830c46c3b992424810e2503df72bd94b3185e24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / yescc-0.2.0-py3-none-any.whl

Download URL yescc-0.2.0-py3-none-any.whl
Size 80.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfc4209098077d7619f6c83d7f14d077ae8f996e7eab83b8c73b6f5f64550364
BLAKE2b-256 checksum
How to use checksums
67764a5f951d35e3ee36c64b3cea38b18613dc54ef55e3819c578a8c877464a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Security for yescc 0.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.2.0 This release

2 release files No 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