neuron-explorer
Qwen3.5‑4B 전용 조향형 뉴런 탐색기, 모든 MLP 뉴런을 밀어 결과를 보관·탐색
Calor는 AI 코딩 에이전트를 위해 설계된 프로그래밍 언어로 C#을 통해 .NET으로 컴파일합니다 손쉽게 지능형 최적화 에이전트를 구축합니다
Calor is a programming language designed for AI coding agents, compiling to .NET via C#. Build intelligent, optimized agents with ease.
개발 도구C# · PythonGitHub @juanmicrosoft온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
Calor - Coding Agent Language for Optimized Reasoning
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
Calor
Coding Agent Language for Optimized Reasoning
A programming language designed specifically for AI coding agents, compiling to .NET via C# emission.
AI coding agents are transforming software development, but they're forced to work with languages designed for humans. This creates a fundamental mismatch:
AI agents need to understand code semantically — what it does, what side effects it has, what contracts it upholds — but traditional languages hide this information behind syntax that requires deep semantic analysis to parse.README 전문 보기 ↗Coding Agent Language for Optimized Reasoning
A programming language designed specifically for AI coding agents, compiling to .NET via C# emission.
AI coding agents are transforming software development, but they're forced to work with languages designed for humans. This creates a fundamental mismatch:
AI agents need to understand code semantically — what it does, what side effects it has, what contracts it upholds — but traditional languages hide this information behind syntax that requires deep semantic analysis to parse.
Calor asks: What if we designed a language from the ground up for AI agents?
When an AI agent reads code, it needs answers to specific questions:
Traditional languages make agents infer these answers through complex analysis. Calor makes them explicit in the syntax.
| Principle | How Calor Implements It | Agent Benefit |
|---|---|---|
| Explicit over implicit | Effects declared with §E{cw, fs:r, net:rw} | Know side effects without reading implementation |
| Contracts are code | First-class §Q (requires) and §S (ensures) | Generate tests from specs, verify correctness |
| Stable IDs when you want them | §F{f001:Main}, §L{l001:i:1:100:1} (IDs are optional) | Precise references that survive refactoring |
| Indent-based blocks | Python-style indentation — no closer tags to mismatch | Lower edit cost (~16% fewer tokens in our studies) |
| Machine-readable semantics | Lisp-style operators (+ a b) | Symbolic manipulation without text parsing |
Calor — Everything explicit:
§F{Square:pub}
§I{i32:x}
§O{i32}
§Q (>= x 0)
§S (>= result 0)
§R (* x x)
C# — Contracts buried in implementation:
public static int Square(int x)
{
if (!(x >= 0))
throw new ArgumentException("Precondition failed");
var result = x * x;
if (!(result >= 0))
throw new InvalidOperationException("Postcondition failed");
return result;
}
What Calor tells the agent directly:
§F{f002:Square:pub} if you need a stable handle for tooling; otherwise just §F{Square:pub}§Q): x >= 0§S): result >= 0§E declaration)What C# requires the agent to infer:
Calor deliberately trades token efficiency for semantic explicitness:
C#: return a + b; // 4 tokens, implicit semantics
Calor: §R (+ a b) // Explicit Lisp-style operations
This tradeoff pays off when:
Calor shows measurable advantages in AI agent comprehension, error detection, edit precision, and refactoring stability. C# wins on token efficiency, reflecting a fundamental tradeoff: explicit semantics require more tokens but enable better agent reasoning.
See benchmark methodology and results →
# Install the compiler
dotnet tool install -g calor
# Initialize for Claude Code (run in a folder with a C# project or solution)
calor init --ai claude
# Initialize for OpenAI Codex CLI
calor init --ai codex
# Initialize for Google Gemini CLI
calor init --ai gemini
# Initialize for GitHub Copilot (with MCP tools)
calor init --ai github
# Compile Calor to C#
calor --input program.calr --output program.g.cs
Calor ships a first-class language server (calor lsp) speaking the standard
Language Server Protocol over stdio: diagnostics, go-to-definition, references,
symbol-exact rename, formatting, and semantic tokens. Any LSP-capable editor can
use it — see the LSP docs for how to point your editor at it.
VS Code extension support was withdrawn after v0.13.1. The extension was
distributed as platform-specific VSIX assets on each release; that channel is
gone, along with the editors/vscode tree and its publishing workflows. The
Marketplace listing was already frozen at v0.3.8 and is not maintained. The
language server itself is unaffected and remains supported.
| Feature | Claude Code | Gemini CLI | Codex CLI | GitHub Copilot |
|---|---|---|---|---|
| Project instructions | CLAUDE.md | GEMINI.md | AGENTS.md | copilot-instructions.md |
| Skill invocation | /calor | @calor | $calor | Reference skill name |
| MCP tools | ✓ (~/.claude.json) | ✓ (.gemini/settings.json) | ✓ (.codex/config.toml) | ✓ (.vscode/mcp.json) |
| Enforcement | Hooks (enforced) | Hooks (enforced) | Guidance + MCP tools | Guidance + MCP tools |
§M{m001:Hello}
§F{f001:Main:pub}
§O{void}
§E{cw}
§P "Hello from Calor!"
Save as hello.calr, then:
calor --input hello.calr --output hello.g.cs
git clone https://github.com/juanmicrosoft/calor.git
cd calor
bash src/Calor.Compiler/scripts/download-z3.sh
dotnet restore --locked-mode
dotnet build --no-restore
# Run the sample
dotnet run --project src/Calor.Compiler -- \
--input samples/HelloWorld/hello.calr \
--output samples/HelloWorld/hello.g.cs
dotnet run --project samples/HelloWorld
Calor ships an MCP (Model Context Protocol) server that gives AI agents direct access to the compiler. Run calor init --ai <agent> to auto-configure it, or start it manually:
calor mcp
The server exposes 19 tools across five categories:
| Category | Tools |
|---|---|
| Compilation & Verification | calor_compile, calor_typecheck, calor_verify, calor_verify_contracts, calor_check |
| Code Navigation (LSP-style) | calor_goto_definition, calor_find_references, calor_symbol_info, calor_document_outline, calor_find_symbol |
| Analysis & Migration | calor_analyze, calor_assess, calor_convert, calor_compile_check_compat |
| Code Quality | calor_lint, calor_format, calor_validate_snippet |
| Syntax Help | calor_syntax_help, calor_syntax_lookup, calor_ids |
See calor mcp for the complete reference.
calor commands including mcp, analyze, convert, and migrateCalor is an experiment in language design for AI agents. We welcome contributions, especially:
See the evaluation framework in tests/Calor.Evaluation/ for how we measure progress.