Skip to main content

Agent Runtime Tools

Verification boundary

This page documents the committed source. Treat revision-sensitive RuneLite UI, packet, or in-game outcomes as pending live-client verification unless the page records direct evidence.

A source read or passing test fails to substitute for observing a revision-sensitive flow in RuneLite. Use live-client observations.

Current Offline Tools

ToolUseNotes
CodeGraphFind source symbols, callers, and file structure before editingTreat index output as navigation, then verify changed files after edits
rgSearch docs and source textUse targeted patterns; skip broad scans after finding the symbol
Gradle focused suitesCompile and test narrow areasStart focused, then broaden when shared code changes
git diffReview exact edits before final notesCheck docs and prompt changes for stale paths
docs-site/sidebars.jsConfirm published navigationCanonical pages belong in the sidebar or need an intentional inbound link

Current Runtime Inspection Surfaces

SurfacePackageUse
SuiteRuntimeStatusApi.debugSnapshot revision, bootstrap, pacer, walker, and health status
WalkerTelemetrysdk.walkerRead bounded decision history and the terminal status, structured failure, request, lifecycle, position, target, and decision retained after active-path cleanup
WidgetExplorerApi.debugInspect widgets by visibility, text, and action
PacketTraceApi.debugCapture bounded packet events with packet identity, arguments, result, and semantic actionType
NativeActionTracePacketUtils.loggingCapture exact native, RuneLite menu, and opt-in client telemetry actions in one bounded buffer; normal dispatched actions can forward to the optional clipboard sink, while telemetry bypasses it
IssuedActionClipboardPacketUtils.loggingBest-effort, disabled-by-default copy of dispatched SDK/menu actions; walker NPC rows include definition ID and live scene index
RevisionHealthCheckApi.debugProbe revision-sensitive packet reflection surfaces
Plugin overlays and panelsplugin packages and com.n3plugins.uiRead live plugin status and user-facing state
RuneLite logslocal RuneLite runtimeCorrelate plugin errors with live client state
API Testercom.n3plugins.apitesterRun curated, user-visible SDK/API probes inside RuneLite
Agent Servercom.n3plugins.agentserverExpose allowlisted runtime reads, one-call debug context, bounded scene queries, and observed action results to a local client

The menu-action cache provides a runtime compatibility artifact rather than a diagnostic log. It lives at ~/.runelite/cache/menu-action-plan.json. Deleting it forces resolution on the next native menu action. See menu-action-dispatch.md.

Use these as evidence helpers. They do not replace source review or live observation.

Agent Server lastInteractions returns the bounded packet stream in interactions and the bounded client/menu stream in nativeActions. Packet records include packetName, packetType, and actionType. Native records include source, action, and the captured arguments. This allows live audits to distinguish a synthetic MOUSE_CLICK from its following CC_OP, item, player, NPC, object, or other supported action.

Clipboard output offers a local debugging convenience, not an Agent Server postcondition. Enable it through Packet Utils copyIssuedActionsToClipboard. Agent Server interaction history remains the authoritative bounded machine-readable capture.

n3_get_debug_context returns player, modal, inventory, nearby entity, navigation, latest native action, and latest buffered error state in one atomic client-thread snapshot. CONFIRMED action responses have an observed declared postcondition. An inline native trace on DISPATCHED proves transport only.

Offline Agent Loop Available Now

  1. Read AGENTS.md, SOT, and relevant docs.
  2. Map the requested workflow to existing SDK/actions.
  3. Inspect live source with CodeGraph or rg.
  4. Patch only scoped files.
  5. Run focused compile/tests.
  6. Inspect git diff.
  7. Update docs, SOT, and sidebar/cross-links when public behavior changes.

Runtime Evidence Guardrails

  • Local-only by default. Limit network listeners to localhost.
  • Omit account credentials, session tokens, or personal paths in artifacts.
  • Omit hidden screenshots or logs. State output paths before writing.
  • Prefer read-only probes. Skip diagnostic endpoints for risky, destructive, costly, or account-specific gameplay actions.
  • Skip committing generated artifacts unless the user requests them.
  • Record client revision, setup, action or probe, expected result, observed result, and an evidence reference for every required live scenario.

Runtime Tool Review Checklist

  • Does the tool read or write files? State paths before running it.
  • Does it rely on the live client? Record client revision and account state.
  • Does it expose screenshots or logs? Redact sensitive content.
  • Does it only inspect state? Keep diagnostics separate from action dispatch.
  • Does it prove live behavior? If not, mark live verification pending.