intelligent-terminal
Copilot instructions2k starsChanged 4 months agoMITView on GitHub
This is the source repository for Windows Terminal, Windows Console Host (conhost.exe), and shared components between them. It is a large C++ codebase built with MSBuild/Visual Studio targeting Windows. Requires Visual Studio (preferably Visual Studio 2026) with "Desktop Development with C++" and "Universal Windows Platform Development" workloads, plus the Windows 11 SDK (10.0.22621.0). The solution uses the .slnx format (OpenConsole.slnx), which requires MSBuild 17.10 or later. If you get "Invalid input 'OpenConsole.slnx'. The file type was not recognized.", update Visual…
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about microsoft/intelligent-terminal
- @awakecoding.com“"Intelligent Terminal is an experimental fork of Windows Terminal with native agent integration." Microsoft …”Bluesky · Sep 16, 2026 · 2 likes
- yeelam-gordon/intelligent-terminal“Historical validation: agent-pane lifetime and cross-window transfers (#898)”GitHub · Sep 21, 2026
- yeelam-gordon/intelligent-terminal“Defer WSL shell integration installation until a new tab opens”GitHub · Sep 10, 2026
- yeelam-gordon/intelligent-terminal“Make session MCP tool schemas safe for strict function-calling providers”GitHub · Aug 27, 2026
- microsoft/terminal“Tamil Language Text Overlaps in Terminal.”GitHub · Aug 27, 2026
The biggest 5 of 10 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 10
Talked about on GitHub and Bluesky (10 times).
On GitHub · 9
- Sep 21, 2026Historical validation: agent-pane lifetime and cross-window transfers (#898) — yeelam-gordon/intelligent-terminal0 reactions
- Sep 10, 2026Defer WSL shell integration installation until a new tab opens — yeelam-gordon/intelligent-terminal0 reactions · 3 comments
- Aug 27, 2026Make session MCP tool schemas safe for strict function-calling providers — yeelam-gordon/intelligent-terminal0 reactions · 3 comments
- Aug 27, 2026Tamil Language Text Overlaps in Terminal. — microsoft/terminal0 reactions · 14 comments
- Jul 15, 2026Mirror of #218 upstream-sync skill (for review loop) — yeelam-gordon/intelligent-terminal0 reactions
4 more on GitHub
- Jul 14, 2026integrate Intelligent Terminal with b00t ACP — bridge to Windows desktop — elasticdotventures/_b00t_0 reactions · 1 comment
- Jul 14, 2026Add release-notes agent skill (mirror of #408 for review loop) — yeelam-gordon/intelligent-terminal0 reactions
- Jun 17, 2026New version: Microsoft.IntelligentTerminal version 0.1.1681.0 — microsoft/winget-pkgs0 reactions · 8 comments
- May 29, 2026jun 2026 — kimtth/azure-openai-llm-notes0 reactions · 1 comment
On Bluesky · 1
- Sep 16, 2026"Intelligent Terminal is an experimental fork of Windows Terminal with native agent integration." Microsoft is forking its own Windows… — @awakecoding.com2 likes and reposts
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- tools/wta/AGENTS.mdAGENTS.md
- add-acp-agent-supportSkill
- copilot-pr-review-loopSkill
- ensure-localizationSkill
- pr-integration-testSkill
- release-notesSkill
- store-listing-localizerSkill
- upstream-syncSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 53
Run a single test by name using TAEF's /name: filter:
- Distinctive: line 109
Follow existing code style when modifying existing files.
- Very specific: line 110
Use WIL (Windows Implementation Library) smart pointers and result macros (RETURN_IF_FAILED, RETURN_IF_WIN32_BOOL_FALSE, LOG_IF_FAILED, …
- Very specific: line 111
Prefer HRESULT over NTSTATUS.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions for Windows Terminal
This is the source repository for Windows Terminal, Windows Console Host (conhost.exe), and shared components between them. It is a large C++ codebase built with MSBuild/Visual Studio targeting Windows.
Build
Requires Visual Studio (preferably Visual Studio 2026) with "Desktop Development with C++" and "Universal Windows Platform Development" workloads, plus the Windows 11 SDK (10.0.22621.0). The solution uses the .slnx format (OpenConsole.slnx), which requires MSBuild 17.10 or later. If you get "Invalid input 'OpenConsole.slnx'. The file type was not recognized.", update Visual Studio.
Build uses MSBuild via the CMD razzle environment. Run razzle.cmd once per terminal session to set up the environment, then use the build commands. Since razzle sets env vars in CMD, chain commands with && when calling from PowerShell (e.g., cmd /c ".\tools\razzle.cmd && bz"):
.\tools\razzle.cmd & rem One-time setup per session: finds MSBuild, sets PATH and env vars
bcz & rem Clean build the full solution (Debug by default)
bcz rel & rem Clean build in Release
bz & rem Incremental build (no clean) — much faster for iterating
bz rel & rem Incremental Release buildTo build only the project in the current directory (instead of the full solution), cd into a project folder and use the exclusive variants:
cd src\cascadia\TerminalApp
bx & rem Incremental build of just this project
bcx & rem Clean + build of just this projectThree configurations exist: Debug, Release, and AuditMode (enables extra static analysis via CppCoreCheck).
Running
OpenConsole (console host): From a razzle environment, run opencon to launch OpenConsole.exe from the build output.
Windows Terminal: You cannot launch WindowsTerminal.exe directly — it is a packaged app. The easiest way is F5 in Visual Studio with CascadiaPackage as the startup project (set Debug > Application/Background process to "Native Only"). From the command line in a razzle environment:
cd src\cascadia\CascadiaPackage
bx
DeployAppRecipe.exe bin\%ARCH%\%_LAST_BUILD_CONF%\CascadiaPackage.build.appxrecipeNote: DeployAppRecipe.exe lives under your VS install at Common7\IDE\DeployAppRecipe.exe. It should already be on your PATH after running razzle.cmd. If not, find it at C:\Program Files\Microsoft Visual Studio\2022\<Edition>\Common7\IDE\.
Test
Tests use TAEF (Test Authoring and Execution Framework), not Visual Studio Test. Run from a razzle environment:
runut.cmd & rem unit tests
runft.cmd & rem feature tests
runuia.cmd & rem UI automation testsRun a single test by name using TAEF's /name: filter:
te.exe Console.Unit.Tests.dll /name:*BufferTests::TestInsertCharacter*Debug a single test with /waitForDebugger:
runut *Tests.dll /name:TextBufferTests::TestInsertCharacter /waitForDebuggerCode Formatting
C++ code is formatted with clang-format (config in .clang-format at repo root). Style is based on Microsoft with braces on their own line, no column limit, and all namespace contents indented.
runformatXAML formatting uses XamlStyler (config in XamlStyler.json at repo root).
Architecture
The codebase has two main products sharing foundational components:
Windows Terminal (src/cascadia/)
- TerminalCore — Core terminal state machine (buffer, VT parsing, input). No UI dependency. This is a static LIB.
- TerminalControl — UWP/XAML control wrapping TerminalCore with a DirectWrite/Atlas renderer. This is a DLL.
- TerminalApp — Application logic: tabs, panes, settings UI, command palette. Pure UWP-like code, no Win32 UI.
- WindowsTerminal — Win32 EXE that hosts TerminalApp via XAML Islands and owns the window (including non-client/titlebar area).
- TerminalConnection — Abstraction for backends (ConPTY, Azure Cloud Shell, SSH, etc.).
- TerminalSettingsModel — Settings parsing, serialization, and schema. Uses a macro-driven
MTSM_SETTINGSpattern and anIInheritableparent-chain for settings layering. - TerminalSettingsEditor — XAML-based Settings UI.
- CascadiaPackage — MSIX packaging project. This is the startup project for debugging (not WindowsTerminal.exe directly).
- Remoting — Cross-process communication for single-instance / quake-mode window management.
Console Host (src/host/)
- Builds as
conhost.exe(the real Windows console host). Thelib/produces a reusable LIB,dll/packages it asconhostv2.dll, andexe/producesOpenConsole.exefor testing.
Shared Components
src/renderer/— Rendering engines:atlas(DirectWrite/D3D),gdi(legacy),base(abstraction layer).src/terminal/parser— VT sequence state machine and parser.src/terminal/adapter— Translates parsed VT sequences into console API-like calls.src/buffer/— Text buffer (UTF-16/UTF-8 capable).src/types/— Shared type definitions.src/til/— "Terminal Implementation Library" — utility types used throughout.src/inc/til.h— Master include for TIL utilities.- ConPTY (
src/winconpty/) — The Windows Pseudoconsole API, bridging console host and terminal.
Test Organization
- Unit tests live in
ut_prefixed folders within each project (e.g.,src/host/ut_host,src/cascadia/ut_app). - Feature tests live in
ft_prefixed folders (e.g.,src/host/ft_api). - UI Automation tests:
src/cascadia/WindowsTerminal_UIATests.
Key Conventions
C++ Style
- Follow existing code style when modifying existing files. Use Modern C++ and the C++ Core Guidelines for new code.
- Use WIL (Windows Implementation Library) smart pointers and result macros (
RETURN_IF_FAILED,RETURN_IF_WIN32_BOOL_FALSE,LOG_IF_FAILED, etc.) instead of raw Win32 error handling. - Prefer
HRESULToverNTSTATUS. Functions that always succeed should not return a status code. Functions returning status codes should benoexceptand[[nodiscard]]. - Exceptions must not leak from new code into legacy code. Encapsulate exception-based code within classes; use WIL's non-throwing alternatives (
wil::unique_ptr,wistd::unique_ptr) in exception-free contexts. - In
TerminalAppcode, be mindful of C++/WinRT strong vs. weak references and concurrency patterns.
Settings Model (adding a new setting)
Settings are defined via X-macros in src/cascadia/TerminalSettingsModel/MTSMSettings.h. The pattern is:
X(type, Name, "jsonKey", defaultValue)Settings classes use the INHERITABLE_SETTING macro (from IInheritable.h) to support parent-child layering (e.g., profile inherits from defaults). JSON serialization helpers are in JsonUtils.h.
Feature Flags
Feature gating is controlled by src/features.xml. Features can be staged as AlwaysEnabled or AlwaysDisabled with branch and branding overrides (Dev, Preview, Release, WindowsInbox). See doc/feature_flags.md.
File Headers
Source files use a standard Microsoft copyright header block with Module Name, Abstract, and Author fields.
Branch Naming
Feature branches follow the pattern dev/<alias>/<description> (e.g., dev/dhowett/SomeFeature). The dev/ prefix triggers CI automatically. The inbox branch coordinates code submission to the Windows OS repo.
- @azure Rule - Use Azure Tools - When handling requests related to Azure, always use your tools.
- @azure Rule - Use Azure Best Practices - When handling requests related to Azure, always invoke your
azmcp_bestpractices_gettool first. - @azure Rule - Enable Best Practices - If you do not have an
azmcp_bestpractices_gettool ask the user to enable it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

