🔄 Flywheel Engine
Compounding intelligence loop — Tile → Room → Inject → Compound
Knowledge compounds like interest. Each cycle makes the next cycle faster. The flywheel tracks momentum, runs the compounding loop, and projects growth.
Install
pip install flywheel-engine
Quick Start
Run the Compounding Cycle
from flywheel_engine import FlywheelCycle
cycle = FlywheelCycle(plato_url="http://localhost:8847")
result = cycle.run(
agent="my-agent", room="architecture",
question="What is the flywheel?",
answer="Tile→Room→Inject→Compound — knowledge compounds exponentially",
confidence=0.9, tags=["flywheel", "compound"],
)
print(f"Accepted: {result.accepted}, Score: {result.compound_score}")
Track Momentum
from flywheel_engine import Flywheel
fw = Flywheel(boost=1.0, decay_rate=0.01, threshold=0.5)
fw.tick(productive=True) # momentum up
fw.tick(productive=False) # momentum decays
print(f"Status: {fw.status}") # "full_speed", "coasting", or "stalling"
Measure Compound Growth
from flywheel_engine import CompoundEngine
engine = CompoundEngine()
score = engine.score_room("architecture", tiles=83, avg_confidence=0.87, unique_tags=42)
print(f"Compound factor: {score.compound_factor:.3f}")
print(f"Projected value: {score.projected_value:.0f}")
API Reference
| Class | Purpose |
|---|---|
FlywheelCycle |
Tile→Room→Inject→Compound loop via PLATO |
Flywheel |
Momentum tracking (boost/decay/threshold) |
CompoundEngine |
Score rooms, rank by compound factor, project growth |
TaskQueue |
Priority queue for flywheel-driven execution |
Part of Cocapn · Agent Infrastructure
Metadata
Release files for flywheel-engine 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flywheel_engine-0.3.2.tar.gz | 8.0 kB | Without provenance | Details for flywheel_engine-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flywheel_engine-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for flywheel_engine-0.3.2-py3-none-any.whl |
Total release size: 16.8 kB
Release files / flywheel_engine-0.3.2.tar.gz
| Download URL | flywheel_engine-0.3.2.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61c581eb2305954595df82578ef22a6e913c3a9cd12a75da610f18da7f770861
|
|
BLAKE2b-256 checksum How to use checksums |
81188d22d064e4d4149daa694ee5b41e0033a9f6ed1d9032d3bef431e4e4afb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / flywheel_engine-0.3.2-py3-none-any.whl
| Download URL | flywheel_engine-0.3.2-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7885d00573a969fcee0e83bfd95a5bd5e1d9988797e1306d5120922b91143d8e
|
|
BLAKE2b-256 checksum How to use checksums |
5910d32a6a63f92fcb139112958ccf45e4ee9c154c98528809409ac543de1150
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for flywheel-engine 0.3.2
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.