agentleFS
MicrosoftKnown publishermicrosoft/TypeAgent/ts/packages/typeagent-studio/AGENTS.md

TypeAgent / typeagent-studio

AGENTS.md745 starsChanged 5 months agoMITView on GitHub

For AI agents and developers working in this package. typeagent-studio is the bespoke VS Code extension surface of TypeAgent Studio: tree views (Sandboxes, Corpora, Event Log, Collisions), a health status bar, commands, and webviews (Impact Report). It is a thin client of the standalone, per-workspace Studio service — the rich VS Code view over a runtime it does not own. (The studio agent is also a thin client of that same service, for the chat/MCP surface.) This package renders and…

The file

We split this AGENTS.md into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 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.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When adding a feature here:

    line 36
  2. Very specific:

    Put the real work in @typeagent/core, reachable over the Studio service channel (and proxied by a thin studio agent action).

    line 38
  3. Very specific:

    If a capability would only be reachable by clicking in the UI, that's a bug in the layering: it must be a typed runtime method (also …

    line 45

≈ “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

AGENTS.md — typeagent-studio (VS Code extension)

For AI agents and developers working in this package.

What this package is

typeagent-studio is the bespoke VS Code extension surface of TypeAgent Studio: tree views (Sandboxes, Corpora, Event Log, Collisions), a health status bar, commands, and webviews (Impact Report). It is a thin client of the standalone, per-workspace Studio service — the rich VS Code view over a runtime it does not own. (The studio agent is also a thin client of that same service, for the chat/MCP surface.)

Design principle you MUST preserve — thin client over the Studio service

This package renders and orchestrates UI; it does not own capability logic and it does not host the Studio runtime. Capability logic lives in @typeagent/core; the runtime runs once per workspace, in a standalone Studio service (launched by this extension or a typeagent-studio serve CLI). This extension is a client of that service over the typed result/event channel — serving the human (this UI) while an AI agent (MCP, via the thin studio agent) and a hybrid driver use the same runtime. See DESIGN.md §3.0 and §3.5.

Runtime placement (P-1.6 done; onboarding channelized). The runtime lives in the standalone studio-service (launched/attached by this extension via ensureStudioService, or typeagent-studio serve); the studio agent hosts a registry + proxies to it. This extension routes all its live surfaces — sandboxes, event log, collisions, corpus, health, feedback, replay, and now onboarding (the New Agent wizard + command palette, F1.x) — through the service channel. There is no in-process runtime anymore; do not add new in-process runtime/capability logic here. New capability is a typed runtime method reachable over the Studio service channel (and surfaced as a thin studio agent action for chat/MCP), which this extension then renders.

When adding a feature here:

  • Put the real work in @typeagent/core, reachable over the Studio service channel (and proxied by a thin studio agent action); keep this layer to presentation, command wiring, and VS Code glue. The view calls the service and renders the typed result.
  • Mirror the existing split: a vscode-free presentation module (*Presentation.ts, unit-tested with node:test) + a thin TreeDataProvider / command adapter. New views/commands should follow this.
  • If a capability would only be reachable by clicking in the UI, that's a bug in the layering: it must be a typed runtime method (also reachable over MCP/CLI via the studio agent), and the UI renders it. See STUDIO-AGENT.md.
  • File-writing commands must be explicit/confirmed, never fire-on-selection (see the corpus seed action + its confirmation).

Build, test, run

From ts/:

pnpm --filter typeagent-studio build        # esbuild bundles core into dist/extension.js
pnpm --filter typeagent-studio test:local   # tsx + node:test
cd packages/typeagent-studio && pnpm deploy:local   # package + install VSIX; then Reload Window

esbuild inlines @typeagent/core, so core changes need a studio rebuild to appear in the extension. npx tsc -b reports pre-existing CJS/ESM (TS1479) and a few unrelated errors — the package builds via esbuild, not tsc.

Where the design lives

  • DESIGN.md §3.0 — headless-core / thin-presenter principle; §3.5 — runtime placement (standalone per-workspace Studio service).
  • USER-STORY.md — human / AI / hybrid interaction modes.
  • STATUS.md — current state, known issues, next slices.

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.