agentleFS
MicrosoftKnown publishermicrosoft/intelligent-terminal/AGENTS.md

intelligent-terminal

AGENTS.md2k starsChanged 4 months agoMITView on GitHub

Intelligent Terminal is a Windows Terminal fork that adds first-class AI agent workflows. The inherited Windows Terminal build, architecture, and C++ conventions are documented in .github/copilot-instructions.md; this file contains only the fork-specific context. - WTA (tools/wta/) is the Rust orchestrator. - ACP means Agent Client Protocol. wta-master owns a pool of agent CLI processes keyed by agent identity, execution source, and command; helpers using the same key share one process and multiplex sessions through it. Installed, policy-allowed native host agents…

Trending

Quiet since September.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 1 mentionJul 2026: 3 mentionsAug 2026: 2 mentionsSep 2026: 3 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/intelligent-terminal repository that our weekly crawl found: only 10 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about microsoft/intelligent-terminal

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

4 more on GitHub

The file

We split this AGENTS.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
  1. Very specific:

    Always use the explicit Windows target.

    line 120
  2. Distinctive:

    After C++, XAML, IDL, packaging, resource, or mixed Debug changes, deploy with:

    line 144
  3. Very specific:

    Do not perform a full package deployment for a wta.exe-only change.

    line 151
  4. Very specific:

    Use WTA_LOG=debug or WTA_LOG=trace for additional Rust tracing.

    line 184

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Intelligent Terminal

Intelligent Terminal is a Windows Terminal fork that adds first-class AI agent workflows. The inherited Windows Terminal build, architecture, and C++ conventions are documented in .github/copilot-instructions.md; this file contains only the fork-specific context.

Architecture

WindowsTerminal.exe
  |-- TerminalProtocolComServer (COM, discovered through WT_COM_CLSID)
  |-- SharedWta --> wta-master --> agent CLI pool (ACP over stdio)
  +-- one wta-helper pane per tab
                       |
                       +-- helper/master ACP over a named pipe
                       +-- session-scoped MCP tools

Agent or human CLI --> wta/wtcli --> COM IProtocolServer --> Windows Terminal
  • WTA (tools/wta/) is the Rust orchestrator.
  • ACP means Agent Client Protocol. wta-master owns a pool of agent CLI processes keyed by agent identity, execution source, and command; helpers using the same key share one process and multiplex sessions through it. Installed, policy-allowed native host agents other than Gemini initialize in the background at master startup and remain resident. Gemini is excluded from automatic sidebar discovery; explicit Gemini and other selections initialize on demand.
  • WT Protocol is the terminal-control boundary. wtcli.exe activates IProtocolServer through the package COM registration.
  • Session MCP exposes run_command_in_current_shell, create_workspace, delegate_task_in_new_workspace, and request_user_input. It routes requests to the owning helper and never executes terminal actions itself.
  • Agent panes are ordinary ConptyConnection panes hosting wta-helper; C++ does not speak ACP.

See doc/specs/Multi-window-agent-pane.md for the detailed lifecycle and tools/wta/AGENTS.md for WTA-specific implementation rules.

Supported agents and settings

Built-in ACP and delegation providers are Copilot, Claude, Codex, Gemini, and OpenCode. Custom providers use a custom:<name> ID plus the matching custom command setting.

{
    "acpAgent": "copilot",
    "acpModel": "",
    "acpCustomCommand": "",
    "delegateAgent": "copilot",
    "delegateModel": "",
    "delegateCustomCommand": "",
    "agentPanePosition": "bottom",
    "autoErrorDetectionEnabled": true,
    "autoFixEnabled": false,
    "aiIntegration.coordinator.enabled": false,
    "aiIntegration.coordinator.commandline": "wta",
    "aiIntegration.coordinator.profile": "{fd19208a-412b-4857-8a2d-9ca592b4b16e}",
    "aiIntegration.confirmation.readOperations": "auto",
    "aiIntegration.confirmation.createOperations": "auto",
    "aiIntegration.confirmation.inputOperations": "auto"
}

The settings model is authoritative; check src/cascadia/TerminalSettingsModel/MTSMSettings.h and src/cascadia/inc/AgentRegistry.h before documenting defaults or providers.

User-facing behavior

TriggerBehavior
>Toggle AI assistantStash or restore the current tab's agent pane
?<prompt>Delegate a prompt through WTA
?No-op
&<prompt>Reserved background-task entry point; currently a no-op

