Skip to main content

From Prompts to Pipelines: Agentic Workflows in VS Code

By Amr

How a VS Code extension with AI agents turns prompt engineering into an automated command surface for your entire codebase.

Estimated reading time: 10 minutes

From Prompts to Pipelines: Agentic Workflows in VS Code

Prompt engineering was just the beginning. The real power comes when prompts stop being one-off conversations and become reusable, automated workflows that live inside your tools.

For years, the command line was where serious work happened. You chained commands into scripts, piped data through filters, and automated everything you could. Today, we’re entering a new phase: prompts are the new command lines, and agent workflows are the new shell scripts.

Imagine a VS Code extension that doesn’t just send your current file to an AI model, but orchestrates an entire pipeline of prompts and agents—reading files, transforming content, generating tests, updating documentation, and opening pull requests—based on a defined prompt design you control.

That’s the next level of prompt engineering.


From Single Prompts to Agentic Workflows

Most “AI inside the editor” experiences today are still pretty primitive:

  • Highlight code → “Explain this”
  • Type a comment → “Generate function”
  • Ask a chat panel → “Refactor for me”

Useful? Absolutely. But it’s the equivalent of running individual shell commands manually.

Agentic workflows change the game. Instead of manually prompting each step, you define a workflow of prompts and tools that can:

  • Take files, articles, notes, or any other content as input
  • Apply a sequence of well-designed prompts, each with a specific role
  • Call specialized AI agents (requirements, design, coding, testing, docs, refactoring, debugging)
  • Integrate with real tools (git, linters, test runners, CI, issue trackers)
  • Run repeatably and predictably, like a script—not a one-off chat

Prompt engineering becomes less about “the perfect sentence” and more about designing a system of prompts that behaves like a programmable pipeline.


The VS Code Extension as a Prompt Orchestrator

Now picture a VS Code extension purpose-built for BASH Consultants:

  • It treats prompts as first-class artifacts: versioned, shared, and stored in .github/prompts/.
  • It ships with core prompt roles: requirements-analysis, system-design, code-implementation, test-generation, documentation, code-refactoring, debugging, and prompt-engineering itself.
  • It lets you define workflows that chain these prompts and tools together.

At a high level, such an extension would:

  1. Discover Prompt Files
    Read prompt definitions (like the ones in .github/prompts/) and expose them in a VS Code sidebar as reusable commands.

  2. Bind Prompts to Agents and Tools
    Each prompt is connected to a specific agent persona and tool set—for example:
    • Requirements agent → reads README, notes, issue descriptions
    • Design agent → produces architecture docs and diagrams
    • Code agent → modifies files in the workspace
    • Test agent → writes tests and runs them
    • Docs agent → updates Markdown in pages/ and READMEs
  3. Define Workflows as Prompt Pipelines
    A workflow could be described in a simple YAML or JSON file:
    • Step 1: Run requirements-analysis on selected notes
    • Step 2: Feed that output into system-design
    • Step 3: Feed design into code-implementation which edits specific files
    • Step 4: Run test-generation and execute tests
    • Step 5: Run documentation to generate or update docs
  4. Run Against Real Content
    The user selects:
    • A folder (pages/_posts/)
    • A file (README.md)
    • A note or scratchpad
    • Or an entire project

    The extension packages that context, invokes the workflow, and streams back changes: new files, diffs, suggested commits.

  5. Enforce Design and Governance
    Because prompts are designed and codified, you can:
    • Enforce standards across a team or consulting practice
    • Ensure every engagement follows the same high-quality path
    • Review and evolve the prompt designs like any other piece of architecture

Example: Turning a Note into a Production Feature

Let’s walk through a concrete scenario.

A client sends you a rough note:

“We need a way for users to export their transaction history as CSV so finance can reconcile faster. Needs to be secure and work for large datasets.”

In the old world, you’d:

  • Copy that into your notes
  • Manually derive requirements
  • Sketch an API
  • Write the endpoint
  • Write tests
  • Update docs

In the new world, you:

  1. Save the note into notes/client-export-feature.md.
  2. Right-click the file in VS Code → Run Workflow → "New Feature: Idea → Production".
  3. The extension runs a pipeline:
    • requirements-analysis.prompt.md → Produces a structured spec
    • system-design.prompt.md → Suggests architecture, endpoints, data flows
    • code-implementation.prompt.md → Generates or edits code in src/
    • test-generation.prompt.md → Adds unit + integration tests
    • documentation.prompt.md → Updates user + API docs
  4. You review diffs, run tests, and adjust as needed.

