SShortSingh.
Back to feed

Guardrails for AI agents scheduling social posts: length checks, approvals and idempotency keys

0
·1 views

The article argues that the main risk of letting an AI agent post to social accounts is duplicate or badly sized posts caused by retries, not the writing itself. GPTpost, a social media scheduler for small teams, checks post length when a post is queued, refusing overlong text with HTTP 422 so the agent can shorten it. Agent-created posts still pass through the workspace's approval requirements and plan limits, with 409 and 402 errors returned when those rules block a post. Every write accepts an Idempotency-Key header so that resending the same request returns the original result rather than creating a second post, and the author recommends deriving keys from campaign, slot and account. The product also scopes API keys with limited rights and expiry, and marks posts as published only after network confirmation.

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 ·

Claude Code Can Now Run on Local or Cloud Models via Ollama on Windows

A developer has published a guide showing how to run the Claude Code terminal coding agent with models served by Ollama instead of Anthropic's accounts. The setup requires Node.js for installing Claude Code, the Ollama app on Windows, and a local model chosen from Ollama's list, such as the small qwen3.5:0.8b used in the example. Local models keep prompts and code on the user's machine but depend heavily on hardware and model size. For more capable models, Ollama's cloud options can be used after signing in, though these send prompts to Ollama's servers and have usage caps.

0
ProgrammingDEV Community ·

Live Supabase service_role keys found committed in public MCP config files on GitHub

A security researcher scanned public GitHub repositories for MCP configuration files that contain database credentials. After decoding and verifying candidate matches, 12 files were found to hold real service_role keys, which bypass row-level security and grant full database access. Four of the associated Supabase projects were still live at the time of the scan, one of them pushed the same day. The author argues that developers treat .mcp.json files like editor settings rather than secret stores, and that the ecosystem lacks the secret-scanning safeguards that .env files have. The researcher recommends rotating exposed keys and moving them into runtime environment variables, and has released free local auditing tools for these configs.

0
ProgrammingDEV Community ·

QuietQueue groups small chores into time-boxed plans using an on-device open-weight model

QuietQueue is a new open-source, browser-based app that turns a list of scattered to-do items into a short session of related tasks within a chosen time budget and energy level. An optional on-device AI, built on the open-weight MiniLM sentence-embedding model via Transformers.js, groups tasks by meaning, while a deterministic planner enforces the time and energy limits. The app does not send messages, book anything, or carry out the tasks themselves, and task text stays on the user's device. The project was built for a Hacktoberfest challenge and its code is MIT-licensed, with dependencies and model weights retaining their own licenses. The developer notes that the implementation and tests were produced by an autonomous AI assistant, and that the app has limitations, including unencrypted local storage.

0
ProgrammingDEV Community ·

Developer Builds "Sloth", a Zero-LLM Memory System to Stop Agents Forgetting Context

A developer on DEV Community describes frustration with an AI agent that repeatedly lost track of prior information. In response, they built a memory component called Sloth that does not rely on a large language model. The system is designed so the agent does not need to re-explain previously established context. The article text on the platform did not render correctly, so further technical details about how Sloth works could not be confirmed from the source.