[PYNE Agent]

Write scripts from natural language (PYNE Agent) in AXIS using the optional pyne-agent-worker Cloudflare® plugin.

PYNE Agent

What it does

Describe an indicator or strategy in plain language. The PYNE Agent (Cloudflare® Workers AI™) returns a full script you can insert into the AXIS editor, then run with your normal engine (local PYNE Pro API, edge worker, or Pyodide).

You do not need the full HOOX mesh. The agent worker is usable standalone.

Pine Script™ and TradingView® are trademarks of TradingView, Inc. Cloudflare® is a registered trademark of Cloudflare, Inc.

Prerequisites

  1. A deployed pyne-agent-worker origin (or local wrangler dev).
  2. AXIS open in the browser (dev or production PWA).

Optional: API key if the worker has API_KEY set.

Install the plugin

  1. Open Manager → Plugins → Install.
  2. Paste:
https://pyne-agent-worker.cryptolinx.workers.dev/plugin/axis-pine-agent.js
  1. Set endpoint to the same origin (no trailing slash).
  2. Set API key if required.
  3. Prefer v6 / strategy or indicator when you know the target style.

AXIS loads component plugins from URL (Manager → Install, or Workers Manager → install agent). You can also open the worker’s built-in chat UI:

https://<your-agent-worker>/

or use the floating PYNE Agent button the plugin may inject after install.

Typical workflow

  1. Ask for a script (example: “v6 RSI strategy with ATR trailing stop and clear plots”).
  2. Review the fenced Pine block.
  3. Insert into editor (plugin action) or copy/paste.
  4. Select your engine and Run as usual.
  5. Iterate with follow-up messages (“use length input”, “overlay false”, …).

Tips

  • Prefer specific version (v5 / v6) and script kind in the request.
  • The agent may use a private knowledge base (docs + open examples). Quality improves after the operator ingests docs — not required to start chatting.
  • Validation against pyne-worker is optional on the agent side; AXIS evaluation is still your engine plugin.

Troubleshooting

IssueFix
Load errorCheck URL HTTPS, CORS, and that the module is reachable
UnauthorizedMatch plugin apiKey to worker secret
Weak answersIngest KB on the worker; still usable without it
Cannot insertUse copy; ensure plugin api.insertScript is provided by host

See also