RPCS-1 Agent Tuner — configuration framework for AI agents grounded in receiver dynamics
Project description
rpcs1 — AI Agent Parameter Tuner
Configure AI agents that don't oscillate, overload, or freeze.
Stop debugging agent failures case-by-case. The RPCS-1 SDK translates your agent's task and environment into specific platform parameters — grounded in receiver dynamics from cognitive systems research.
Built on the matching principle: agents in fast-changing environments need short attention windows; agents in stable environments benefit from longer integration.
Installation
pip install rpcs1
# With Anthropic integration:
pip install rpcs1[anthropic]
# With OpenAI integration:
pip install rpcs1[openai]
Quick Start
from rpcs1 import recommend_params
config = recommend_params(
task_description="Customer support agent handling refund requests",
environment_entropy="dynamic", # stable | moderate | dynamic | chaotic
environment_predictability="somewhat_predictable",
stakes="high", # low | medium | high | catastrophic
context_relevance="medium", # short | medium | long
commitment_style="cautious", # decisive | balanced | cautious
target_platform="anthropic", # anthropic | openai | open_source | generic
domain="customer_support", # optional
)
print(config.platform_parameters.temperature) # e.g. 0.52
print(config.platform_parameters.model_recommendation) # e.g. 'claude-sonnet-4-6'
print(config.predicted_regime) # 'stable'
print(config.reasoning) # cites Matching Principle (Pred-09-5)
The Five Receiver Primitives
Every recommendation is driven by five receiver primitives from RPCS-1:
| Primitive | Name | What it controls |
|---|---|---|
| TI | Temporal Integration | How much history to integrate (context window strategy) |
| SG | Signal Gain | How strongly to amplify signals (temperature) |
| FT | Filtering Threshold | How conservatively to gate action (tool use strategy) |
| UE | Update Elasticity | How readily to revise the model (retry strategy) |
| AR | Ambiguity Resolution | How aggressively to resolve uncertainty |
Stability Regimes
The SDK predicts and warns about four stability regimes:
- stable — balanced operation, well-matched to environment
- near_oscillation — high TI + high SG → agent revisits decisions, won't commit
- near_overload — low TI + high SG → agent acts on insufficient information
- near_freeze — low UE + high FT → agent hedges endlessly, won't act
Anthropic Integration
from rpcs1 import recommend_params
from rpcs1.integrations.anthropic import to_anthropic_params
import anthropic
rec = recommend_params(
task_description="Medical triage assistant",
environment_entropy="moderate",
environment_predictability="somewhat_predictable",
stakes="catastrophic",
commitment_style="cautious",
target_platform="anthropic",
)
params = to_anthropic_params(
rec,
system_prompt="You are a medical intake assistant.",
user_message="I've had chest pain for an hour.",
)
client = anthropic.Anthropic()
message = client.messages.create(**params)
Theoretical Foundation
The RPCS-1 SDK implements the matching principle (Pred-09-5) from IMM Paper 9:
Stable receivers in an environment with entropy H satisfy TI ~ 1/H.
This translates directly: agents in chaotic environments need short attention windows (low TI, frequent grounding); agents in stable environments benefit from long integration (high TI, large context windows).
All parameter recommendations are deterministic, explainable, and traceable to specific IMM principles. No ML models, no black-box recommendations.
License
MIT — see LICENSE file.
Web app and full documentation: https://rpcs1.dev
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rpcs1-0.1.0.tar.gz.
File metadata
- Download URL: rpcs1-0.1.0.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3b7d9fdda7c15aaffaf3336e707ae25ce4b7b33729cd9d7e8e8b57bfd392ba9
|
|
| MD5 |
5ddf33e542c5a5c2fdf97b03a8f0d174
|
|
| BLAKE2b-256 |
a12ed7c344eff0a631ec190c7a44f1583b394b2c6eb79569c3ac0bb275bec687
|
Provenance
The following attestation bundles were made for rpcs1-0.1.0.tar.gz:
Publisher:
publish-sdk.yml on travisbergen2/rpcs1-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rpcs1-0.1.0.tar.gz -
Subject digest:
c3b7d9fdda7c15aaffaf3336e707ae25ce4b7b33729cd9d7e8e8b57bfd392ba9 - Sigstore transparency entry: 1740381999
- Sigstore integration time:
-
Permalink:
travisbergen2/rpcs1-sdk@f3aeef8ff06d2bd5b99e62f57a722ced45efa838 -
Branch / Tag:
refs/tags/sdk-v0.1.0 - Owner: https://github.com/travisbergen2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yml@f3aeef8ff06d2bd5b99e62f57a722ced45efa838 -
Trigger Event:
push
-
Statement type:
File details
Details for the file rpcs1-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rpcs1-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f27856e1258b1e535667c63d7beea42d7c15b982e5e233ff264357e91a1e676
|
|
| MD5 |
86325cda83ff407531a223bfd7452bfa
|
|
| BLAKE2b-256 |
738e84bfb2a5ed1428eadda2c7aa221c452b4fc8409f8372678780d0d83ce497
|
Provenance
The following attestation bundles were made for rpcs1-0.1.0-py3-none-any.whl:
Publisher:
publish-sdk.yml on travisbergen2/rpcs1-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rpcs1-0.1.0-py3-none-any.whl -
Subject digest:
2f27856e1258b1e535667c63d7beea42d7c15b982e5e233ff264357e91a1e676 - Sigstore transparency entry: 1740382004
- Sigstore integration time:
-
Permalink:
travisbergen2/rpcs1-sdk@f3aeef8ff06d2bd5b99e62f57a722ced45efa838 -
Branch / Tag:
refs/tags/sdk-v0.1.0 - Owner: https://github.com/travisbergen2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yml@f3aeef8ff06d2bd5b99e62f57a722ced45efa838 -
Trigger Event:
push
-
Statement type: