amplifier-bundle-ts-dev

January 13, 2026 · View on GitHub

Comprehensive TypeScript/JavaScript development tools for Amplifier - the "TypeScript/JavaScript Development Home" in the Amplifier ecosystem.

What's Included

ComponentDescription
Tool Modulets_check - agent-callable tool for quality checks
Hook ModuleAutomatic checking on file write/edit events
LSP IntegrationIncludes lsp-typescript for code intelligence
Shared LibraryCore checking logic used by tool and hook modules

Expert Agents

AgentExpertiseUse For
ts-devGeneral TypeScript/JavaScriptCode quality, type errors, imports
react-devReact & hooksComponent patterns, re-renders, state management
nextjs-devNext.js App RouterSSR/SSG, hydration, caching, Server Components
node-devNode.js backendAsync patterns, security, APIs, error handling

Quick Start

As Amplifier Bundle

# In your bundle.yaml
includes:
  - bundle: git+https://github.com/microsoft/amplifier-bundle-ts-dev@main

This gives you:

  • TypeScript/JavaScript LSP (code intelligence)
  • TypeScript/JavaScript quality checks (tool + hook)
  • All four expert agents (ts-dev, react-dev, nextjs-dev, node-dev)

Checks Performed

CheckToolWhat It Catches
LintESLintBugs, imports, style, React rules
FormatPrettierCode formatting
TypestscTypeScript type errors
StubscustomTODOs, console.log, 'any' types, placeholders

Agent Usage

General TypeScript/JavaScript (ts-dev)

> @ts-dev Check src/utils.ts for issues
> @ts-dev Help me fix these type errors

React Development (react-dev)

> @react-dev Why does this component keep re-rendering?
> @react-dev Extract this logic into a custom hook
> @react-dev Review this component for hooks best practices

Specialties:

  • Hooks patterns and rules
  • Re-render debugging
  • State management guidance
  • Component composition
  • Testing with React Testing Library

Next.js Development (nextjs-dev)

> @nextjs-dev I'm getting a hydration mismatch on this page
> @nextjs-dev What caching strategy should I use for this API?
> @nextjs-dev Help me migrate this pages/ route to app/ router

Specialties:

  • App Router file conventions
  • Server Components vs Client Components
  • Data fetching and caching strategies
  • Hydration error diagnosis
  • SSR/SSG/ISR guidance

Node.js Backend (node-dev)

> @node-dev Review this Express app for security issues
> @node-dev Help me design proper error handling
> @node-dev Why is this async function not working correctly?

Specialties:

  • Async patterns and event loop
  • Security (OWASP Top 10)
  • Error handling middleware
  • API design (REST)
  • Performance optimization

Configuration

Configure via package.json:

{
  "amplifier-ts-dev": {
    "enable_eslint": true,
    "enable_prettier": true,
    "enable_tsc": true,
    "enable_stub_check": true,
    "exclude_patterns": [
      "node_modules/**",
      "dist/**",
      "build/**",
      ".next/**"
    ]
  }
}

Hook configuration:

{
  "amplifier-ts-dev": {
    "hook": {
      "enabled": true,
      "file_patterns": ["*.ts", "*.tsx", "*.js", "*.jsx"],
      "report_level": "warning",
      "auto_inject": true
    }
  }
}

Hook Behavior

When enabled, the hook automatically runs checks after TypeScript/JavaScript file edits:

  1. You write/edit a .ts, .tsx, .js, or .jsx file
  2. Hook triggers and runs ESLint, Prettier, and tsc checks
  3. Issues are injected into agent context
  4. Agent is aware of problems immediately

This creates a tight feedback loop - issues are caught as you work, not at the end.

Architecture

┌─────────────────────────────────────────────────────────────────────────┐
│                    amplifier-bundle-ts-dev                              │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                         │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐    │
│  │   ts-dev    │  │  react-dev  │  │ nextjs-dev  │  │  node-dev   │    │
│  │   Agent     │  │   Agent     │  │   Agent     │  │   Agent     │    │
│  └──────┬──────┘  └──────┬──────┘  └──────┬──────┘  └──────┬──────┘    │
│         │                │                │                │           │
│         └────────────────┴────────┬───────┴────────────────┘           │
│                                   │                                     │
│         ┌─────────────────────────┼─────────────────────────┐          │
│         │                         │                         │          │
│  ┌──────┴──────┐  ┌───────────────┴───────────────┐  ┌──────┴──────┐   │
│  │ Tool Module │  │        SHARED CORE            │  │ Hook Module │   │
│  │  ts_check   │  │ checker.py, config.py, models │  │ auto-check  │   │
│  └─────────────┘  └───────────────────────────────┘  └─────────────┘   │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────┤
│  INCLUDES: lsp-typescript (code intelligence)                           │
└─────────────────────────────────────────────────────────────────────────┘

Tool Prerequisites

The checker uses these tools (install as needed):

# Local installation (recommended)
npm install -D eslint prettier typescript

# For React projects
npm install -D eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin \
  eslint-plugin-react eslint-plugin-react-hooks

# Global installation
npm install -g eslint prettier typescript

Context Files

Each agent loads specialized knowledge:

FileContent
TS_BEST_PRACTICES.mdTypeScript/JavaScript development philosophy
REACT_PATTERNS.mdReact hooks, components, state, performance
NEXTJS_PATTERNS.mdApp Router, Server Components, caching
NODEJS_PATTERNS.mdAsync, error handling, security, APIs

Development Philosophy

This bundle embodies type-safe pragmatism:

  1. Type safety as a feature - Use TypeScript's type system to catch bugs early
  2. Explicit over implicit - Clear code beats clever code
  3. Modern patterns first - ES modules, async/await, optional chaining
  4. Framework-aware - Specialized guidance for React, Next.js, Node.js
  5. Clean imports - Organized, no circular dependencies

See TS_BEST_PRACTICES.md for the full guide.

Future Roadmap

PhaseFeatureStatus
MVPESLint, Prettier, tsc, stubsDone
AgentsFramework-specific expertsDone
TestingJest/Vitest integrationPlanned
BundlingWebpack/Vite analysisPlanned
Dependenciesnpm-audit, outdated checksPlanned
PerformanceBundle size analysisPlanned

Contributing

Note

This project is not currently accepting external contributions, but we're actively working toward opening this up. We value community input and look forward to collaborating in the future. For now, feel free to fork and experiment!

Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit Contributor License Agreements.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.