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

@moda-ai/cli

Latest version: v1.55.156

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: pranavbedi10
178 Versions
18.3K Downloads

Scan summary

@moda-ai/cli was last scanned on 23 Nov 2026 at version 1.55.156. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 178 versions; the latest 2 were published on 23 Nov 2026.
  • Findings: No rules fired in version 1.55.156.
  • Downloads: 18,273 downloads.

Versions

178 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.55.156 LATEST 23 Nov 2026 No rules fired
1.55.155 23 Nov 2026 No rules fired
1.55.154 16 Nov 2026 No rules fired
1.55.153 16 Nov 2026 Not shown
1.55.152 16 Nov 2026 Not shown

No rules fired in 1.55.156

Findings

Findings for v1.55.156. 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 1.55.156; other versions have their own rules, not their own score.

README

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

moda-cli

CLI for Moda: production monitoring and evals for AI agents.

Query your trace analytics from the terminal. A trace is the full record of one agent run: every message, tool call, and step that shares one conversation_id (the trace ID).

Install

npm install -g @moda-ai/cli

Or use without installing:

npx -p @moda-ai/cli moda overview

Setup

Run the wizard to sign in, pick an org, and provision an API key:

moda init

It then installs the moda-cli skill into detected coding agents (skip with --no-agent-skill) and, when you opt in, launches your coding agent to add the Moda SDK (--sdk-integrate), before a final doctor check. moda init does not upload anything from your repository. Prompt sync, skill sync, harness analysis, and CI workflows are separate: see moda prompts, moda skills push, moda harness, and the Moda GitHub App.

Or set the key manually:

export MODA_API_KEY="moda_sk_..."

Get your API key from moda.dev/settings.

Read-only keys

Turn on Read-only when you create a key in Settings → Ingestion keys. A read-only key works with every read command (overview, search, context, problems, ...) but the API rejects writes (false-positive, signals create, problem-feedback, ask, ...) with 403, and it cannot ingest data. Use one for agents and evaluations that should never change anything.

Platform admin keys

Platform admins can create moda_pk_ keys on the admin page (/admin/api-keys). They are not tied to an organization, so name one on each run:

export MODA_API_KEY="moda_pk_..."
export MODA_TENANT_ID="<organization-id>"
moda overview
moda users --tenant-id=<organization-id>   # tenant-scoped commands also take --tenant-id

They are read-only by default and stop working when the owner loses platform admin access. Usage is not counted in the organization's CLI analytics. Ordinary moda_sk_ keys cannot choose another organization: the API rejects them with 403.

Diagnostics

moda doctor --online checks configuration and cloud data flow. Experimental harness report citations, approval, and report sync do not affect normal doctor or status health; use the explicit harness commands to validate those reports. The legacy status.harnessReport JSON field is retained as skipped. Source folder presence is not evidence of SDK initialization, so doctor does not warn about instrumentation solely because a src or app directory exists. Verify your integration with a fresh application conversation and moda audit.

Local harness extraction

moda harness extract --path=<repo> --json scans source without an LLM or network calls. Its JSON preserves the traced call sites and roles, and adds graph.runtimeAgents and graph.artifacts: agent classes, multi-step tool loops, bound workflows, model-backed cron pipelines, and statically enabled framework/MCP tools alongside existing deterministic artifacts.

moda harness extract --path=. --json
moda harness candidates --path=. --promote=all --out=harness-components.json --yes

Every enumerated component includes a source citation and reachable or defined_only status. Production trace evidence can later promote it to in_prod. Dynamic MCP allow-all servers are one group; extraction does not connect to those servers. The repository-bound createAgentScopeResolver(result, ctx) callback maps CallSite.enclosing to emitted agent IDs, including inherited hooks and shared helpers; ambiguous or unknown scopes return [].

Component skeleton and diff
moda harness skeleton --path=. --out=/tmp/skeleton.json --json
moda harness skeleton-diff /tmp/before.json /tmp/after.json --json
moda harness skeleton-diff --from=/tmp/before.json --to=/tmp/after.json --json