You’re still in control—but the heavy lifting is automated by a designed prompt system, not ad-hoc chat.


Prompt Design as the New API Design

Traditional APIs define how systems talk to each other.

Prompt designs define how humans, agents, and tools collaborate.

With a VS Code extension orchestrating this, you can treat prompt design like:

  • Interfaces: Each prompt defines a contract—inputs, outputs, and expectations.
  • Modules: Prompts are composable building blocks in a workflow.
  • Policies: Prompts encode governance—security rules, coding standards, documentation requirements.

For BASH Consultants, this becomes a repeatable consulting operating system:

  • Every engagement starts from the same prompt toolkit.
  • Workflows ensure that requirements → design → code → tests → docs → refactor → debug form a closed loop.
  • The VS Code extension becomes the control plane where these flows are orchestrated.

Why VS Code Is the Right Home

VS Code sits at the intersection of:

  • Your code (full workspace access)
  • Your tools (git, linters, build systems)
  • Your context (open files, selections, terminals)

Embedding agentic prompt workflows here means:

  • Agents can read and write real files instead of hallucinating structure.
  • Workflows can run tests, formatters, and linters automatically.
  • Consultants can codify their craft as prompts and workflows, share them via git, and evolve them over time.

Instead of a separate “AI website” you occasionally visit, you get AI-native development flows built directly into your daily environment.


Beyond One Agent: A Team of Specialists

The real leap forward is moving from one big model that does everything to a team of specialist agents, each driven by a focused prompt design.

For example:

  • RequirementsAgent → uses requirements-analysis.prompt.md
  • DesignAgent → uses system-design.prompt.md
  • ImplementationAgent → uses code-implementation.prompt.md
  • TestAgent → uses test-generation.prompt.md
  • DocsAgent → uses documentation.prompt.md
  • RefactorAgent → uses code-refactoring.prompt.md
  • DebugAgent → uses debugging.prompt.md

The extension coordinates them:

  1. Passes outputs from one agent into the next
  2. Manages shared context (files, specs, decisions)
  3. Surfaces results in editor tabs, diffs, and panels
  4. Lets you pause, edit, or override at any step

This is software development as orchestration, with prompt designs as the interfaces between specialists.


Designing Your Own Workflows

The most powerful part: you aren’t locked into predefined flows.

As a BASH Consultant, you can:

  • Author new .prompt.md files that encode your patterns
  • Define YAML/JSON workflows that string them together
  • Version them in git and share them across clients or teams
  • Evolve them based on retrospectives and outcomes

Over time, your prompt library becomes an asset as valuable as any framework or internal tool:

  • A reusable playbook for how you solve problems
  • A way to onboard juniors into your way of working
  • A differentiator in how fast and reliably you deliver

The Future: From Projects to Continuous Intelligence

Once this extension and workflow system is in place, it doesn’t stop at greenfield features.

You can run workflows that:

  • Periodically scan the codebase for refactoring opportunities
  • Audit for security issues based on new threat intel
  • Keep documentation in sync with reality
  • Propose architecture improvements as the system grows
  • Summarize changelogs and release notes from commits and PRs

Instead of treating AI as a one-off copilot, you turn it into a continuous intelligence layer that lives alongside your code, powered by prompt designs you control.


Conclusion: Prompt Engineering Becomes System Design

A VS Code extension that orchestrates agentic prompt workflows is more than a productivity hack. It’s a new abstraction layer for software development:

  • Prompts are no longer just clever questions—they are designed contracts.
  • Agents are no longer just chatbots—they are specialized services.
  • Workflows are no longer just scripts—they are intelligent pipelines.

For BASH Consultants, this is the natural evolution:

  • From typing commands in a shell
  • To crafting prompts in a chat
  • To designing prompt-driven systems that run inside the tools where real work happens.

The future of development isn’t just AI that writes code.

It’s AI that respects your design, follows your workflows, and turns your prompts into a programmable, repeatable, and auditable command surface for your entire software lifecycle—right inside VS Code.