Articles
Articles
Practical writing on building digital products, cybersecurity, and AI in a developer's daily work.
More topics (2)
3 min read#AI#Developer toolsRepeating the same instructions to Claude Code? Put them in a skill
A Claude Code skill is a SKILL.md file with your instructions, which Claude uses when relevant or when you type its name after /. The description decides when.
3 min read#AI#Developer toolsclaude -p runs a repo's hooks without asking: use --bare in scripts
Without --bare, claude -p runs the repo's hooks and connects its MCP servers even if you never trusted it, and asks nothing. In scripts and CI, run it with --bare and name the tools.
3 min read#AI#Developer toolsbudget_tokens returns 400 on newer Claude models: move to adaptive
From Claude 4.7 on, a request with thinking type enabled and budget_tokens gets a 400 error. Remove the budget, set type: adaptive, and control depth with effort.
3 min read#AI#Supply chain securityA model file you download can run code on your server: OWASP LLM03
OWASP LLM03:2025 covers the supply chain of AI apps: pre-trained models, LoRA adapters, libraries and data. A pickle file can run code when it loads, so download from sources you can verify, prefer safetensors, and keep an inventory of everything you use.
3 min read#AI#App securityA model that passes every test, yet poisoned? OWASP LLM04
According to OWASP, data poisoning is manipulation of pre-training, fine-tuning or embedding data, and it can plant a backdoor that only shows on a certain trigger. The defense: track data origins and versions, and sandbox unverified sources.
3 min read#AI#App securityDid your chatbot show one user another user's data? Closing LLM02
Per OWASP, a language model can reveal personal data or business secrets in its answers, and system prompt rules are not always honored. The fix is that the model only sees what the user may see, and data gets cleaned before it reaches it.
2 min read#AI#Supply chain securityYour AI assistant suggested a package that doesn't exist?
AI coding assistants can suggest packages that do not exist. Per OWASP, attackers look for these names and publish malicious packages under them, so check every package before you install it.
3 min read#AI#App securityDoes your RAG assistant answer from another customer's files?
The vector database in a RAG app can return chunks from another tenant if the search doesn't filter by permission. OWASP calls it LLM08:2025, and the fix is fine-grained permissions in the search itself and trusted sources.
2 min read#AI#App securityNobody hacked you, but your AI bill exploded: put limits on your app
Unbounded consumption (LLM10:2025 in OWASP's list) happens when your app lets anyone send requests to the model with no limit. The fix: a cap on input size, a cap on requests per user, and a timeout for each request.
2 min read#AI#App securityCan your AI agent delete things? Cut its tools and its permissions
Excessive Agency is when an LLM agent can do more than its job. The OWASP fix: fewer tools, permissions sized to the task, and a human approval before any high-impact action.
3 min read#AI#App securityLLM output going into innerHTML or SQL? Treat it as user input
The OWASP list of LLM app risks says the model's output can be steered by the prompt, so treat it like any user's input: encoding by context, parameterized queries, and a CSP.
2 min read#AI#App securityAn API key in your system prompt? Treat it as visible to the user
The OWASP list of LLM app risks says the system prompt is not a secret and cannot be a security control. Keys, permissions and sensitive rules stay out of it, and the protection lives in the code around the model.
3 min read#AI#Developer toolsWant JSON that fits your schema from Claude? Use structured outputs
Structured outputs in the Claude API make the response follow a JSON Schema you give it in most cases, except when Claude refuses or stops at max_tokens. Put the schema in output_config.format, or strict: true on a tool.
3 min read#AI#Developer toolsClaude API returned 529 or 429? When to retry and when to fix
Claude API errors come in two kinds: temporary ones you retry after a wait, like 529, 500 and most 429s, and ones in the request itself that retrying will not fix, like 400 and 401. The official SDK retries twice on its own, and you decide the rest.
3 min read#AI#Developer toolsIs your Claude Code session getting heavy? Let a subagent dig for you
A Claude Code subagent is a specialized assistant that runs in its own context window, with a prompt and tools you choose. It does the long search and hands back the result, so your main conversation stays clean.
3 min read#AI#Developer toolsTold Claude Code to lint after every edit and it forgot? Use a hook
Hooks in Claude Code are commands that run on their own at set points, such as after every file edit or before any tool. Put the rule in a hook instead of asking for it in words, and use exit 2 to block the tool or send the error back to Claude.
3 min read#AI#Developer toolsMany Claude requests and no rush? Send a batch at half the cost
The Message Batches API takes many requests at once and works on them in the background, at 50% lower cost. Most batches finish in under an hour, and results come back with each request's custom_id.
3 min read#AI#Developer toolsDid Claude's reply stop mid-sentence? Check stop_reason first
Every Messages API response has a stop_reason field that tells you why Claude stopped. If it says max_tokens, the reply hit the token limit you set and was cut off, so do not show it as complete.
3 min read#AI#Developer toolsKnow the size of your Claude prompt before you send it
The count_tokens endpoint in the Claude API tells you how many input tokens a request has before you send it, in the same shape as a message request. Counting is free, with its own rate limit.
3 min read#AI#Developer toolsSame instructions in every Claude request? Cache them
Prompt caching in the Claude API stores the part of your request that repeats, and reading it back costs a small fraction of the input price. The cache matches the prefix exactly, so put the fixed part first.
4 min read#AI#AI SEOLet ChatGPT and Claude find your site without training on it
OpenAI and Anthropic each run a training bot, a search bot and a user-request bot, and each has its own name in robots.txt. Block the training bot, keep the search bot open, and your site still shows up in answers.
4 min read#AI#App securityOne email your AI agent reads can leak your inbox: limit its tools
There is no sure way to stop instructions hidden in what your agent reads, so the protection is in its tools: give it the least access it needs, and make a person approve every risky step.
3 min read#App security#AIMLflow server without login? Two flaws read files and run code
Three MLflow security advisories were added to GitHub's database on October 27: code execution and file reads on a server without login, and LLM provider keys written into traces. Fixed in 3.17.0.
4 min read#AI#Developer toolsMicrosoft open-sourced Agensh: 1,024 coding agents, no orchestrator
On Oct 24 Microsoft Research open-sourced Agensh under MIT: a harness scaling coding-agent teams to 1,024 agents with no central orchestrator, with published results on the hardest ProgramBench tasks.
6 min read#AI#Open modelsKimi K3.1 Pro: close to Claude at coding, open weights by Nov 4
Moonshot released Kimi K3.1 Pro with coding scores close to Claude Opus 5.5 and promised open weights by Nov 4. Until then it runs only on Kimi's own apps and API.
9 min read#AI#Developer tools75,000 AI agents in a Raspberry Pi's memory: what is AWS's Infinity?
AWS open-sourced Infinity under Apache 2.0, part of the Hydro project with UC Berkeley: a runtime that suspends an agent at a tool call like async/await, so about 75,000 idle agents fit in 8 GB.
5 min read#AI#Developer toolsUpgraded the Claude SDK? Any request that sends temperature gets a 400
Claude API version 2026-10-21 removed temperature, top_p and top_k, and any request that sends them gets a 400, even at the default value. The new major SDK versions send this version on their own, so upgrading means changing your code.
13 min read#Supply chain security#AIInstalled LiteLLM 1.107.0 or pulled a latest image? What to do now
LiteLLM 1.107.0 and its Docker images contain a program that steals keys. Don't run pip in the infected environment: search for cook.pth with system tools, clean up, and rotate every key the machine could reach.
11 min read#AI#Developer toolsAI Scan and Claude Code Review: do they review PHP, and at what cost?
GitHub's AI Scan scans PHP code in pull requests and uses credits even on a public repository. Claude Code Review has no official list of languages, and it's billed by tokens.
9 min read#AI SEO#AIHow does ChatGPT find your pages? What a Cloudflare-OpenAI pilot found
Allow OAI-SearchBot in robots.txt and in your firewall, and clean up dead and duplicate links. The Cloudflare and OpenAI pilot shows why, but indexing doesn't guarantee ChatGPT cites you.
11 min read#AI#Open modelsJais 3: six open Arabic models (Apache 2.0) to test on your dialect
Jais 3 is six Arabic language models from 0.9B to 375B plus a speech model, tagged Apache 2.0 on Hugging Face with no sign-up gate. The license allows commercial work, and the numbers so far come only from the developers.
10 min read#AI#Open modelsMeta's Muse Spark Open: open weights with terms. Fit for your product?
The Muse Spark Open license lets you use, modify and sell the model for free, on condition of the phrase "Built with Muse Spark Open" and the use policy, with an agreement with Meta only for large API providers.
10 min read#AI#Developer toolsWhy did your model leave Copilot or Codex, and what replaces it?
GPT-5.5 left Codex for ChatGPT sign-ins on October 14, Copilot removed 6 models on October 19, and 3 more leave on November 16. Here is each model's replacement and where to change its name.
