SShortSingh.
Back to feed

Running Claude Code on a schedule: cost caps, tool allow-lists, and shell pitfalls

0
·5 views

A developer writing for the Keelwork account explains how to run Claude Code unattended using print mode from cron, launchd, systemd, or CI. Because no one is present to approve risky actions, the author stresses restricting the agent with a strict tool allow-list, a spending cap, and deny rules. The article includes a sample command that limits the agent to read-only tools and writing to a reports folder. It also provides a POSIX shell lock script to prevent overlapping runs, along with notes on stale locks, scheduler choices, and minimal PATH issues. The author cautions that the setup does not sandbox the agent, which still runs with the user's permissions.

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 ·

Keeping EPUB and PDF Versions of a Book in Sync Through a Single Source

Self-published authors often export a manuscript to several formats, then find after small edits that the EPUB and PDF no longer match, such as differing chapter titles or outdated tables of contents. The author argues the root problem is that the book has multiple outputs without one authoritative source. The proposed fix is to keep the manuscript in plain text, store shared metadata like title and trim size in one settings file, and rebuild all outputs from scratch each time. The author, who has worked in publishing since 2009, has built a small command-line tool called BookForge to enforce these rules. The piece goes on to describe common packaging errors that cause upload failures and suggest checks for each.

0
ProgrammingDEV Community ·

AI Speeds Up Coding, But Debugging Generated Code Is Getting Harder

Generating code with AI tools now takes seconds, yet tracking down subtle bugs still falls heavily on engineers. Teams adopting these tools report that senior developers feel more drained during code reviews and incident handling than they did two years ago. Skipping the slow process of building a mental model while writing code makes generated modules harder to debug, especially when they pass basic tests but fail on unexpected inputs. Generated code also tends to hide errors behind broad fallbacks and retries, turning clear crashes into quiet data problems. The article recommends requesting minimal diffs, carefully reading control flow and error handling, testing against real edge cases, and reusing existing utilities to avoid duplicated logic.

0
ProgrammingDEV Community ·

Student Builds Multi-Platform English-Darija Translator as Interoperability Project

A developer shared their first Dev.to post about a university assignment on data exchange and interoperability. They built an English-to-Moroccan Darija translation service powered by Google Gemini, exposed through a RESTful API written in Java 21 with Jakarta EE. The API is consumed by four heterogeneous clients, including a web extension, mobile app, CLI, and PHP, using standardized JSON exchange. The author highlighted challenges such as cross-platform authentication, prompt design for natural dialect output, and environment configuration. The complete project and its documentation are available on GitHub.

0
ProgrammingDEV Community ·

SQL avançado: subconsultas, CTEs, quantificadores, EXISTS e views explicados

O texto aborda subconsultas, que são instruções SELECT aninhadas dentro de outros comandos SQL para fornecer dados dinamicamente. Explica as Common Table Expressions introduzidas pelo SQL:1999 com a cláusula WITH, que nomeiam subconsultas temporárias e melhoram a legibilidade. Também descreve os papéis das subconsultas conforme a cláusula em que aparecem, além dos quantificadores ALL e ANY, sendo que ANY equivale logicamente ao IN. Por fim, apresenta subconsultas correlacionadas, o operador EXISTS, as views tradicionais e as views materializadas, que armazenam fisicamente o resultado.