header-langage
简体中文
繁體中文
English
Tiếng Việt
한국어
日本語
ภาษาไทย
Türkçe
Scan to Download the APP
Partnered With:

MathCode 0.2.0 Released, Introducing Prefix Caching for Integer API, Decreasing Costs by 90%

According to MotionAI Beat monitoring, the Math-AI team has released the MathCode 0.2.0 AI agent for mathematical formalization and theorem proving. Through prefix cache request shaping and policy controls, the API costs have been reduced by up to 90%. This new version targets the high costs of large models in long-form proofs and multi-turn interactions, optimizing prompt structure stability to increase Prompt cache hit rate.

In the theorem proving scenario, the model needs to frequently access a vast codebase and axiom library. MathCode 0.2.0 introduces a Prefix-cache request-shape diagnostics and policy controls mechanism. The system shields the prompt word's header attribution to ensure structural stability, adds multi-breakpoint cache `MATHCODE_CACHE_MULTI_BREAKPOINT`, explicit minimum prefix gateway, and idle-aware TTL policy. By maximizing the Provider's native cache hit rate through underlying request shaping alignment, the long session bill is reduced to ten percent.

The new version also strengthens task management and thinking depth control. To prevent long-running overspending, the system supports setting a Token budget upper limit through MATHCODE_GOAL_MAX_TOKEN_BUDGET and limits the nested forward slash command to prevent infinite loops. In addition, proof sessions support dynamic adjustment of thinking depth through --effort or /effort, offering levels such as `low`, `medium`, `high`, `max, and allowing for a fallback to default configuration at any time.

In terms of compilation acceleration and deployment, the new version supports the Kimina Lean Server compiler developed by the external Project Numina to run as a subprocess resident process, routing compilation check requests to the /verify interface. At the same time, the installation script setup.sh has been refactored, with added commands such as --status and --clean, supporting release verification and automatic validation and reuse of the Lean/Lake environment system, reducing the deployment threshold.

举报 Correction/Report
Correction/Report
Submit
Add Library
Visible to myself only
Public
Save
Choose Library
Add Library
Cancel
Finish