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…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository11 other files it gives its agents.
- ts/packages/agents/onboarding/AGENTS.mdAGENTS.md
- ts/packages/typeagent-core/AGENTS.mdAGENTS.md
- ts/CLAUDE.mdCLAUDE.md
- ts/examples/planValidationDemo/CLAUDE.mdCLAUDE.md
- ts/packages/agents/powershell/CLAUDE.mdCLAUDE.md
- ts/packages/agents/taskflow/CLAUDE.mdCLAUDE.md
- dotnet/autoShell/.github/copilot-instructions.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- typeagent-memorySkill
- typeagent-macrosSkill
- typeagent-setupSkill
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
- Distinctive: line 36
When adding a feature here:
- Very specific: line 38
Put the real work in @typeagent/core, reachable over the Studio service channel (and proxied by a thin studio agent action).
- Very specific: line 45
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 …
≈ “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.
Files
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 atypeagent-studio serveCLI). 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 thinstudioagent) and a hybrid driver use the same runtime. SeeDESIGN.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 viaensureStudioService, ortypeagent-studio serve); thestudioagent 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 thinstudioagent 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 thinstudioagent 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 withnode:test) + a thinTreeDataProvider/ 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
studioagent), and the UI renders it. SeeSTUDIO-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 Windowesbuild 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.
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.