skeleton produces harness-skeleton/v1, a component map of the harness: a HarnessGraph (agents, artifacts and relationships in the usual places, so sync and Ask read it unchanged) plus skeleton.callSites, counts, commit, content hash, coverage and a control-flow slot. It runs locally without an LLM or network calls and holds locations and owners, never bodies.

  • Prompts: a named builder, template or prompt file a model call reaches is one unit, shared by every call that reaches it. Text assembled in the calling function is a call unit for that function, with the pieces as members. Constants inside a builder are not listed separately.
  • Ids are stable across commits: they hold no line numbers, except the extractor's anonymous path#L<line> scopes. Repeated keys get ~2, ~3 in source order.
  • liveKey is the key traces and the traced registry match on, normalised like the backend's trace status: agent class name, model-facing tool name, model id, skill name. Prompts and call sites have none.
  • Map edges live in skeleton.edges, a compact table; decode them with decodeSkeletonEdges(graph.skeleton.edges) into { id: "<type>:<from>-><to>", type, from, to, source, evidence }. Types: triggers (entry point to agent), invokes_subagent and hands_off_to (agent to agent), uses_artifact (agent to prompt, tool or model), implemented_by (tool to code:<path>#<handler>), has_control_flow and guards (agent to control-flow item to call site), and covered_by_eval (agent or tool to eval suite). source is code for every extracted edge; consumers merge edges seen in traces as trace. relationships keeps only the agent-to-agent edges in the usual graph form, so sync and Ask read them unchanged.
  • skeleton.coverage says per component type whether detection is complete or partial, with skeleton.knownGaps. Claim completeness only for complete types.
  • Entry points: workflows and crons, exported route handlers of route agents (trigger: "http_route") and Durable Object bindings (trigger: "do_binding") of agent classes or of classes that construct one. Each lists the agents it starts in their entrypointIds (triggers edges); a workflow starts the function agents and sub-agent calls its code reaches.
  • Tools are attributed to agents whose own model calls receive tools. A call that picks its model from a table at runtime has modelSource: "factory (computed)" and the table in modelCandidates; those candidates are not the call's or the agent's models, and each agent lists such calls in modelChoices (call site, location and candidates). A Workers eval suite that drives the deployed Worker covers the agents bound in its default Wrangler config.
  • covered_by_eval is a static association (what the suite's own files import, through re-export barrels, and its own model calls), not execution or assertion coverage.

The JSON envelope's data is the skeleton; --out writes the bare skeleton. Incomplete scans return exit code 3 with warnings. skeleton-diff accepts either form, lists added, removed, moved and changed components and edges, ignores line-only shifts, and pairs unique same-name components across file renames as moved. Its identical flag compares content hashes. harness extract output is unchanged.

Library exports (src/harness-extract/skeleton/index.ts): buildHarnessSkeleton(rootDir, options?), skeletonFromExtract(result, ctx), diffHarnessSkeletons(before, after) and registerControlFlowDetector(detector). A detector receives {result, ctx, callSites, agents, callSiteIdOf} and returns control-flow items; items naming unknown call sites or agents are dropped, a throwing detector leaves controlFlowStatus: "failed" with a warning, and without a detector the status is not_run.

Usage

Find things by meaning, then drill in:

moda search "user wants a refund" --mode=semantic  # Semantic/keyword/hybrid message search
moda search "stripe.charges.create" --mode=keyword # Exact identifiers, incl. tool calls
moda search "checkout" --include-tool-io           # Search tool inputs/outputs too
moda context <conversation_id> --msg-index=5       # Read the exact turn
moda audit <conversation_id|trace_id>              # Raw span audit (trace ID or OTLP trace_id)
moda context <id>@12 <id2>@3 --window=2            # Batch: several traces in one call (max 25)
moda audit <id1> <id2>                             # Batch audit
jq -r '...' | moda context --ids-from=-            # Batch targets from stdin (or --ids-from=<file>)

Batch reads: moda context and moda audit take up to 25 targets (several positionals, or one per line with --ids-from=- / --ids-from=<file>). A context target is <id> or <id>@<msg_index>; ids may contain :, and a line may be JSON ({"id":"...","msg_index":N}) for an id that ends in @<digits>. Audit ids are verbatim. The output is { results: [{ target, ok, data | error }], succeeded, failed, has_more, remaining_targets }; a missing trace is a per-item not_found, and the exit code is 1 only when every target failed. One id keeps the single-trace output.

Production intelligence (Moda stores the questions you send to moda ask and their answers):

moda overview --days-back=30                     # Health briefing (KPIs, clusters, activity)
moda ask "what should I fix first?"              # Grounded answer with evidence
moda investigate                                 # Ranked issues worth fixing
moda problems                                    # Cross-signal Problems by root cause
moda problem <problem_id>                        # One Problem: full dossier
moda problem <problem_id> --evidence             #   ...attribution evidence (keyset paged)
moda problem <problem_id> --reports              #   ...investigation reports
moda problem <problem_id> --traces               #   ...affected traces
moda problem-feedback <problem_id> --action=mark_fixed   # Close the loop from the terminal
moda problem-linear <problem_id>                 # The Problem's Linear issue (key, state, URL)
moda problem-linear-file <problem_id>            # File it in Linear (needs Integrations -> Linear)

Signals:

moda emotions --family=confusion                 # Multi-family emotion detections
moda hallucinations --kind=contradicted          # Grounding: contradicted/verified outputs
moda frustrations --include-window --window=1    # Legacy single-family frustration view
moda tool-failures                               # Tool failure overview
moda tool-failure-detail <tool_name> --include-window

Traces, clusters, memory:

moda traces --search="error" --environment=production
moda cluster-traces <node_id>                    # Traces assigned to one cluster node
moda clusters                                    # Walk the topic hierarchy
moda clusters --search="billing disputes"        # Find a cluster by meaning
moda traces state <conversation_id>             # Agent memory now: tasks and facts
moda traces state <id> --summary-only           # Fact counts per segment
moda traces get <id> --msg-index=42             # What happened at turn 42 (state snapshots and replay are retired)

Live tail (one JSON line per new item — tail -f for your agent):

moda tail                                        # New traces, every 15s
moda tail --signal=all --interval=30             # Traces + emotion detections

Legacy aliases (same behavior, kept for existing scripts): moda conversations = moda traces, moda cluster-conversations = moda cluster-traces, --conversations = --traces (moda problem), --signal=conversations = --signal=traces.

Flag aliases: moda context --message-index=N = --msg-index=N, and moda users --limit=N = --page-size=N. Each command rejects a flag it does not take, and time windows differ by command: --days-back=N (a whole number, 1-90) on the overview, Problem and detection commands, --time-range on traces, search and clusters. The other window spelling is rewritten when it names the same span (--days-back=7 is --time-range=7d, --time-range=30d is --days-back=30); one with no exact match fails. Boolean flags accept true/false, 1/0, yes/no and on/off.

Prompt management:

moda prompts init                                # Create .moda/prompts.yml (version 2)
moda prompts status                              # Read-only local prompt status
moda prompts migrate --dry-run                   # Preview a version 1 -> 2 manifest rewrite
moda prompts sync                                # Upload changed prompt versions
moda prompts promote support.triage --label=prod --version=pver_abc123

Feedback:

moda feedback "cluster label looks wrong" --category=bad_cluster_label
moda feedback "trace belongs to another problem" --category=false_positive_attribution --problem-id=<id>

Output adapts to where it runs: piped/CI/agent environments get schema-versioned JSON (moda.agent.v1), an interactive terminal gets human prose. Force a mode with --json, --agent, or --human. In JSON modes, pipe to jq:

moda overview | jq '.data.metrics'
moda frustrations | jq '.data.frustrations[].primary_cause'

Every command supports moda <command> --help for scoped usage, and moda manifest --json describes the full machine protocol (commands, exit codes, event schema) for agents.

Prompt Management

Prompt management is code-first. Keep existing files and inline definitions in place. The CLI resolves selected sources without importing or executing your app. Existing prompts/**/*.prompt.md and prompts/**/*.prompt.json projects continue to work unchanged.

# Discover prompt sources and preview the sync without saving local state.
moda prompts sync --dry-run
# Run prompt-specific discovery, upload verified definitions, and save mappings.
moda prompts sync
# Optionally investigate unresolved sources with an installed coding agent.
moda prompts sync --analyst=claude
# Sync only configured sources, without discovery.
moda prompts sync --no-analyze

Every sync reuses the prompt-specific harness analyzer. It discovers candidates locally, then uses an installed Claude Code, Codex, or Cursor CLI to follow unresolved relationships and repair mappings. A separate agent session reviews new candidates. Source resolution reads the actual files; agent-written prompt text never becomes registry content. Uncertain candidates remain pending and are reported separately from sources eligible for sync.

Use --analyst=local-scan or --assist=none to disable agent calls, or --no-analyze to sync only configured sources. Existing mappings remain authoritative. Successful sync saves new accepted mappings in .moda/prompts.yml, preserving existing keys, legacy metadata, and negative prompt_paths patterns. Builders are stored as source definitions, not as claims about their rendered runtime text.

A plain --dry-run uses deterministic discovery. Add --analyst=claude, --analyst=codex, --analyst=cursor, or --analyst=auto to preview agent-assisted discovery without saving the manifest, lockfile, or registry versions. Agent investigations have no fixed wall-clock timeout and consume the installed agent's usage; interrupt the command to cancel. Sync prints scan and verification progress to stderr, including periodic analyst heartbeats while waiting. JSON results on stdout remain unchanged; --quiet suppresses progress and --agent --stream delivers progress as structured events.

--watch starts with analysis and then watches mapped definitions; re-run sync to discover new sources that do not affect an existing mapping. You can also run harness analyze --experimental --concern=prompts and import its report with prompts init --from-harness=<report>. Older reports are normalized and prompts without a promptSource are mapped from sourcePath when unambiguous; prompts that still do not resolve are returned in skipped with a reason, and the import fails only when none resolve. Discovery reports partial coverage: finding a prompt fragment does not prove that every composition or model call has been covered.

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 @moda-ai/cli

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229