[PYNE Agent plugin]

Install the pyne-agent-worker AXIS component plugin — natural-language PYNE script chat via Cloudflare® Workers AI™ (standalone or HOOX-enhanced).

PYNE Agent plugin

Abstract

pyne-agent-worker is a sister Cloudflare® Worker that turns natural language into PYNE-compatible scripts. AXIS consumes it as a component plugin (kind: 'component') loaded from URL. It does not replace engines — evaluation still goes through your active engine (server, pyodide, …). The agent only writes script source into the editor / chat UI.

Repohoox-sh/pyne-agent-worker
Plugin moduleGET /plugin/axis-pine-agent.js
APIPOST /v1/chat
StandaloneWorkers AI™ only — no pyne-worker / HOOX mesh required
Optionalpyne-worker validate→retry when configured

Pine Script™ and TradingView® are trademarks of TradingView, Inc. Cloudflare® is a registered trademark of Cloudflare, Inc. Independent project — not affiliated with TradingView, Inc. or Cloudflare, Inc.

Conceptual model

Install in AXIS

  1. Deploy pyne-agent-worker (standalone is enough).
  2. AXIS → Manager → Plugins → Install from URL:
https://pyne-agent-worker.cryptolinx.workers.dev/plugin/axis-pine-agent.js

(Or your own deploy: https://<your-pyne-agent-worker>/plugin/axis-pine-agent.js.)

  1. Configure plugin fields:
FieldMeaning
endpointWorker origin (no trailing slash)
apiKeyWorker API_KEY (optional in open local mode)
pineVersionauto | v5 | v6
styleauto | indicator | strategy | library
  1. Open the agent from the manager tab / topbar action, Workers Manager → Install/Configure, or the floating PYNE Agent button when mounted.

Component URL load is enabled (AXIS 2.0.x): loadPluginFromUrl accepts kind: 'component', registers via registry.registerComponent, and runs optional init({ getConfig }).

Contract namespace remains pynescript.axis.plugins.v1. Export shape: default ES module with kind: 'component', slots, mount, optional init/dispose.

See also: Dynamic loader, Plugin examples, end-user guide PYNE Agent, Workers Manager.

Standalone vs HOOX

ModeConfigBehavior
Standalone (default)No PYNE_SERVICE / PYNE_WORKER_URL on the workerChat + optional RAG; validation.skipped
HOOX-enhancedOptional pyne-worker binding or URLgenerate → POST /run → fix retries

AXIS users who only want natural-language script authoring never need to deploy pyne-worker.

API surface (worker)

MethodPathRole
GET/healthmode: standalone | hoox
POST/v1/chatNL → reply + extracted pine
GET/plugin/axis-pine-agent.jsThis plugin module
GET/Built-in chat shell (iframe / demo)

Auth: X-API-Key or Authorization: Bearer when the worker secret is set.

Legal / content

  • The agent repo never ships TradingView® built-in indicator sources.
  • Knowledge (docs v5/v6, open corpus ≤ 1000, operator builtin refs) is ingested privately into R2 + Vectorize™.
  • Always treat marks: Pine Script™, TradingView®, Cloudflare®.

Failure modes

SymptomLikely cause
Plugin load fails (kind: component)CORS / mixed content on module URL; verify HTTPS and that AXIS is current (component URL load is supported)
401 on chatMissing/wrong apiKey vs worker API_KEY
Empty RAG qualityKB not ingested; chat still works with model knowledge only
validation.available: falseExpected in standalone — not an error

See also