AI
news

27stories

Stories

AI
AI

LLM tokens measured in C#: why AI can't count the R's in strawberry

The model's failure on the "strawberry" question isn't a counting problem: it never sees letters, only numeric pieces called tokens. Using Microsoft.ML.Tokenizers 2.0.1 and the gpt-5 tokenizer, the author measures this from C# and shows that the word alone is a single token with ID 101830, so the r's inside it stay out of reach. The piece also covers how token cost varies by language, by numbers, and by random text such as GUIDs, plus how to count tokens in .NET.

Claude Code
Reusable review workflow

A reusable Claude Code skill for reviewing ASP.NET Core endpoint changes

Nick Cosentino explains how to package a recurring .NET review job as a project-scoped Claude Code skill. The example reviews endpoint changes across validation, authorization, response mapping and persistence, and the article stresses clear limits on what the agent may run. It is a practical starting point for teams that want repeatable AI-assisted reviews of ASP.NET Core code.

Claude Code
Agent loop for .NET
DVDEV Community: #dotnet Mehdi Mohseni 4 d ago

Claude Code for .NET Developers: A Practical Agentic Workflow

Claude Code is an agent that reads a repository, plans changes, edits files and runs dotnet build and dotnet test until the code passes. Mehdi Mohseni's guide shows how a .NET team can set it up with a CLAUDE.md, a PostToolUse build hook, plan mode and permission guardrails. It is worth reading if you want the agent to check its own work.

AI agents
Checks before the model
DVDEV Community: #dotnet MICHAEL-MAURICE 5 d ago

Six checks an AI Telegram assistant needs before the model runs

A developer built a Telegram assistant in n8n that can send email and book meetings, with its decisions guarded by a small ASP.NET Core API on .NET 10. The post lists six checks that run before the model sees a request: chat allowlist, duplicate updates, stale messages, voice length, contact ambiguity and time zones. It is a useful checklist for any bot that triggers side effects.

MCP + C#
Single-use approval
DVDEV Community: #csharp Martin Pisacreta 5 d ago

A C# MCP Server with Single-Use Order Approvals

Martin Pisacreta built a small .NET 8 MCP server where the order cancellation tool requires a separately recorded, single-use, expiring approval instead of trusting the model's confirmation. The article walks through the claim-before-use approval store, the tool contract and the limits of the design, backed by 12 passing tests.

Claude Code
Limits for agent commands

Configuring Claude Code Permissions for .NET Development

How should you configure Claude Code permissions so a coding agent can build and test a .NET project without gaining database or publish authority? This guide explains the documented rule order, settings scopes, wildcard risks, and boundaries for migrations and deployments. It is worth reading before you run agents unattended on .NET repositories.

AI in ASP.NET Core
Build a knowledge assistant
DVDEV Community: #dotnet AI Engineering Foundry 6 d ago

Building an AI Knowledge Assistant with ASP.NET Core

This tutorial shows how to grow a single LLM call into a production-ready AI feature on ASP.NET Core. It covers authentication, retrieval-augmented generation, security and failure handling. It is a practical roadmap for .NET developers who want the model to stay a replaceable dependency inside their application.

Claude Code
Set Claude's permission limits
RCRound The Code (David Grace) David Grace Oct 26

Controlling Claude Code permission prompts in a .NET project

Auto mode in Claude Code still lets an AI classifier decide which actions are safe. The author shows how to add ask and deny rules to a .NET project's settings file to keep control over EF Core migrations, running the app and database updates. He also explains that a deny rule wins over allow and ask rules, whichever settings file holds it.

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message