Thinkmine Releases Kobo, a .NET Language With Prompts Built Into the Syntax
Thinkmine has released Kobo, a language for .NET in early access, where prompts and AI tools are built directly into the syntax. A prompt is written as a block such as prompt:int result { ... } with values inserted via ${...}, and a function marked with the [tool] attribute can be called by the model itself. The language is at an early stage and its syntax will still change, so it suits experiments with agents but is too early for production.
AI-processed from Habr AI; edited by Hamidun News
Today, almost anyone who connects a language model to a .NET application does so through a third-party SDK: they assemble a prompt string, send the request, parse the response, and manually describe the functions the model may call. Thinkmine offers a different approach and has released Kobo, a general-purpose language in early access where all of this is part of the language itself. The authors explicitly tie the project to the growth of agentic development and specification-driven code generation: code is increasingly written jointly by humans and AI agents, and the language is meant to be convenient for both.
A prompt as part of the program
The core idea of Kobo is native AI support. A prompt is declared as an ordinary construct: prompt:Type name { ... }. Inside the block is plain text, and values from the program are inserted via ${expression}. If a literal fragment is needed, it is escaped as \${...}. The type in the declaration specifies the form in which the program expects the answer: for example, prompt:int result means the result will be an integer.
The second element is tools. A function is marked with the [tool] attribute and a description, for example description("Adds two integers"), and it becomes available to the model. In the example from the announcement, the prompt asks to compute the sum of 20 and 22 using the function Add, and the result is checked with ordinary matching: if result is int number. Prompts work in #:script scripts or in asynchronous functions. This requires a configuration file, kobo.ai.json. Programs in Kobo can also be packaged as skills for external agents, in particular in Visual Studio Code.
For a developer, this means a model call stops being a string inside someone else's client and becomes a typed part of the code that both the compiler and a human reading the code can see.
Syntax and built-in features
Declarations in Kobo are uniform: the kind of entity is indicated with a colon, for example class:Name, function:Type Name(...), property:Type Name, var:Type name, or const:Type name. Modifiers and attributes are written in square brackets, such as [public, static]. Blocks are delimited with curly braces, and the semicolon in simple one-line expressions can often be omitted. The authors call this the principle of declaration consistency: it is easier for both a human and an agent to predict what the next line looks like.
Other features include:
- a variable needs an initial value, and var name = value infers the type automatically; for dynamic binding there is var:dynamic, and for type unions there is var:union(...);
- there are nullable types, the ?. and ?? operators, collections in square brackets, and queries starting with select;
- functions support generics, asynchrony, extensions, delegates, and lambdas;
- the preconditions requires and postconditions ensures let you describe what a function accepts and what it must return, referring to the return value via result;
- the json type is built into the language: it has properties, indexers, and implicit conversions to and from strings, and parse errors throw JsonException.
The requires and ensures contracts are especially useful when an agent writes the code: verifiable conditions on a function's inputs and outputs help catch errors in generated code faster.
Two more principles of the project are reliance on the existing .NET runtime and self-documentation. Comments with the ### prefix can be turned into Markdown documentation with the --markdown flag, and --publish-code saves the source listing.
How to try it, and the limitations
The compiler is installed with the command dotnet tool install --global thinkmine.kobo.lang --prerelease. It runs on top of the .NET 11 SDK. The build, run, and generate commands accept a --source parameter with a path to a file or folder, and the --recursive flag adds subfolders. If the program has a static Main, the result is an executable; if not, it is a library. For .NET projects there is the thinkmine.kobo.lang.buildtools package. Extensions are available for Visual Studio Code and Visual Studio 2026, and the sources are on GitHub.
The limitations are clear. The project is at an early stage, and the authors warn that the syntax may still change. The .NET 11 SDK is required, meaning a recent version of the platform. AI features require configuration, and the announcement does not specify which models and providers are supported.
The practical takeaway is simple. The language is too early for production, but a team building agents on .NET should look at how prompts and tools look at the language level. The idea of verifiable contracts and typed model responses is useful beyond Kobo: it can be carried over into ordinary C# code if prompts and tools are structured according to the same rules.
- Nov 26, 2026MWS Cloud Adds DeepSeek V4.1 Flash: 1 Million Input Tokens for ₽112
- Nov 26, 2026Tencent Open-Sources DFly2: Up to 4.2× Faster Generation on Long Contexts
- Nov 26, 2026Warp taught its AI reviewer to learn from human replies: instruction fixes arrive as PRs
- Nov 26, 2026Anthropic Teaches MCP Servers to Serve Skills Directly to Claude Code
Key Questions Answered
What are the key details on A prompt as part of the program?
The core idea of Kobo is native AI support. A prompt is declared as an ordinary construct: prompt:Type name { ... }. Inside the block is plain text, and values from the program are inserted via ${expression}. If a literal fragment is needed, it is escaped as \${...}. The type in the declaration specifies the form in which the program expects the answer: for example, prompt:int result means the result will be an integer. The second element is tools.
What are the key details on Syntax and built-in features?
Declarations in Kobo are uniform: the kind of entity is indicated with a colon, for example class:Name, function:Type Name(...), property:Type Name, var:Type name, or const:Type name. Modifiers and attributes are written in square brackets, such as [public, static]. Blocks are delimited with curly braces, and the semicolon in simple one-line expressions can often be omitted.
How to try it, and the limitations?
The compiler is installed with the command dotnet tool install --global thinkmine.kobo.lang --prerelease. It runs on top of the .NET 11 SDK. The build, run, and generate commands accept a --source parameter with a path to a file or folder, and the --recursive flag adds subfolders. If the program has a static Main, the result is an executable; if not, it is a library. For .NET projects there is the thinkmine.kobo.lang.buildtools package.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