Important invariants:

  • Each eligible tab pre-warms one stashed helper. Skip pre-warm when WTA is unavailable, policy blocks all agents, the tab has no active terminal, or a dragged-in agent pane already exists.
  • Toggling an agent pane stashes/restores it; it does not destroy the helper, ACP session, or chat history.
  • Per-tab events carry tab and window identity. Route responses to the owning tab instead of broadcasting across panes or windows.
  • Autofix requires a connected helper session. Failures received before the session connects are not replayed later.
  • Terminal mutation requested by an agent goes through the confirmation-gated session MCP action path. Agent-owned shell tools are a separate execution path.

Key files

AreaPath
Terminal integrationsrc/cascadia/TerminalApp/TerminalPage.cpp
Protocol bridgesrc/cascadia/TerminalApp/TerminalPage.Protocol.cpp
Tab lifecycle and pre-warmsrc/cascadia/TerminalApp/TabManagement.cpp
Agent pane chromesrc/cascadia/TerminalApp/AgentPaneContent.cpp
Stash/restoresrc/cascadia/TerminalApp/Tab.cpp
Shared WTA processsrc/cascadia/TerminalApp/SharedWta.cpp
COM serversrc/cascadia/WindowsTerminal/TerminalProtocolComServer.cpp
Protocol IDLsrc/cascadia/TerminalProtocol/TerminalProtocol.idl
Agent registrysrc/cascadia/inc/AgentRegistry.h
Settingssrc/cascadia/TerminalSettingsModel/MTSMSettings.h
WTA master/helpertools/wta/src/master/mod.rs, tools/wta/src/helper/mod.rs
Runtime agent prompttools/wta/prompts/terminal-agent.md

Build and validation

WTA and Terminal use separate build systems. Build WTA before packaging changes that need a refreshed wta.exe.

WTA

Always use the explicit Windows target. CascadiaPackage.wapproj prefers this output over the host-target fallback, so mixing target layouts can silently deploy a stale binary.

cargo build --target x86_64-pc-windows-msvc --manifest-path tools/wta/Cargo.toml
cargo test --target x86_64-pc-windows-msvc --manifest-path tools/wta/Cargo.toml

Output: tools/wta/target/x86_64-pc-windows-msvc/debug/wta.exe.

A live WTA process may lock the output. Stop only processes whose executable path exactly matches the binary being rebuilt; never terminate every wta.exe or WindowsTerminal.exe by name.

Terminal

cmd.exe /c "tools\razzle.cmd && bcz no_clean"

For Release use bcz rel no_clean. For a project-local incremental build, enter the project directory in the same razzle CMD session and use bx.

After C++, XAML, IDL, packaging, resource, or mixed Debug changes, deploy with:

.\build\scripts\Invoke-IntelligentTerminalDebugDeployment.ps1 `
    -AppxRecipePath src\cascadia\CascadiaPackage\bin\x64\Debug\CascadiaPackage.build.appxrecipe

Do not perform a full package deployment for a wta.exe-only change. Static assets such as wt-agent-hooks do require packaging.

Runtime data and diagnostics

Packaged state and cache data are package-private:

  • State: Packages\<PFN>\LocalState\IntelligentTerminal
  • Cache/logs: Packages\<PFN>\LocalCache\Local\IntelligentTerminal
  • Logs: logs\<package-version>\

Unpackaged development falls back to %LOCALAPPDATA%\IntelligentTerminal. Resolve paths through the shared runtime path helpers; do not hard-code %TEMP% or a bare LocalAppData path.

Primary logs are:

  • wta-main_master.<UTC-date>.log
  • wta-main_helper-{pid}.<UTC-date>.log
  • wta-cli.<UTC-date>.log
  • wta-delegate.<UTC-date>.log
  • wta-probe.<UTC-date>.log
  • wta-install-hooks.<UTC-date>.log
  • wta-panic.<UTC-date>.log
  • wta-ensure-host.log
  • wta-acp-debug.log
  • terminal-agent-pane.log

Rust WTA streams with dated names rotate daily and retain up to three matching files. If a daily writer cannot initialize, that stream uses the fixed wta-<stream>.log name in the same directory. Per-PID helper logs are also reclaimed after three days.

Use WTA_LOG=debug or WTA_LOG=trace for additional Rust tracing. See tools/wta/README.md for current diagnostics and CLI usage.

Focused design references

  • Multi-window helper/master lifecycle: doc/specs/Multi-window-agent-pane.md
  • Session tracking: doc/specs/hybrid-agent-session-tracking.md
  • Security boundaries: doc/security-model.md
  • Installer: doc/building-installer.md
  • WTA customization: tools/wta/CUSTOMIZATION.md

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.