AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

R Code

mcp-foritin-r-code · by foritin

Session-first AI coding desktop app built with Rust, Tauri 2, React and TypeScript.

No reviews yet
0 installs
21 views
0.0% view→install

Install

$ agentstack add mcp-foritin-r-code

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-foritin-r-code)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of R Code? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

R-Code

[English](./README.md) | [简体中文](./README.zh-CN.md)

[](https://github.com/foritin/r-code/actions/workflows/ci.yml) [](https://github.com/foritin/r-code/actions/workflows/flaky-tests.yml) [](https://github.com/foritin/r-code/releases) [](./LICENSE)

Session-first AI coding desktop app built with Rust, Tauri 2, React, and TypeScript.

R-Code organizes conversations, model runs, tool approvals, file changes, verification, and replay into traceable tasks. The project is currently in the 0.x stage. See Releases and [CHANGELOG.md](./CHANGELOG.md) for shipped versions and user-visible changes.

Highlights

  • Native model providers with optional Codex CLI App Server/MCP collaboration, including same-task Codex → R-Code delegation.
  • Plan mode with durable goals, structured human-in-the-loop questions, feature-oriented todos, and a crash-safe enhanced review workflow.
  • Evolving memory that is off by default and stored only in AppData, with global approval, project review, and frozen snapshot injection.
  • Keyless native web access, an optional built-in deep-research MCP, third-party MCP management, and official Registry discovery.
  • Session branches, resend, steer, queues, a streaming timeline, and clickable file/line references that open the right-side Files workbench.
  • R-Code/Codex subagent delegation with optional quality review, per-child cancellation, and visible read-only / approval-required / full-access states.
  • Workspace file, search, Git, and Shell tools behind one audit boundary.
  • Risk levels, per-call approval, read-only subagents, and path-escape protection.
  • Baseline-aware diffs, verification, file/task rollback, and crash recovery.
  • Integrated PTY terminal and Codex/Claude transcript replay.

Codex collaboration

Codex main-agent runs use the official App Server connection. With Codex CLI 0.145.0 or newer and an available R-Code Provider, Codex can call a bounded in-session tool that creates a child run under the current R-Code task instead of opening another sidebar session. If either capability is unavailable, R-Code hides that dynamic tool and the Codex main run continues normally.

R-Code shows only public reasoning summaries emitted by the App Server, never raw chain-of-thought. Child runs inherit the parent permission ceiling, persist their effective three-state permission, and can be cancelled individually. Assistant references such as src/main.rs:42 open the workspace file in the right-side workbench at the requested line.

Supported platforms

| Platform | Release targets | Packages | | --- | --- | --- | | Windows | x8664 MSVC | branded .exe, NSIS updater .exe, WiX .msi | | macOS | Apple Silicon, Intel | per-architecture .app, .dmg | | Linux | x8664 GNU | .AppImage, .deb |

GitHub Actions builds installers from v* tags. See the [release guide](./docs/releasing.md) for code signing, first-release setup, and updater requirements.

Architecture

The normal desktop application is not three permanently separate processes. The Tauri host, native agent runtime, Tool Gateway, and storage services are logical layers in one Rust process, while React runs in the WebView. Optional integrations such as Codex CLI, the Codex-facing MCP server, and enabled local stdio MCP servers create additional processes.

| Layer | Location | Responsibility | | --- | --- | --- | | Desktop host | src-tauri/ | Tauri shell, IPC, run orchestration, providers, Codex, and system services | | Agent runtime | crates/r-code-agent-worker/ | multi-turn loop, steer, subagents, quality review, Plan suspension | | Web / MCP client | crates/r-code-mcp/ | safe web access, MCP clients, Registry, lazy sessions, lifecycle | | Tools / security | crates/r-code-gateway/, r-code-core/ | tool execution, path boundaries, risk, permissions, DTOs, secrets | | Persistence | crates/r-code-store/ | SQLite, JSONL projections, blobs, changes, Plan, review, verification | | Terminal | crates/r-code-terminal/ | PTY, OSC 133, raw output, external CLI replay | | Renderer | src-tauri/frontend/ | React scenes, Zustand state, typed Tauri IPC | | Shared contracts | vendor/agent-contracts/ | required agent-* contract crates Git submodule |

JSONL is the conversation-content source, while SQLite is the product-state source for tasks, runs, permissions, audit, Plan, memory, and changes. See [Architecture](./docs/architecture.md) for the full model and diagrams.

Development

Prerequisites: Git, stable Rust, Node.js 20, and the platform dependencies required by Tauri 2. Windows additionally needs Visual Studio Build Tools 2022 and WebView2 Runtime. See Tauri prerequisites for macOS and Linux.

# Windows: verify the Tauri CLI, agent-contracts submodule, and npm dependencies, then start
./dev.ps1

# Bootstrap only
./dev.ps1 -BootstrapOnly
# macOS / Linux
bash ./dev.sh

# Bootstrap only
bash ./dev.sh --bootstrap-only

After bootstrap, the development launch is equivalent to:

cargo tauri dev --config src-tauri/tauri.dev.conf.json

The development process always uses the R-Code Dev identity with isolated AppData, WebView, SQLite, logs, credentials, Codex/Claude configuration, and npm global prefix, so it can run beside an installed R-Code. Even a bare cargo tauri dev is protected by a runtime flavor guard and cannot open production data. The development updater reads only the separate dev-latest.json channel; source changes continue to hot reload through Vite/Tauri.

Initialize only the required product submodule manually with:

git submodule update --init --recursive -- vendor/agent-contracts

The .agents submodule contains optional repository collaboration skills and is not part of the product build:

git submodule update --init -- .agents

Verification

# Release metadata and release-quality gate
node --test scripts/release.test.mjs scripts/release-quality-gate.test.mjs scripts/flaky-test-report.test.mjs
node scripts/release.mjs check

# Rust
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace --all-features

# Frontend
cd src-tauri/frontend
npm ci
npm test
npm run build

When changing dependencies or release automation, also run npm --prefix src-tauri/frontend audit --package-lock-only --audit-level=high and cargo deny check advisories (install the pinned cargo-deny version from CI if it is not already available).

Local packaging:

# Windows branded installer
powershell -ExecutionPolicy Bypass -File ./scripts/build-branded-installer.ps1

# Raw Windows NSIS / MSI
cargo tauri build --bundles nsis,msi

# macOS ad-hoc Apple Silicon app/dmg
bash ./scripts/build-macos.sh

# Intel macOS package
bash ./scripts/build-macos.sh --target x86_64-apple-darwin

# Signed/notarized macOS distribution
bash ./scripts/build-macos.sh --signed

# Linux
cargo tauri build --bundles appimage,deb

See [RELEASING.md](./docs/releasing.md) for output paths, signing variables, and production requirements.

Release

The version, changelog, tag, and GitHub Release flow is validated as one chain:

node scripts/release.mjs prepare X.Y.Z
# Review, verify, commit, push main, and wait for CI; then:
node scripts/publish-release.mjs vX.Y.Z --dry-run
node scripts/publish-release.mjs vX.Y.Z

The publish gate creates the immutable tag only after the exact main commit has a complete successful CI run; the release workflow verifies that provenance and every required CI job again before it can access release work. It then triggers the four-platform GitHub Actions build, waits for it, and verifies the uploaded assets. Stable releases sign each platform when its credentials are available; missing platform certificates produce an explicit unsigned warning instead of blocking the release, while updater integrity signing remains mandatory. Follow [the release guide](./docs/releasing.md) for credentials, repository controls, recovery, and post-release acceptance.

Repository layout

r-code/
├─ crates/                    # product-specific Rust crates
├─ installer/                 # Windows branded installer and NSIS payload wrapper
├─ src-tauri/                 # Tauri host and production React frontend
├─ vendor/agent-contracts/         # required shared contract submodule
├─ docs/                      # current documentation and UI reference images
├─ icons/                     # package icons and maintainable source assets
├─ scripts/                   # development, signing, and release helpers
├─ .github/workflows/         # CI and release workflows
├─ CHANGELOG.md               # user-visible release history
└─ Cargo.toml                 # Rust workspace and product version baseline

Documentation

  • [Documentation index](./docs/readme.md)
  • [Contributing](./CONTRIBUTING.md)
  • [Support](./SUPPORT.md)
  • [Code of Conduct](./CODEOFCONDUCT.md)
  • [Architecture](./docs/architecture.md)
  • [Plan mode and enhanced review](./docs/plan-mode.en.md)
  • [Web tools and MCP](./docs/mcp.md)
  • [Evolving memory](./docs/memory.md)
  • [Installation, backup, recovery, and uninstall](./docs/operations.en.md)
  • [Release guide](./docs/releasing.md)
  • [Security Policy](./SECURITY.md)
  • [Privacy Notice](./PRIVACY.md)
  • [CHANGELOG](./CHANGELOG.md)

Do not submit vulnerability details, credentials, or private source code in public issues. Follow [SECURITY.md](./SECURITY.md) for private reporting and [PRIVACY.md](./PRIVACY.md) for local and network data flows.

License

[MIT](./LICENSE) © R-Code Team

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.