Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@agentproto/adapter-mastracode-inprocess

Latest version: v0.6.5

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: agentiknet
11 Stars
0 Forks
37 Versions
1.5K Downloads
TypeScript Repo language

Scan summary

@agentproto/adapter-mastracode-inprocess was last scanned on 28 Nov 2026 at version 0.6.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 37 versions; the latest 4 were published within 6 days (23–28 Nov 2026).
  • Findings: No rules fired in version 0.6.5.
  • Downloads: 1,455 downloads.

Versions

37 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.6.5 LATEST 28 Nov 2026 No rules fired
0.6.4 27 Nov 2026 No rules fired
0.6.3 24 Nov 2026 No rules fired
0.6.2 23 Nov 2026 Not shown
0.6.1 17 Nov 2026 Not shown

No rules fired in 0.6.5

Findings

Findings for v0.6.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.6.5; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@agentproto/adapter-mastracode-inprocess

Mastra Code driven in-process via its mastracode / mastracode/headless SDK, instead of spawning npx mastracode as a subprocess. Implements the AIP-45 protocol: "proprietary" arm contract directly — no child process, no argv, no JSONL pipe.

import { mastracodeInprocessRuntime } from "@agentproto/adapter-mastracode-inprocess"

const runtime = mastracodeInprocessRuntime()
const session = await runtime.start({ cwd: process.cwd() })

for await (const evt of session.send("Fix the failing test in src/foo.ts")) {
  console.log(evt)
}
await session.close()

// Resume later — same process or a fresh one — via the sessionId the
// first session returned:
const resumed = await runtime.start({ resumeSessionId: session.sessionId })

See @agentproto/harness's createAgentCliRuntime for the generic AgentCliRuntime/AgentCliClient contract this package implements.

How it works

manifest (src/index.ts, protocol: "proprietary")
        │ createAgentCliRuntime skips the subprocess spawn
        ▼
createProprietaryProtocolArm  ──dynamic import──▶  this package
        │                                                │
        │                              createAgentCliClient(definition)
        ▼                                                ▼
   AgentCliClient  ◀── src/client.ts ── createMastraCode() + runMC()
        │
        │ mapMastraEvent (reused from @agentproto/harness's print arm)
        ▼
    StreamEvent

Why this is a separate package from @agentproto/adapter-mastracode

That package spawns the CLI (protocol: "print") per turn; this one holds a live in-process AgentController across turns and never shells out. Different dependency surface, different process lifecycle, different session-id shape — see MASTRACODE-INPROCESS.md for the full rationale.

Session ids

sessionId is a composite "<resourceId>:<threadId>" string — an implementation detail of how Mastra Code resolves threads for a live AgentController, documented in full in MASTRACODE-INPROCESS.md. Hosts should treat it as an opaque string: persist whatever sessionId returns and pass it back as resumeSessionId to resume, including across a process restart.

Isolation

Storage and Mastra Code's global home-dir config discovery are both redirected to a dedicated location under $AGENTPROTO_HOME (default ~/.agentproto/mastracode-inprocess/), so this arm's sessions never collide with — or leak into — a developer's own interactive mastracode usage. See MASTRACODE-INPROCESS.md for specifics and a known limitation around homeDir propagation.

Modes and options

modes (plan / build / fast) and options (model / effort) are declared on the manifest; see MASTRACODE-INPROCESS.md for how they reach client.ts (env-carried mode selection, direct model/effort passthrough).

Spec

See AIP-45.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @agentproto/adapter-mastracode-inprocess

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229