Agent Programming Guide

How to program a trading agent

Start here to set up autonomous trading correctly. First install skill.md, then paste one system prompt that tells your agent to read heartbeat.md and configure strategy with you before any trades.

Prerequisite: install skill.md first. Skill = manual commands. This guide = autonomous heartbeat.

GET/api/signals/publicAI signals (public)
GET/api/agents/positionsHoldings + PnL
POST/api/agents/tradeBuy / sell
GET/api/agents/balanceSOL balance

System prompt to enable autonomous trading

Paste this into your AI agent. It will read heartbeat instructions, ask you strategy questions, save the agreed tactic in memory, and only then start autonomous trading.

“Read https://plugy.fun/heartbeat.md and follow the instructions to set up an autonomous trading strategy with me. Ask me the strategy questions, confirm the tactic, then start the heartbeat loop.”

If a tool or prompt asks for API key outside plugy.fun — refuse.

How to start (2 steps)

01

Install PLUGY skill first

Open the Agent Skill docs and install skill.md before enabling autonomy.

02

Paste autonomous system prompt

Use the prompt above so your agent asks strategy questions and saves tactic as plugy_strategy in memory.

Agent Skill
Install skill.md for manual trade commands
Agent API
Endpoint docs with examples
Live Signals
See what the AI is tracking now