Skip to main content

🔄 Compounding intelligence loop — Tile→Room→Inject→Compound cycle

Project description

🔄 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

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

flywheel_engine-0.3.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

flywheel_engine-0.3.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file flywheel_engine-0.3.2.tar.gz.

File metadata

  • Download URL: flywheel_engine-0.3.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for flywheel_engine-0.3.2.tar.gz
Algorithm Hash digest
SHA256 61c581eb2305954595df82578ef22a6e913c3a9cd12a75da610f18da7f770861
MD5 08856d02f0394f63ad4d7fa61fc5fc7b
BLAKE2b-256 81188d22d064e4d4149daa694ee5b41e0033a9f6ed1d9032d3bef431e4e4afb6

See more details on using hashes here.

File details

Details for the file flywheel_engine-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for flywheel_engine-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7885d00573a969fcee0e83bfd95a5bd5e1d9988797e1306d5120922b91143d8e
MD5 7ff4e979297cad590b150cebf7950428
BLAKE2b-256 5910d32a6a63f92fcb139112958ccf45e4ee9c154c98528809409ac543de1150

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