Explicit Formula — Second Brain

io.github.travisbergen2由 GitHub 帳號 travisbergen2 發布v0.1.0更新於 Oct 27, 2026

Your own notes, searched and cited by your AI — local-only, allowlist-gated, capped, and logged.

發布方自己的服務:BrainDog

已驗證STDIO僅桌面知識與記憶AI 與機器學習

概覽

AI 產生的概覽

本機 stdio MCP 伺服器,用來調校 AI 代理的執行參數,並提供唯讀的文字歧義解讀與溝通偏好工具。

可以做什麼
  • 依任務、環境熵、可預測性、風險、上下文範圍與承諾風格診斷 AI 代理,回傳五要素畫像、失敗風險分數、預測狀態、執行參數與下一步測試
  • 偵測文字歧義、把零散文字整理成連貫敘述,並產生特定風格的改寫指示
  • 在多種候選解讀之間進行意圖路由,決定直接執行、列出選項或要求澄清
  • 建立溝通偏好畫像、在行動前還原真正意圖,並依該畫像產生回覆
適用情境
適合希望以可重複的方法、而非憑感覺設定代理參數的情況,也適合需要找出提示詞歧義,或讓回覆符合既定溝通偏好的情境。
執行需求
以 stdio 本機程序執行,透過 npx 從 npm 套件啟動;未宣告任何驗證、環境變數或標頭。README 另提到一個託管的唯讀端點,但清單只列出本機 stdio 套件。
安裝前請注意
README 描述了含 OAuth 簽章、速率限制與主機/來源允許清單的託管版本,並提到 Web 應用中的 Stripe 與授權簽章;這些都不屬於所宣告的本機套件。文中說明該畫像流程並非心理評估或診斷。README 的產品與行銷內容與所宣告的工具範圍無關,應分開看待。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Explicit Formula — Second Brain,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

RPCS-1 SDK — AI Agent Tuner

Start with the free tuner: find your AI agent’s likely failure mode, get runtime settings to try, and validate them with a harder case.

RPCS-1 helps teams make agent settings deliberate rather than guessed. Describe the task, change rate, predictability, stakes, relevant context horizon, and commitment style; it returns a five-primitive profile, a runtime recommendation, and a next test. The suite also includes SendRight for catching ambiguous prompts before handoff and the Translation Bridge for profile-aware communication rendering.

Repository Structure

rpcs1-sdk/├── packages/core/          # TypeScript engine (@rpcs1/core): tuner + translation layer + receiver-profile intake├── packages/web/           # Next.js app serving rpcs1.dev (tuner, translator, docs, Stripe, /mcp endpoint)├── packages/mcp-server/    # Standalone STDIO MCP server (what Glama and MCP clients build)├── sdk/python/             # Python SDK (pip install rpcs1)├── skills/                 # Canonical agent skill package (HF-HATP v2.0 SKILL.md)├── docs/                   # Architecture, deployment, launch playbook└── .github/workflows/      # CI/CD

Quick Start — Python SDK

bash
pip install rpcs1
python
from rpcs1 import recommend_params
config = recommend_params(    task_description="Customer support agent",    environment_entropy="dynamic",    environment_predictability="somewhat_predictable",    stakes="high",    target_platform="anthropic",)
print(config.platform_parameters.temperature)   # e.g. 0.52print(config.predicted_regime)                  # 'stable'print(config.reasoning)                         # cites Matching Principle

Quick Start — TypeScript Core

typescript
import { recommend } from '@rpcs1/core';
const rec = recommend({  task: { task_summary: 'Customer support agent' },  environment: {    entropy: 'dynamic',    predictability: 'somewhat_predictable',    stakes: 'high',    context_relevance: 'medium',    commitment_style: 'cautious',  },  target_platform: 'anthropic',});
console.log(rec.platform_parameters.temperature);console.log(rec.predicted_regime);

Development

