Skip to content
Agentmart
Submit a tool

use-rabi-codex-context

Bind, inspect, refresh, switch, or remove Rabi PC-managed persona context for one Codex session and understand its entry, reasoning, and message-delivery…

Skill by vb2250158

IndexedMIT★ 492
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/vb2250158-use-rabi-codex-context-a36499

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Bind, inspect, refresh, switch, or remove Rabi PC-managed persona context for one Codex session and understand its entry, reasoning, and message-delivery triggers. Use when a user asks the current Codex conversation to use a named Rabi persona, asks about the Rabi Codex hook, runs Rabi in context-only mode for Codex, proactively binds an exact Codex session from Rabi PC, or troubleshoots Manager-owned persona, plan, memory, recall, viewedAt, consolidation, role-skill injection, PreToolUse/PostToolUse refresh, or per-turn deduplication.

Use cases: agent-building, agent-memory

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/use-rabi-codex-context

What's inside

Skill name
use-rabi-codex-context
Description
Bind, inspect, refresh, switch, or remove Rabi PC-managed persona context for one Codex session and understand its entry, reasoning, and message-delivery triggers. Use when a user asks the current Codex conversation to use a named Rabi persona, asks about the Rabi Codex hook, runs Rabi in context-only mode for Codex, proactively binds an exact Codex session from Rabi PC, or troubleshoots Manager-owned persona, plan, memory, recall, viewedAt, consolidation, role-skill injection, PreToolUse/PostToolUse refresh, or per-turn deduplication.
License
MIT
Instructions
92 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • openai.yaml · agents/

SKILL.md (first lines)

# Use Rabi Codex Context

Treat Rabi PC Manager as the only owner of persona configuration, Codex-session bindings, plans, memories, role skills, recall, `viewedAt`, archiving, consolidation, and trigger policy. Treat the Codex Hook as a thin event trigger and `additionalContext` injector. Never scan or score role files inside the plugin as a fallback.

## Check the Manager

Use the plugin root that contains this skill. Run:

```text
node <plugin-root>/scripts/rabi-context.mjs doctor
node <plugin-root>/scripts/rabi-context.mjs roles
```

The client discovers the current dynamic Manager endpoint from `RabiRouteHost.exe`. Set `RABI_MANAGER_URL` only for an explicit non-Host development Manager. Never guess or retain an earlier port. If the Host or Manager is unavailable, report that no fresh Rabi context was injected; do not recover from a plugin-local role cache.

For Codex-only use, run RabiRoute Manager with gateway autostart disabled. Keep persona, plan, memory, validation, and consolidation APIs active:

```powershell
$env:RABIROUTE_MANAGER_AUTOSTART = "0"
npm run manager
```

Configure the roles directory through Rabi PC / Manager configuration. Do not register role roots in the plugin.

## Bind or switch the current session

Ask the user to submit one strict marker:

```text
[rabi:use <RoleId>]
```

Example:

```text
[rabi:use ExampleRole]
从这一轮开始使用示例角色。
```

`UserPromptSubmit` sends the real `session_id` and raw prompt to Rabi Manager. The Manager validates the role, persists the binding, runs the normal Rabi role-knowledge snapshot, and returns the context for same-turn injection.

## Inspect, refresh, or disable

Use exactly one marker:

```text
[rabi:status]
[rabi:refresh]
[rabi:off]
```

- Use `status` to read the Manager-owned binding.
- Use `refresh` to force the Manager to resend the persona base context.
- Use `off` to remove only this Codex session binding. Do not delete role knowledge.

## Bind proactively from Rabi PC

Use the exact Codex session ID. Never infer it from a title, workspace, or timestamp:

```text
node <plugin-root>/scripts/rabi-context.mjs bind --session <session-id> --role <RoleId>
node <plugin-root>/scripts/rabi-context.mjs status --session <session-id>
node <plugin-root>/scripts/rabi-context.mjs unbind --session <session-id>
```

These commands call Rabi Manager session APIs. They do not write plugin-local binding files.

## Follow required reads

Rabi Manager routes Codex hooks and normal RabiRoute Agent packets through the same `RabiContextManager`, which is the sole caller of `roleKnowledgeSnapshot()`. It may inject a `[处理前上下文确认]` section containing plan, recent-memory, consolidated-memory, or role-skill GET paths.

Before replying, updating knowledge, publishing a task, or performing an external action:

1. Prefix each relative GET path with the injected Rabi Manager API base URL.
2. Read every required item through the Manager API.
3. Use the existing plan and memory APIs for changes; preserve their focus, keyword, edit-window, archival, and consolidation validation.
4. State uncertainty if a required read fails. Never read JSON files directly and pretend the Manager lifecycle succeeded.

## Hook behavior

- `SessionStart` forwards startup, resume, clear, and compaction events to Manager.
- `UserPromptSubmit` forwards the raw prompt and real session ID to Manager.
- `PreToolUse` and `PostToolUse` are reasoning checkpoints. Manager scores bounded tool input/output against the same role indexes and injects only newly relevant required reads.
- The same `turn_id` ledger suppresses repeated context and repeated `viewedAt` refreshes. An updated item has a new revision key and may be injected again.
- Normal RabiRoute message delivery uses the same central context manager with full entry context. The Codex plugin is not involved in message routing.
- Preview policy is read-only: it does not archive completed plans, refresh `viewedAt`, or create consolidation work.
- Manager returns the entire model-visible context; the Hook injects it without re-scoring or supplementing it.
- Unbound sessions receive no Rabi context.
- Manager failures fail open. Explicit Rabi controls receive a bounded diagnostic; ordinary prompts and reasoning checkpoints continue silently without invented context.
- Review and trust plugin hooks through Codex `/hooks`, then test in a new task.

From vb2250158/RabiRoute, MIT.

More from vb2250158/RabiRoute

Signals

Stars
492
Forks
0
Open issues
0
Last commit (this folder)
Oct 20, 2026 (8 days ago)
Last release
Jul 31, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from vb2250158

Cite this page

use-rabi-codex-context skill. Agent Mart. https://agentmart.dev/skills/vb2250158-use-rabi-codex-context-a36499 (last updated 2026-10-24)