Skip to main content
SkillTotal

Is @code-yeongyu/senpi safe?

What @code-yeongyu/senpi does

senpi is a terminal coding agent CLI, an experimental fork of the pi coding agent with extra built-in extensions. The npm package installs the senpi and pi commands and needs Node.js 24 or later. You sign in with an API key such as ANTHROPIC_API_KEY or a supported subscription through /login, and by default the model gets four tools (read, write, edit and bash), so it reads and changes files and runs shell commands in your project. Built-in extensions add web search, a permission system with allow and deny rules, and context compaction. Its README warns against betting a production pipeline on it. Before installing, set up permission rules for unattended shell commands.

Partially analyzed - C/C++ code not checked for shell, network or file access; 79 code files not read (2 too large and 77 minified)
Notable — review in context (a capability is not a malicious indicator):
  • Node.js shell/command execution
  • Node.js dynamic code execution
  • Node.js filesystem read

What to do: The C/C++ code was not checked for shell, network or file access, so this result is incomplete. Review that code before installing.

@code-yeongyu/senpi is an npm package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. Its C/C++ code was not checked for shell, network or file access, so this result is partial. It can: delegated authentication, dynamic code execution, filesystem read, filesystem write, mcp tools detected, network egress and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).

@code-yeongyu/senpi 2026.11.21-2

npm package · npm:@code-yeongyu/senpi
LOW
0
/ 100 risk score
Snapshot · scanned Nov 21, 2026 · @code-yeongyu/senpi@2026.11.21-2 · engine 1.8.0 / ruleset 107

Get notified when this component changes

Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.

Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of @code-yeongyu/senpi's authors. Report a false positive.

Capabilities — what this component can do (not a risk score):
delegated authenticationdynamic code executionfilesystem readfilesystem writemcp tools detectednetwork egressshell execution

Behavioral traits

How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.

Tool surface
Tool Usage
Execution authority
Tool Access Control / Direct Tool Access
Filesystem reach
Tool Execution Context
Network egress
Interaction & Communication / Direct Communication
Delegated authentication
Tool Execution Context / User Delegated Credentials

Findings (7)

CapabilityNode.js dynamic code executionnot scored · severity highST-DYN-NODE

The code turns strings into live code at runtime (eval / new Function / exec).

const importModule = new Function("specifier", "options", "return import(specifier, options)");

Why it matters: If those strings aren't fixed and trusted, they become a way to run arbitrary code.

Fix: Avoid evaluating dynamically constructed code; if unavoidable, ensure the input is a trusted constant and never derived from external data.

CapabilityNode.js shell/command executionnot scored · severity highST-SHELL-NODE

The component can run operating-system commands or spawn processes.