bash
# Install dependenciesnpm ci --include=optional
# Build and test TypeScript corenpm run build --workspace=@rpcs1/corenpm run test --workspace=@rpcs1/core
# Test Python SDKcd sdk/pythonpip install -e ".[dev]"pytest -v

Web environment variables are documented in packages/web/.env.example (Stripe, Resend, license signing, rate limits). MCP production controls are listed under Production controls below.

The web app deploys to Vercel on Node 24 (region iad1); pushes to main trigger the production deployment.

The Matching Principle

The SDK implements Pred-09-5 from IMM Paper 9:

Stable receivers in an environment with entropy H satisfy TI ~ 1/H.

High-entropy environments → short attention windows (TI ~ 10). Low-entropy environments → long attention windows (TI ~ 90).

Every parameter recommendation traces back to this principle or the basin stability geometry (oscillation/overload/freeze boundary conditions).

Web App

The site can also explain the same product facts in technical, executive, plain-language, or literal-and-precise registers. The explanation changes; pricing, deliverables, and limitations do not.

Brand — Explicit Formula (product) / RPCS-1 (mechanism)

The site fronts one consumer product: Explicit Formula — the box on the landing page. Explicit: says exactly what it means (the product's one job); formula: a repeatable method. The wordmark is an advisory-sticker homage (components/StickerLogo.tsx), deliberately distinct from the trademarked RIAA label.

The mechanism brand — RPCS-1, the receiver engine, its laws, and its scorecard — is unchanged and renders as "Powered by RPCS-1" in the footer. House rule: outcome on the wrapper, mechanism one click deep.

  • The brand is a token: packages/web/lib/brand.ts. Renaming the product is one env var (NEXT_PUBLIC_BRAND_NAME) or one line — no other code changes.
  • Every station that used to compete for the nav (SendRight, Bridge, Translator, Calibrate, Tuner, R&D, …) stays live at its original route and is indexed at /labs (packages/web/lib/labs.ts).
  • The consumer domain follows the deployment: set NEXT_PUBLIC_APP_URL when it goes live. rpcs1.dev remains the mechanism home either way.

SendRight (Interpretation Mirror + Hand-off)

SendRight is the type-and-send front door: type a prompt the way you'd say it out loud, see the readings it actually supports, lock in the one you meant, and hand it to your own model app with one click.

Modules (packages/core):

  • mirror(text) — deterministic fork detectors (no ML, no API calls). Returns { clean, readings[], ambiguousSpans[] }. Detectors: compare-or-choose ("X or Y?" questions without an explicit verb), grouping forks ("A and B or C"), scope forks ("only ... and ..."), dangling pronouns, bare objects ("fix it"), external references ("the above"). Contract: silent on clean prompts — zero-fork controls in tests/mirror.test.ts enforce it. Pure function, callable from any front end (web box, NL2Build, CLI).
  • applyReading(text, clarifier) — appends the chosen reading's clarifier so the locked interpretation travels with the prompt.
  • buildHandoff(vendor, prompt) / listVendors() — per-vendor capability table for opening the user's own model app with the prompt pre-filled. Prefill URL parameters are undocumented vendor behavior and churn without notice; each entry carries a verified date and must be re-checked at release. Verified 2026-07-25: ChatGPT, Claude, Perplexity, Grok support URL prefill; Gemini and Copilot are clipboard-fallback only. Logged-out users may lose the prefill at login. All vendors degrade gracefully to clipboard.

Web: /send (packages/web/app/send) renders the box via components/SendBox.tsx — mirror runs client-side (debounced, zero network); the hand-off happens in the user's own app. SendRight never makes the model call and never sees the answer.

Feasibility boundary (honest scope): reasoning-stream digests and mid-generation stop/realign are only possible where rpcs1 itself owns the API call (the fan-out / power-user mode, not yet shipped). They are structurally impossible in vendor chat UIs and via the MCP surface — SendRight's hand-off path intentionally trades those away for zero keys, zero cost, and zero data custody.

MCP Server

RPCS-1 is also available as a public, anonymous, read-only MCP server:

text
https://rpcs1.dev/mcp

It exposes eight read-only tools across four families:

  • recommend_agent_configuration — diagnose an AI agent against environmental entropy, predictability, stakes, context horizon, and commitment style; receive runtime settings to try and a next test.
  • interpret, normalize, and rewrite — detect ambiguity, turn fragmented text into coherent prose, and return style-specific rewrite instructions.
  • route_intent — entropy routing over competing interpretations of a message: the calling model proposes candidate readings (paraphrases and priors); the deterministic router computes the posterior and decides commit, present options, or clarify. The commit-vs-clarify authority in the pipeline.
  • calibrate_profile, prepare_prompt, and render_reply — create a continuous communication-preference profile, recover intended meaning before an action, and render a reply for that profile.

Translation Layer

"Say what you mean. Hear what they meant."

The Translation Bridge treats the profile as a transportable parameter, not a category label. The five-question Calibrate flow measures communication preferences for rendering only; it is not a psychological assessment or diagnosis. prepare_prompt / render_reply use that profile on the inbound and outbound sides of an interaction. The canonical agent-facing specification lives at skills/rpcs1-translation-layer/SKILL.md.

Tuner examples

The first useful call is a support copilot under live pressure:

text
Use recommend_agent_configuration to diagnose my support copilot.
Task: refund and billing dispute triageEnvironment: dynamic, somewhat_predictable, high stakesContext relevance: mediumCommitment style: cautiousTarget platform: anthropic

The output should lead with the five-primitive profile, failure-risk score, predicted regime, runtime posture, and next test to run.

The second useful call is a coding agent in a changing repository:

text
Use recommend_agent_configuration to diagnose my coding agent.
Task: inspect a changing repository, edit files, run tests, and open a pull requestEnvironment: moderate, somewhat_predictable, medium stakesContext relevance: longCommitment style: balancedTarget platform: openai

The output should still lead with the five-primitive profile, failure-risk score, predicted regime, runtime posture, and next test to run.

Connection details and client compatibility notes are available at https://rpcs1.dev/docs/mcp. Practical coding, support, and research examples are available at https://rpcs1.dev/docs/examples.

Hyperagent uses the fixed public OAuth client hyperagent-rpcs1 with PKCE and the registered callback https://hyperagent.com/api/mcp-servers/callback. No client secret is required.

The MCP surface exposes the deterministic agent-tuning workflow alongside read-only translation and per-user rendering tools. New tools should be added only after their scoring or behavior contracts are implemented and tested in the core package.

Discovery metadata:

Production controls:

  • MCP_HOURLY_LIMIT controls per-instance MCP throttling (default: 120 requests per IP/hour).
  • MCP_MAX_BODY_BYTES limits request bodies (default: 65536 bytes).
  • MCP_ALLOWED_HOSTS is a comma-separated production host allowlist.
  • MCP_ALLOWED_ORIGINS is an optional comma-separated browser-origin allowlist. Leave it blank to reject cross-origin browser requests.
  • MCP_OAUTH_JWT_SECRET signs short-lived OAuth authorization codes and access tokens.
  • /api/health reports deployment and MCP readiness metadata.

For globally consistent abuse protection across Vercel instances, configure a Vercel Firewall rate-limit rule for /mcp. The in-process limiter is defense in depth, not a distributed quota.

Glama Docker checks should build and launch the local STDIO server, not connect to the hosted https://rpcs1.dev/mcp endpoint. Use this build spec:

json
{  "buildSteps": [    "npm ci --include=optional",    "npm run build --workspace=@rpcs1/core",    "npm run build --workspace=@rpcs1/mcp-server"  ],  "cmdArguments": [    "mcp-proxy",    "--",    "node",    "packages/mcp-server/dist/index.js"  ],  "environmentVariablesJsonSchema": {    "type": "object",    "properties": {},    "required": []  },  "placeholderArguments": {}}

License

MIT

來源:README.md,提交 4af6781

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Brain 整合