SShortSingh.
Back to feed

Dev team applies strict public-reply guardrails to private DM bot responses

0
·1 views

A development team building an AI agent that responds to Bluesky feedback extended their full set of public-reply safety controls to direct messages, rejecting the assumption that private channels require less oversight. The same tone review, batch caps, idempotency checks, and daily budget limits used for public replies were imported directly into the DM handler rather than rebuilt separately. Two public-reply mechanisms — liking competitor posts and thread re-fetching — had no DM equivalents, forcing the team to design replacements, including logging skipped competitor DMs with explicit reasons. The most notable addition was a "conversation-recency check" that blocks the bot from replying to an older message if a newer unanswered one already exists in the same conversation, preventing robotic out-of-order responses. Every possible send outcome, including a new "stale-superseded" state, was given a distinct label to make the system's behavior fully auditable.

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
ProgrammingHacker News ·

IndexFlow: Open-Source Rust-Based Indexing Infrastructure Launched on GitHub

A developer has released IndexFlow, an open-source indexing infrastructure tool built using the Rust programming language. The project has been shared on Hacker News under the 'Show HN' category, which highlights community-built tools and projects. The source code is publicly available on GitHub under the IndexFlowing organization. At the time of posting, the project had received 3 points and 1 comment on Hacker News, indicating it is in its early stages of community discovery.

0
ProgrammingDEV Community ·

A Practical Guide to Self-Hosting LLMs: Models, Hardware, and Real Cost Math

A software consultant deployed a 70B-class open-weight language model on two GPU servers for a fintech client in January after their compliance team banned all external AI APIs, requiring that no data leave the company's premises. The setup handled document Q&A, support triage, and internal code review at a fraction of the cost of hosted API services. The consultant has since generalized that deployment into a field guide covering model selection, serving stacks, and hardware cost calculations. Open-weight models are categorized into tiers ranging from small 1–4B parameter models requiring 4–8 GB VRAM to large 30–40B models needing 24–48 GB, each suited to different tasks. The guide also cautions that self-hosting is not always cheaper upfront and is best justified by data sovereignty requirements, high inference volumes, or the need for latency predictability.

0
ProgrammingDEV Community ·

How to Route GPT-5.6 Sol, Terra, and Luna by Task Type to Cut API Costs

OpenAI's GPT-5.6 family comprises three pricing tiers as of August 28, 2026: Sol at $4/$20 per million tokens, Terra at $2/$12, and Luna at $0.20/$1.20 for input and output respectively. At 100,000 tasks of typical size, choosing Luna over Sol can reduce costs from roughly $6,200 to $340, making model selection a significant engineering decision. A Python routing approach assigns models based on task consequence and ambiguity rather than prompt length, since short prompts can conceal complex reasoning needs. Luna suits high-volume, verifiable tasks like classification and extraction, Terra handles everyday coding and document analysis, while Sol is reserved for ambiguous or high-stakes decisions. For multi-stage workflows, the recommended pattern chains Luna for intake, Terra for drafting, and Sol only where unresolved complexity or high consequence demands it.

0
ProgrammingDEV Community ·

Developer Builds Browser-Based Braille Translator Using Unicode Bit Manipulation

A software developer created a fully client-side Braille translator that runs entirely in the browser without sending data to any server. The project revealed that Unicode encodes all 64 Braille dot combinations as code points from U+2800 to U+283F, making each character directly derivable through bit manipulation. A key challenge was handling numbers, since Braille letters double as digits and require a special number sign prefix to distinguish them from letters. The developer ultimately relied on hardcoded character mappings rather than algorithmic derivation, concluding that straightforward solutions often outperform clever ones. The tool was built as part of a broader suite of lightweight, offline-capable browser utilities.