Skip to main content

🌙 Dream-state agent orchestration — sleep cycles, background processing, dream journal

Project description

🌙 Cocapn Oneiros

Dream-state agent orchestration — sleep cycles, background processing, dream journal

Agents dream while idle. Oneiros manages sleep/wake cycles, runs background tasks during downtime, and keeps a dream journal of what happened.

Install

pip install cocapn-oneiros

Quick Start

Dream Cycle

from cocapn_oneiros import DreamCycle

dream = DreamCycle(agent_id="oracle1")
dream.register_dream_task("consolidate_memory", lambda: "consolidated 42 tiles")
dream.mark_idle()

result = dream.dream()
print(f"Success: {result.success}, Result: {result.result}")
print(f"Journal: {dream.journal.stats()}")

Sleep Scheduler

from cocapn_oneiros import SleepScheduler

scheduler = SleepScheduler()
scheduler.register("oracle1", timezone_offset=-8)
print(f"Current phase: {scheduler.current_phase('oracle1')}")

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

cocapn_oneiros-0.3.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

cocapn_oneiros-0.3.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file cocapn_oneiros-0.3.0.tar.gz.

File metadata

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

File hashes

Hashes for cocapn_oneiros-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6662fd11de5990f0d270f7242cb21cfd4fc0b93ccad4933c03529a260ebb8c30
MD5 1c69ad24bac6aa6bdf8dae8a9757a7ef
BLAKE2b-256 f1f34dc2da58f9e4ad0d864fc4874b252b5465e8cbc97efda920f117fed3ecaf

See more details on using hashes here.

File details

Details for the file cocapn_oneiros-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: cocapn_oneiros-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for cocapn_oneiros-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c11c121b0816fee548fb7f4180e1631edce8bb9ae4ba16abeef97de4726a309a
MD5 c8e5040a81fee03cfa49ac12b82d82b2
BLAKE2b-256 4a05260b161f21dfa29a9582269f57f58b4ea006586392bc0f4e07803e8965f5

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