RPCS-1 Agent Tuner & Translation Bridge

v0.3.0
io.github.travisbergen2/rpcs1-agent-tuner Checked 3 hours ago Published 4 months ago

Find your AI agent's likely failure mode, get runtime settings, and clarify ambiguous prompts.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

recommend_agent_configuration Recommend AI agent configuration

Diagnose why a deployed AI agent may fail. Takes environmental entropy, predictability, stakes, context horizon, and commitment style, then returns receiver profile values (TI, SG, FT, UE, AR), platform parameters (temperature, top_p, strategy), regime prediction, reasoning, and warnings. Optionally pass target_model (the actual model id) to attach MEASURED per-model receiver posture (E-LIT table): evidence-graded literalness, truth-override boundary, and translation directives. Deterministic, stateless, read-only — does not store past recommendations.

ParameterTypeDescription
environmentobject
target_modelstringOptional: the actual model id this agent will run on (e.g. "claude-sonnet-4-6", "deepseek-v4-pro"). When it matches a measured per-model receiver entry (E-LIT table), measured translation directives a…
target_platformstringThe platform whose runtime parameters should be recommended.
taskobject

interpret Interpret ambiguous human input

Detect ambiguity in user messages using the RPCS-1 Signature Ambiguity Framework. Returns AR level (AR0-AR5), confidence, candidate interpretations with scores, clarifying questions, and suggested next step. Use when a user says something vague, passive-aggressive, or underspecified.

ParameterTypeDescription
text *stringThe message to interpret.
riskstringRisk category for ambiguity threshold.

fork Fork view — how could this message read?

The calibrated ambiguity surface: deterministic structural fork detectors (reference, scope, grouping, compare-vs-choose, polysemy) with character-offset spans, plus per-reading one-line clarifiers the sender can append to lock a reading in. Returns competing readings, an ask-back question, and a forked-answer scaffold. Silent on clean text by contract. Runs the deterministic mirror floor only over MCP (no model). Prefer this over interpret for span-level ambiguity detection: interpret’s entity list is a word-list engine (calibrated 2026-08-15: no discrimination on conversational text) — a…

ParameterTypeDescription
text *stringThe message to analyze for forks.
rejectedarrayReading summaries the user already rejected — never re-offered.

normalize Normalize fragmented human input

Clean up text with ellipses, fragments, and run-on thoughts into coherent prose. Use when a user types stream-of-consciousness or fragmented input.

ParameterTypeDescription
text *stringFragmented text to normalize.

rewrite Rewrite text for a target audience

Get rewrite instructions for adapting text to a specific style: technical, plain, socially_gentle, concise, detailed, or direct. Use when communication needs tone adjustment.

ParameterTypeDescription
text *stringText to rewrite.
stylestringTarget audience style.

calibrate_profile Calibrate a user’s receiver profile

Build a ReceiverProfile (TI, SG, FT, UE, AR — continuous 0-100, never a category label) from five behavioral forced-choice answers. Call with NO answers to get the five questions to ask the user; call again with their answers (a/b/c per primitive) to get the profile. Store the returned profile JSON in the user’s notes or memory and pass it to render_reply / prepare_prompt on every turn. Deterministic and stateless — nothing is stored server-side. Schema: https://rpcs1.dev/v1/receiver-profile.json

ParameterTypeDescription
answersobjectChosen option id per primitive. Omit entirely to receive the questions.

prepare_prompt Prepare a user’s message before acting on it

The inbound half of the Translation Bridge loop. Takes the user’s raw message (possibly ambiguous, fragmented, or underspecified) plus their ReceiverProfile, and returns the recovered intent, a canonical translation to act on, ambiguity level, and — profile-aware — whether to clarify or commit. Call this before acting on any ambiguous user request. Scope note: its detectors are lexical/structural (vague signals, ambiguous references) — for the commit-vs-clarify DECISION, route_intent (with your own proposed readings) is the authority; when they disagree, follow route_intent.

ParameterTypeDescription
text *stringThe user’s raw message.
profileobjectThe user’s ReceiverProfile from calibrate_profile. Shapes clarify-vs-commit behavior.
riskstringRisk category for the ambiguity threshold.

render_reply Render a reply for a specific user’s receiver profile

The outbound half of the Translation Bridge loop. Takes your draft reply plus the user’s ReceiverProfile and returns deterministic rendering instructions (structure, warmth, explicitness, revision posture, ambiguity handling — each with a why-trace). Apply the instructions to your draft before answering. Call this on every reply to a calibrated user.

ParameterTypeDescription
profile *objectThe user’s ReceiverProfile from calibrate_profile.
text *stringYour draft reply.

route_intent Route an ambiguous request: commit, present options, or clarify

Entropy routing over competing interpretations — the model proposes, the deterministic core disposes. YOU generate the candidate readings of the user’s message (3–7 short hypotheses covering the plausible interpretations, INCLUDING likely-typo readings, idiom-vs-literal readings, and domain senses) and pass them as hypotheses, ideally with your own likelihoods (0–1 per reading) AND a paraphrase per reading — the user’s message rewritten unambiguously under that interpretation, so the user can VERIFY intent by recognition before anything commits (one misread prompt skews a whole thr…

ParameterTypeDescription
text *stringThe user’s raw message.
hypothesesarrayCandidate interpretations. Omit to use a generic six-intent starter set plus a catch-all.
likelihoodsobjectOptional externally computed likelihood per hypothesis id (e.g. model-derived) — replaces the lexical scorer.
profileobjectThe user’s ReceiverProfile from calibrate_profile. Shapes commit-vs-clarify thresholds.