Skip to main content

Self-testing refactor generator — LLM agent pipeline that writes its own tests then optimises code

Project description

strg

LLM agent pipeline that writes its own tests, then optimises code against them.

Status: 0.0.1 — name-reservation placeholder. The real implementation lives in the llmios research repository today; the restructured src/strg/ package ships in 0.1.0.

What it will do (target: 0.1.0)

Four-phase pipeline driven by independent LLM agents that communicate through on-disk artefacts:

  1. Profiling — rank the project's source files by runtime sensitivity.
  2. Test generation — for each top-ranked target, an agent writes a pytest suite. Three sub-phases:
    • 2.1 Coverage: comprehensive baseline tests.
    • 2.2 Mutation: additional tests targeting surviving mutants from a fixed Cosmic Ray catalogue (Wong-Mathur selective operator set; 74 operators).
    • 2.4 Scaled: 1000×-scaled-input variants for benchmark sensitivity.
  3. Combined-suite measurement — line/branch coverage, cyclomatic complexity, AST counts on the union of generated test files.
  4. Improvement — a separate agent refactors the source for runtime while the test suite gates correctness.

Why "strg"

German keyboards label the Ctrl key "Strg" (Steuerung = control). The package controls / orchestrates LLM agents around your code. Three LLM-orchestration verbs fit the name as a backronym: Self-Testing Refactor Generator.

License

MIT — see LICENSE.

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

strg-0.0.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

strg-0.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file strg-0.0.1.tar.gz.

File metadata

  • Download URL: strg-0.0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for strg-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9ae8f598fbe704ed9997a17662a8d6d83523d838855b2422e18b9e5694332557
MD5 30aa59f19a6484e44efd6bc4e5a8c178
BLAKE2b-256 fd7bdef9f9faa3118d35b1e4f566746708f6f2b99f9f1f21cc029f424969c485

See more details on using hashes here.

File details

Details for the file strg-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: strg-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for strg-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef561c92be425f8ca80f8ba059f8ea66b718e56522ca63e141433e0e5df2bd31
MD5 4c168be59968ba04db2918834d974ffb
BLAKE2b-256 eebada5d0252a04e7a5f01bf2c9da6ec1f89f0e7808fbc8fb220d3272c32f32d

See more details on using hashes here.

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