Dev server support allows the Kiro agent to run background processes to access long-running terminal commands and background processes. This transforms your development workflow by eliminating context switching and manual terminal management. Instead of juggling multiple terminal windows, starting servers manually, and constantly checking build output, you can ask Kiro to handle it all. Start a dev server, continue your conversation about implementing features, and ask Kiro to validate compilation—all without leaving the chat. You stay focused on building, not managing infrastructure.
When you ask Kiro to run a long-running command, it automatically:
Background processes run in dedicated terminals that are visible in your terminal list, show the command they're running (e.g., "Kiro: npm run dev"), and persist until you stop them or close Kiro.
Simply ask Kiro to run a long-running command in natural language:
Kiro recognizes common long-running commands and automatically manages them as background processes. The process starts immediately in a dedicated terminal, and you can continue your conversation with Kiro while it runs.
If you ask Kiro to start a process that's already running (same command in the same directory), it reuses the existing process instead of creating a duplicate. This prevents multiple instances of the same server or watcher from conflicting with each other.
You can ask Kiro to check on your background processes at any time:
Kiro reads the terminal output and can help you:
To see all your running background processes:
Kiro shows you each process with its command, working directory, and current status.
When you're done with a background process:
Kiro terminates the process and closes its terminal, cleaning up resources.
You can configure Kiro to automatically check background processes as part of your workflow using steering rules. For example:
# Development Workflow After making code changes: 1. Always check the output of the `npm run dev` process 2. Look for compilation errors or warnings 3. If errors exist, suggest fixes before proceeding
This ensures Kiro validates your changes against the dev server automatically, catching errors faster.
Background processes work alongside Kiro's code diagnostics tool to give you complete validation coverage. While your dev server or build watcher catches runtime compilation issues, diagnostics surface static analysis problems like type errors and lint warnings—all in one conversation.
Ask Kiro to check both at once: "Check the build watcher output and show me any TypeScript errors"
This dual-layer approach means you catch issues faster without switching between terminals and your IDE's problems panel. Everything you need to validate your changes is available through chat.
Development servers - Keep your Next.js, React, or other framework dev server running while you code. Check output after changes to confirm successful compilation.
Build watchers - Run webpack, TypeScript, or other build tools in watch mode. Validate that your changes compile without errors.
Test runners - Start test watchers to get continuous feedback. Review results anytime to see which tests pass or fail.
If a background process fails to start, check the terminal output for error messages, verify the command is correct, and ensure dependencies are installed.
If Kiro can't read process output, make sure the process is still running by checking your terminal list.
If you have port conflicts, list all running processes to identify duplicates and stop unnecessary ones. Kiro automatically reuses existing processes when possible.
Dev Servers