🧩 Embeds

This page is the operator reference for [TAG] placeholders used in Amy/Ompcord Discord embed templates.

Rendering rule: keep the reference table plain and scroll-safe. Put JavaScript examples in fenced code blocks below the table, not inside raw HTML table tooltips.

Placeholder reference

CategoryPlaceholderTypeSourceMeaning
Discord gateway[BOT_TAG]stringOmpcord BridgeDiscord bot user tag, e.g. Amy#0305
Discord gateway[GATEWAY_STATUS]emoji stringAmy SSOT DashboardGateway readiness, e.g. 🟢 Ready / 🔴 Offline
Discord gateway[GUILD_ID]snowflake stringAmy SSOT DashboardActive Discord guild ID
Discord gateway[HOME_CHANNEL_MENTION]Discord mentionAmy SSOT DashboardHome channel mention, e.g. <#...>
Discord gateway[ACTIVE_THREAD_MENTION]Discord mentionAmy Session ContinuityActive thread mention, e.g. <#...>
Discord gateway[GATEWAY_PING]millisecondsOmpcord BridgeDiscord websocket latency
Active run[RUN_STATE]emoji stringAmy SSOT DashboardBusy/idle state
Active run[RUN_PHASE]stringAmy SSOT DashboardCurrent task/todo phase
Active run[RUN_STEP]numberAmy SSOT DashboardStep/tool iteration count
Active run[RUN_LAST_TOOLS]stringAmy SSOT DashboardRecent tool trace, e.g. read › search › edit
Active run[RUN_TOOL_GLYPHS]emoji stringAmy SSOT DashboardRecent tools as compact symbols
Active run[RUN_ELAPSED]durationAmy SSOT DashboardCurrent run duration
Active run[RUN_PROMPT_EXCERPT]stringAmy SSOT DashboardTruncated active prompt/goal
Active run[RUN_STATUS_MESSAGE]stringAmy SSOT DashboardCurrent agent status text
Model/API[MODEL_NAME]stringAmy SSOT DashboardCurrent model ID
Model/API[MODEL_PROVIDER]stringAmy SSOT DashboardProvider inferred from runtime/model
Model/API[MODEL_API]stringAmy SSOT DashboardAPI protocol used by omp
Usage/billing[USAGE_INPUT]formatted numberomp npm plugins quick-startInput token count
Usage/billing[USAGE_OUTPUT]formatted numberomp npm plugins quick-startOutput token count
Usage/billing[USAGE_CACHE_READ]formatted numberomp npm plugins quick-startCache-read token count
Usage/billing[USAGE_TOTAL]formatted numberomp npm plugins quick-startTotal token count
Usage/billing[USAGE_COST]USD stringomp npm plugins quick-startEstimated cost when usage is available
Usage/billing[USAGE_BILLING_SUMMARY]stringAmy SSOT DashboardOne-line input/cache/output/cost summary
Todo progress[TODO_TOTAL_PHASES]numberAmy SSOT DashboardTotal todo phases
Todo progress[TODO_ACTIVE_PHASE]stringAmy SSOT DashboardCurrent phase name
Todo progress[TODO_ACTIVE_CHECKLIST]markdown stringAmy SSOT DashboardCurrent phase checklist
Todo progress[TODO_PHASE_SUMMARY]stringAmy SSOT DashboardCompact phase progress summary
Todo progress[TODO_COMPLETED_COUNT]numberAmy SSOT DashboardCompleted task count
Daemon/system[DAEMON_PID]numberOmpcord BridgeParent daemon PID
Daemon/system[DAEMON_UPTIME]durationOmpcord BridgeParent daemon uptime
Daemon/system[DAEMON_VERSION]semver/stringAmy SSOT DashboardStatus schema/runtime version
Daemon/system[DAEMON_WORKDIR]pathOmpcord BridgeCurrent daemon working directory
Daemon/system[DAEMON_SESSION_DIR]pathAmy Session ContinuityRoot session directory
Daemon/system[DAEMON_ALLOW_LIST]mention listOmpcord BridgeAllowed Discord user mentions
Daemon/system[DAEMON_MEMORY]sizeOmpcord BridgeRuntime RSS/heap memory indicator
Settings[CONFIG_REACTIONS]emojiAmy SSOT DashboardReaction feedback enabled/disabled
Settings[CONFIG_TOOL_LOGS]emojiAmy SSOT DashboardTool output logging enabled/disabled
Settings[CONFIG_AUTO_START]emojiAmy SSOT DashboardAuto-start behavior enabled/disabled
Settings[CONFIG_USE_THREADS]emojiAmy Session ContinuityThread routing enabled/disabled
Settings[CONFIG_LOG_DETAIL]emojiAmy SSOT DashboardVerbose dashboard logging enabled/disabled
Last run[LAST_RUN_SUCCESS]emojiAmy SSOT DashboardLast run success/error indicator
Last run[LAST_RUN_EXIT_CODE]numberAmy SSOT DashboardChild process exit code when available
Last run[LAST_RUN_TIME]Discord timestampAmy SSOT DashboardRelative completion timestamp
Last run[LAST_RUN_ERROR]stringAmy SSOT DashboardLast captured error text

Safe formatting examples

Discord mention

const homeChannelMention = `<#${state.discord.homeChannelId}>`

Usage summary

const summary = `📥 ${fmt(u.input)}  💾 ${fmt(u.cacheRead)} cache  📤 ${fmt(u.output)}  💸 $${u.cost.toFixed(4)}`

Active checklist

const lines = phase.items.map((item) => {
  if (item.status === "done") return `✅ ${item.task}`
  if (item.status === "in_progress") return `➡️ ${item.task}`
  return `◽ ${item.task}`
})

Source-truth references