SShortSingh.
Back to feed

Developer Debugs AI Agent Loop, Adds Run History After Silent Script Failures

0
·26 views

A software developer building an AI-powered ticket-execution agent encountered a silent failure on day three when a shell script could not locate user stories due to a filename prefix mismatch between 'US-04' and the actual 'NN_slug.md' file naming convention. A secondary bug caused an overly strict pipefail setting to kill the script before its own error message could display, and a content-matching fix later revealed a third issue where grep matched ticket IDs inside unrelated file bodies rather than headings. To address the lack of run visibility, the developer added timestamped JSON log files for each agent run using a tee pipeline, ensuring no output would be lost between sessions. Over the following day and night, 29 runs were logged across 20 user stories, accumulating nearly 500 turns and approximately USD 55 in API costs, with one ticket requiring four attempts before completing successfully. A final status-detection bug — where the script matched the word 'BLOCKED' anywhere in output rather than only in the status line — was caught and fixed manually after the new history system made it visible.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

osFoundry adds a prompt library with versioning and reusable skills for agents

osFoundry, a desktop app combining chat, agents, files and tools, now includes a Prompt Library that gathers prompts in one searchable place with favorites and usage counts. Users can save edits either by overwriting a prompt or as a new version, keeping earlier wording available for reuse. Prompts can contain placeholders such as {{product}} that the app fills in through a simple form before inserting the text into the chat. Proven prompts can also be converted into skills in Studio, which agents use automatically when a task matches their trigger and assigned tools.

0
ProgrammingDEV Community ·

Testing a pump underload detector before it controls a motor

A running pump may draw less current when it loses load, but a low current reading alone cannot confirm a dry pump, so the detector should report suspected underload with supporting context. Measurements should begin only after the motor is confirmed running and the startup window has passed, and mismatches between run commands and contactor feedback should be logged. Missing, stale, or invalid current data should be treated as a sensor fault rather than as zero current. The alert should use its own persistence timer and reset when readings return to normal, while latched alarms, motor-stop logic, and protection hardware remain independent of the telemetry. Validation should involve replaying simulated traces, comparing results against normal operation at several operating points, and logging timestamps, RMS current, motor state, thresholds, and fault reasons.

0
ProgrammingDEV Community ·

Solana token rules can be verified with a single RPC call, no SDK needed

A developer published a method for reading a Solana token's rules using one standard RPC request, requiring no SDK, wallet, or keys. The approach decodes the token's mint account to reveal its owner program, mint and freeze authorities, and Token-2022 extensions such as transfer fees, transfer hooks, and permanent delegates. The author applies the check weekly to one token and says it recently corrected earlier documentation that had misstated the token's technical setup. Using the method on the WEN mint, the author found it runs on the original SPL Token program with authorities revoked and no extensions. The post argues that repeatable, rerunnable checks provide stronger evidence than one-time snapshots.

0
ProgrammingDEV Community ·

RNNoise and DeepFilterNet: Key Facts and What to Test on a Device Board

The source notes that neither RNNoise nor DeepFilterNet publishes a microcontroller-class cost, so developers must measure it on their own hardware. The RNNoise paper targets real-time 48 kHz operation on a low-power processor, while DeepFilterNet2 reports a 0.04 real-time factor on a notebook Core-i5 CPU. One preprint found that original noisy audio produced lower semantic word error than enhanced audio across all 40 tested configurations, though this is a single study. The article stresses that a neural denoiser must fit the chip and be checked for its effect on downstream speech recognition. It also flags that both tools assume 48 kHz audio and that no latency figure is published, so these must be measured on the full processing path.