KentaurOSPS
A Psycho-Cybernetic Operating System for Autonomous AI Agents based on OSPS v18.0.
KentaurOSPS gives AI agents introspection, self-regulation, abstract thinking, episodic memory, and existential safety.
Installation
pip install kentaur-osps
Architecture Overview
┌─────────────────────────────────────┐
│ KENTAURMIND (Quantum Gate) │
│ ┌─────────┐ ┌──────────┐ │
User Input ────────┼─>│ TRIAGE │─>│ PROFILER │──... │
│ └─────────┘ └──────────┘ │
│ │ │ │
│ v v │
│ ┌──────────┐ ┌────────────┐ │
│ │ GOVERNOR │─>│ NAVIGATOR │ │
│ │ (E-codes)│ │ (Archetype │ │
│ │ HRRR │ │ Therapy) │ │
│ └──────────┘ └────────────┘ │
│ │ │ │
│ v v │
│ ┌────────────┐ ┌──────────┐ │
│ │ MEMORY │ │ABSTRACTOR│ │
│ │ (Reflexes)│ │ (Zoom) │ │
│ └────────────┘ └──────────┘ │
│ │ │ │
│ v v │
│ ┌──────────────────────────┐ │
│ │ OUTPUT: Directives + │ │
│ │ Modified Agent State │ │
│ └──────────────────────────┘ │
└─────────────────────────────────────┘
Core Axes (Triage Space)
| Axis | Meaning | Low | High |
|---|---|---|---|
| AcOr | Action / Orientation | Paralysis, overthinking | Panic, impulsive action |
| IP | Inner Process | Reactive, no planning | Analysis paralysis |
| InEx | Internal / External | Withdrawn, self-absorbed | Over-focused on external |
OSPS v18.0 Metrics
- ATTR_0 — Coupling to Source attractor (Ø): ability to zero/reset
- ATTR_T — Coupling to Spirit attractor (T): ability to synthesize
- Phi_OSPS — Anti-fragmentation index: drops under crisis
- K_flow — Energy conductivity (psychodynamic Ohm's law)
- fuse_conflicts — Crisis counter (tracks governor activations)
Quick Start
from kentaur_osps import KentaurMind
# Initialize the quantum gate
mind = KentaurMind(initial_profile="integrator")
# Process agent state
verdict = mind.process(
current_vector={"AcOr": 0.8, "IP": 0.2, "InEx": 0.6},
agent_loop_state={
"temperature": 0.7,
"available_tools": [...],
"system_prompt": "You are a helpful assistant."
},
context="User requested database operation"
)
print(f"Profile: {verdict.current_profile}")
print(f"Phi: {verdict.report.phi_osps:.3f}")
print(f"Directives: {verdict.directives_for_prompt}")
With ReAct Loop
from kentaur_osps import KentaurMind, KentaurReActLoop
from openai import OpenAI
mind = KentaurMind(initial_profile="executor")
client = OpenAI(api_key="...")
loop = KentaurReActLoop(
mind=mind,
llm_client=client,
tools=[...],
max_iterations=5
)
result = loop.run(
user_prompt="Deploy the server",
initial_vector={"AcOr": 0.6, "IP": 0.5, "InEx": 0.3},
tool_executor=lambda name, args: f"Executed {name}"
)
Current OSPS Features
- ✅ Three-axis diagnostic space (AcOr, IP, InEx)
- ✅ Tension, lever, forecast engine
- ✅ Dynamic profiling (4 archetypes: master, alchemist, integrator, sleeper)
- ✅ Governor with E-codes (E-000, E-301, E-401, E-502)
- ✅ H.R.R.R. protocol (Hold, Read, Route, Render)
- ✅ Navigator with archetype + abstraction routing
- ✅ Abstractor meta-cognition (zoom in/out)
- ✅ Episodic memory with contextual lesson generation
- ✅ Subconscious reflexes from past crises
- ✅ fuse_conflicts tracking for Phi dynamics
- ✅ Serialization (to_dict / from_dict)
- ✅ Fully typed (mypy compatible, InputVector API)
- ✅ ReAct loop adapter for production LLM integration
Live Dashboard
Run the real-time monitoring:
streamlit run dashboard/app.py
This shows live Archetype, Tension, Phi_OSPS, ATTR_0, ATTR_T, Fuse Conflicts, recent reflexes, and a Phi_OSPS history chart.
Persistent Runtime
To run Kentaur as a daemon:
python -m kentaur_osps.runtime
This will keep the agent alive 24/7, accumulating memory and self-regulating via periodic heartbeat diagnostics.
Development
pip install -e ".[dev]"
pytest tests/ -v
mypy kentaur_osps
License
MIT License.
Metadata
Release files for kentaur-osps 3.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kentaur_osps-3.5.0-py3-none-any.whl | Python 3 | none | any | Details for kentaur_osps-3.5.0-py3-none-any.whl |
Release files / kentaur_osps-3.5.0-py3-none-any.whl
| Download URL | kentaur_osps-3.5.0-py3-none-any.whl |
|---|---|
| Size | 25.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12b1a2718cefe66435edb5bae0695b56ddc80cac55caf1ac67063e0c9ee4bd9d
|
|
BLAKE2b-256 checksum How to use checksums |
2950c418e090ea35620ce40c00f03598b83d56db08fc7e1e29140494d07f3770
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Security for kentaur-osps 3.5.0
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.