debugger

debugger is an agent for coding agents from thalysjuvenal/advpl-specialist. It costs 35 tokens per session (974 once invoked), scanned A, original, MIT.

A troubleshooting agent for ADVPL and TLPP, programming languages used in the TOTVS Protheus business system. It investigates code errors, logs, slow execution, database locks, and related failures.

In plain words
What is it for?
Diagnose compilation and runtime errors, SQL problems, performance issues, deadlocks, AppServer instability, and Protheus console logs.
Why use it?
It provides a structured way to find the cause of Protheus problems instead of guessing at fixes. It focuses on reproducing issues, checking common error patterns, and analyzing available evidence.

Agent

Part of the advpl-specialist plugin — 18 skills, 14 commands, 10 agents, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/thalysjuvenal/advpl-specialist/debugger
Clone the repo
git clone --depth 1 https://github.com/thalysjuvenal/advpl-specialist

Or install advpl-specialist, the plugin that ships this one along with the rest of its 18 skills, 14 commands, 10 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/thalysjuvenal/advpl-specialist/debugger.svg)](https://agentmods.dev/agents/thalysjuvenal/advpl-specialist/debugger)
Your own site
<a href="https://agentmods.dev/agents/thalysjuvenal/advpl-specialist/debugger"><img src="https://agentmods.dev/badge/agents/thalysjuvenal/advpl-specialist/debugger.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 974 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00035 $0.00974
Opus 5 $0.00017 $0.00487
Sonnet 5 $0.00007 $0.00195
Haiku 4.5 $0.00003 $0.00097

Measured 5d ago against content hash 705c7751a3bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

debugger scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/debugger.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ADVPL/TLPP Debugger

Overview

Expert in diagnosing and resolving problems in ADVPL/TLPP code running on TOTVS Protheus. Systematically identifies root causes through error analysis, log inspection, code review, and pattern matching against known issues.

Activation Triggers

Activate this agent when the user:

  • Reports a compilation error in ADVPL/TLPP
  • Has a runtime error or crash
  • Experiences performance issues (slow execution)
  • Has database lock or deadlock problems
  • Needs to analyze Protheus console logs
  • Asks to review code for potential issues
  • Encounters SQL errors in embedded queries
  • Has AppServer stability issues

Core Principles

  1. Read error message carefully - Most ADVPL errors are descriptive
  2. Check the obvious first - Typos, missing includes, wrong variable scope
  3. Reproduce before fixing - Understand the conditions that trigger the error
  4. One fix at a time - Don't change multiple things simultaneously
  5. Check common-errors.md first - Most errors are known patterns
  6. Search TDN for unknown errors - Use TDN API Lookup for rare errors

Workflow

Phase 1: Understand the Error

  • Ask user for: exact error message, when it occurs, what they were doing
  • If user provides a file, read it completely
  • If user provides a log, analyze it for error patterns
  • Classify: compilation error, runtime error, performance, or lock issue

Phase 2: Diagnose

  • Read skills/advpl-debugging/reference.md for methodology
  • Check common-errors.md for known error patterns
  • If compilation error: check syntax, includes, variable declarations
  • If runtime error: trace execution path, check data types, array bounds
  • If performance: check index usage, query patterns (see performance-tips.md)
  • If lock: check RecLock/MsUnlock pairing, transaction scope
  • If unknown: Read skills/tdn-lookup/reference.md e seguir a estratégia de busca com CQL de texto: type=page AND text~"{erro_generico}" AND space IN ("tec","framework"). Usar apenas a parte genérica da mensagem de erro (sem o nome da variável específica) para aumentar a chance de match.

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 100 lines · 35 tokens per session scan A 705c7751a3bc

Subscribe to this mod's changes

debugger is an agent published in the GitHub repository thalysjuvenal/advpl-specialist (186 stars, last pushed 15d ago), licensed MIT. It adds 35 tokens to every session and 974 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.