import { spawn } from "node:child_process";
const child = spawn(process.execPath, workerCommandArgs(request.force), {
import { spawnSync } from "node:child_process";
const result = spawnSync(bunPath, ["--version"], { encoding: "utf8", timeout: 5_000, windowsHide: true });
import{__commonJS,__require}from"./chunk-IKOFCODM.js";var require_windows=__commonJS({"node_modules/isexe/windows.js"(exports,module){module.exports=isexe;isexe.sync=sync;var fs=__require("fs");function checkPathExt(path,options){var pathex …
import { spawn, spawnSync } from "node:child_process";
return spawnSync(decision.bunPath, [scriptRealPath, ...process.argv.slice(2)], transfer.options);
import { spawn } from "node:child_process";
? spawn("/bin/sh", ["-c", POSIX_GATE, launch.command, ...launch.args], {
: spawn(launch.command, [...launch.args], {
import { spawn } from "node:child_process";
const proc = spawn(command, args, {
const spawnProbe = options.spawnProbe ?? ((command, args) => spawn(command, [...args], { stdio: "ignore", windowsHide: true }));
import { type ChildProcess } from "node:child_process";
import { execFile as nodeExecFile } from "node:child_process";
import { execFile as nodeExecFile } from "node:child_process";
import { spawn } from "node:child_process";
const child = spawn(executable, buildCursorCliArgs(input), {
import { spawn } from "node:child_process";

Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.

Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; prefer execFile with an argument array.

CapabilityNode.js filesystem readnot scored · severity mediumST-FS-NODE-READ

The component reads files from disk.

readFile: (path) => fsPromises.readFile(path),
const content = fs.readFileSync(filePath, "utf-8");
cachedImageBase64 = fs.readFileSync(getBundledInteractiveAssetPath(IMAGE_FILENAME)).toString("base64");
dark: JSON.parse(fs.readFileSync(darkPath, "utf-8")),
light: JSON.parse(fs.readFileSync(lightPath, "utf-8")),
"grok-night": JSON.parse(fs.readFileSync(grokNightPath, "utf-8")),
"grok-day": JSON.parse(fs.readFileSync(grokDayPath, "utf-8")),
const content = fs.readFileSync(registeredTheme.sourcePath, "utf-8");
const content = fs.readFileSync(themePath, "utf-8");
const content = fs.readFileSync(themePath, "utf-8");

Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.

Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.

CapabilityNode.js filesystem write/deletenot scored · severity mediumST-FS-NODE-WRITE

The component writes or deletes files on disk.

`;fs.mkdirSync(path.dirname(debugLogPath),{recursive:!0}),fs.appendFileSync(debugLogPath,`${prefix}${redactedText}${suffix}`,{mode:384}),fs.chmodSync(debugLogPath,384)}function appendHiddenTuiStdout(text){text.length!==0&&appendDebugLogEntr …
`)}},this.agentDir=agentDir,this.endpoint=endpoint,this.recordPath=join(agentDir,"rpc","keys",this.launchId),this.ready=this.publication.promise,this.ready.catch(()=>{})}async publish(){try{await fs.mkdir(join(this.agentDir,"rpc"),{recursiv …
fs.writeFileSync(storePath, lines ? `${lines}\n` : "", { flag: "w" });
fs.appendFileSync(filePath, lines, { flag: "a" });
fs.writeFileSync(filePath, lines ? `${lines}\n` : "", { flag: "w" });
await nodeFs.promises.writeFile(`${lockDir}.owner`, token, { mode: 0o600 });
fs.appendFileSync(debugLogPath, `${prefix}${redactedText}${suffix}`, { mode: 0o600 });
fs.rmSync(configPath, { force: true });
fs.writeFileSync(debugLogPath, debugData);
fs.appendFileSync(logPath, `[${new Date().toISOString()}] debug log cut at ${size} bytes (cap ${maxBytes}); the last ${keep} bytes follow\n`);
fs.appendFileSync(logPath, tail.subarray(0, read));
fs.appendFileSync(debugLogPath, `${prefix}${redactedText}${suffix}`, { mode: 0o600 });
await fs.unlink(this.recordPath).catch((cause) => {
await fs.unlink(join(keys, name));

Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.

Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.

CapabilityNode.js network egressnot scored · severity mediumST-NET-NODE

The component makes outbound network requests.

</html>`}function oauthSuccessHtml(message){return renderPage({title:"Authentication successful",heading:"Authentication successful",message})}function oauthErrorHtml(message,details){return renderPage({title:"Authentication failed",heading …
var RETRYABLE_STATUS_CODES=new Set([408,425,429,500,502,503,504]);async function fetchWithRetry(input,init=void 0,options={}){let maxRetries=options.maxRetries===void 0||!Number.isFinite(options.maxRetries)?2:Math.max(0,Math.floor(options.m …
`)}function sameCapability(given,expected){let bytes=Buffer.from(given);return bytes.length===expected.length&&timingSafeEqual(bytes,expected)}async function readBody(request){if(request.method==="GET"||request.method==="HEAD")return;let ch …
function formatThrownValue(value){return value instanceof Error?value.message||value.name:typeof value=="string"?value:String(value)}var ModelsError=class extends Error{constructor(code,message,options){super(withCauseDetail(message,options …
</html>`}function oauthSuccessHtml(message){return renderPage({title:"Authentication successful",heading:"Authentication successful",message})}function oauthErrorHtml(message,details){return renderPage({title:"Authentication failed",heading …
`,{mode:384})}catch{}return minted}var cachedDeviceId;function deviceId(){return cachedDeviceId??=readOrMintDeviceId(),cachedDeviceId}function kimiCodeIdentityHeaders(){return{"User-Agent":`KimiCLI/${KIMI_CLIENT_VERSION}`,"X-Msh-Platform":K …
var CANCEL_MESSAGE="Login cancelled",TIMEOUT_MESSAGE="Device flow timed out",SLOW_DOWN_TIMEOUT_MESSAGE="Device flow timed out after one or more slow_down responses. This is often caused by clock drift in WSL or VM environments. Please sync …
</html>`}function oauthSuccessHtml(message){return renderPage({title:"Authentication successful",heading:"Authentication successful",message})}function oauthErrorHtml(message,details){return renderPage({title:"Authentication failed",heading …
</html>`}function oauthSuccessHtml(message){return renderPage({title:"Authentication successful",heading:"Authentication successful",message})}function oauthErrorHtml(message,details){return renderPage({title:"Authentication failed",heading …
</html>`}function oauthSuccessHtml(message){return renderPage({title:"Authentication successful",heading:"Authentication successful",message})}function oauthErrorHtml(message,details){return renderPage({title:"Authentication failed",heading …
function formatThrownValue(value){return value instanceof Error?value.message||value.name:typeof value=="string"?value:String(value)}var ModelsError=class extends Error{constructor(code,message,options){super(withCauseDetail(message,options …
import { createServer } from "node:http";
upstream = await fetch(`${credential.declaration.origin}${upstreamPath === "/" ? "" : upstreamPath}${query}`, {
const response = await fetch(url, { headers: { Accept: "application/vnd.github+json" } });
const response = await fetch(`https://api.github.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/issues/${encodeURIComponent(issue)}/comments?per_page=100&page=${page}`, { headers: { Accept: "application/vnd.github+json", …
const response = await fetch(`https://api.github.com/gists/${gistId}`, {
import { createServer } from "node:http";
export function oauthFetch(base = (input, init) => fetch(input, init)) {
outcome = await probeHttpEra(spec.url, (url, init) => fetch(url, { ...init, signal: timeout }), probeOptions);
fetchFn: (target, request) => fetch(target, {
const response = await this.#options.fetch(this.#options.url, init);
const handshake = await fetch(built.url, requestInit(built, abort.signal));
const response = await fetch(built.url, requestInit(built, abort.signal));

Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.

Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.

CapabilityDelegated authentication (OAuth 2.0 / OIDC)not scored · severity lowST-AUTH-DELEGATED

An OAuth 2.0 / OpenID Connect delegated-authentication flow was detected (authorization-code / refresh-token / token-exchange grant, an OIDC authorize/discovery endpoint or id_token, or a delegation library). Tools authenticate with the end user's delegated, scoped credentials rather than a long-lived embedded service credential. (6 occurrence(s) shown as evidence).

</html>`}function oauthSuccessHtml(message){return renderPage({title:"Authentication successful",heading:"Authentication successful",message})}function oauthErrorHtml(message,details){return renderPage({title:"Authentication failed",heading …
`,{mode:384})}catch{}return minted}var cachedDeviceId;function deviceId(){return cachedDeviceId??=readOrMintDeviceId(),cachedDeviceId}function kimiCodeIdentityHeaders(){return{"User-Agent":`KimiCLI/${KIMI_CLIENT_VERSION}`,"X-Msh-Platform":K …
</html>`}function oauthSuccessHtml(message){return renderPage({title:"Authentication successful",heading:"Authentication successful",message})}function oauthErrorHtml(message,details){return renderPage({title:"Authentication failed",heading …
</html>`}function oauthSuccessHtml(message){return renderPage({title:"Authentication successful",heading:"Authentication successful",message})}function oauthErrorHtml(message,details){return renderPage({title:"Authentication failed",heading …
function formatThrownValue(value){return value instanceof Error?value.message||value.name:typeof value=="string"?value:String(value)}var ModelsError=class extends Error{constructor(code,message,options){super(withCauseDetail(message,options …

Fix: Delegated auth is a lower-blast-radius execution context than an embedded static credential. Confirm the requested scopes are minimal and that tokens are never logged or forwarded off-host.

CapabilityMCP tool surface detectednot scored · severity lowST-MCP-DETECTED

An MCP tool surface (manifest or tool definitions) was found.

pi.registerTool(createAskUserTool("codex", pi, state));
pi.registerTool(createAskUserTool("claude", pi, state));
target.pi.registerTool(buildMcpTombstoneDefinition(removed, entry.name));
pi.registerTool(onChild(createPtyBashTool(toolCtx), TERMINAL_CHILD_JOB_KINDS.bash));
pi.registerTool(onChild(createBashOutputTool(toolCtx), TERMINAL_CHILD_JOB_KINDS.output));
pi.registerTool(onChild(createBashInputTool(toolCtx), TERMINAL_CHILD_JOB_KINDS.input));
pi.registerTool(onChild(createBashResizeTool(toolCtx), TERMINAL_CHILD_JOB_KINDS.resize));
pi.registerTool(onChild(createKillBashTool(toolCtx), TERMINAL_CHILD_JOB_KINDS.kill));
pi.registerTool(createMonitorTool(toolCtx));

Why it matters: Just context — review which tools it offers and their permissions.

Fix: Review the declared MCP tools and their permissions.

How attackers abuse these capabilities

Interactive labs on the attack class behind the rules above. They show the technique, not anything found in @code-yeongyu/senpi.

Maintain @code-yeongyu/senpi?

Check the next package before your agent installs it

The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.

Check your own component

Run the same evidence-backed scan on any MCP server, agent skill, or package.

Scan your own component

How we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →