Skip to main content

LangGraph-based agentic loop engine for IDE/CLI environments — enforces think→execute→critique→refine on every coding action

Project description


name: global-loop-engine description: 全局 Loop Engineering 引擎,强制 Agent 执行时使用基于 LangGraph 的反思和验证循环机制。

全局 Loop Engineering (Global Loop Engine)

此 Skill 强制 Agent 在执行任何核心开发或复杂任务时,必须通过内部循环和严格校验后才可提交结果,遵循“热冷分离”原则并执行硬核校验。

核心节点机制

  1. 复杂性评分 (ComplexityScorerNode):评估当前任务的代码逻辑复杂度和受影响文件范围。
  2. 成本估算 (CostEstimatorNode):根据复杂度和循环执行预估执行成本(Token / 时间)。
  3. 严重验证器 (CriticNode)
    • 硬核校验:基于子进程 (subprocess) 调用真实测试框架(如 pytest)、静态分析(如 pylint / grep)。
    • 热冷分离:严格保存并分离运行时结果(如 Exit Code)与代码状态快照(如 Git Diff),以供客观评估判断是否能够通过验收。

执行准则

当此 Skill 生效时,Agent 不得直接输出"我完成了",必须首先运行配套的引擎:

# 方式一(推荐):通过 CLI 入口
loop-engine --task "<当前任务描述>"

# 方式二:直接调用脚本
python scripts/loop_engine.py --task "<当前任务描述>"

引擎若给出错误(非 0 exit code)或处于尚未满足验收退出条件时,必须根据反馈继续修复代码,直到验证通过(退出节点)才可进行汇报。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

global_loop_engine-2.0.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

global_loop_engine-2.0.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file global_loop_engine-2.0.0.tar.gz.

File metadata

  • Download URL: global_loop_engine-2.0.0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for global_loop_engine-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d2d9df4b43155ebccc477e02d88894f8386cb194d0cc622f31e2ae4de94ef66e
MD5 16e0d8e4c408fb59bc647dea163b73bb
BLAKE2b-256 f8edce3933bc53dfcbdeb680060121b449c6193f73e3e4f5ab65f0063978ecb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for global_loop_engine-2.0.0.tar.gz:

Publisher: publish.yml on WhitWei/global-loop-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file global_loop_engine-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for global_loop_engine-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e78c7b534363c16ea08a5e9c6ad47cfbc736873aeacdf6c649b7ee87f2055a38
MD5 756b4e67fe076a7e92cbb486f03c9ec3
BLAKE2b-256 6e4d04c54ed1b686bd27b9c3b780663076fcb37552f9d2bc7c459bba48de0ba0

See more details on using hashes here.

Provenance

The following attestation bundles were made for global_loop_engine-2.0.0-py3-none-any.whl:

Publisher: publish.yml on WhitWei/global-loop-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page