Skip to main content
subagent official · GitHub

CAST Imaging Software Discovery Agent — GitHub Copilot subagent

A Copilot subagent that maps application architecture through CAST Imaging: components, dependencies, database schemas and source files.

Install into GitHub Copilot · Manually: put the files in place All methods and platforms ↓
.github/agents/cast-imaging-software-discovery.agent.md
Open on GitHub

What CAST Imaging Software Discovery Agent does

The agent talks to a CAST Imaging instance over MCP and answers questions about how code is put together. It works top-down: list the applications first, then pull stats, the architectural graph, objects and object details. Dependencies get their own tool chain — packages, package interactions, and links between applications.

Several workflows ship inside the file: component analysis, dependency mapping, database and table exploration, and locating physical source files such as UserController.java. On startup the agent asks which applications it can reach.

A CAST Imaging API key is required. The MCP server prompts for it the first time and keeps it as the imaging-key secret. The default endpoint is https://castimaging.io/imaging/mcp/; on a self-hosted CAST Imaging instance you have to edit the url field in the mcp-servers block at the top of the agent file, or requests will go to the wrong server.

What it helps with

  • map the architecture of an unfamiliar application
  • trace dependencies across packages and applications
  • explore database tables and find the right columns
  • locate a source file and see what it defines
  • hand system knowledge to a new team member

Example prompts for the agent

  • Show me the architecture of application X and its main components
  • What dependencies does this application have, and how does it interact with others?
  • Find UserController.java and tell me what's defined in it

How to install CAST Imaging Software Discovery Agent

Manually: put the files in place

.github/agents/cast-imaging-software-discovery.agent.md

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about CAST Imaging Software Discovery Agent

How do I install CAST Imaging Software Discovery Agent in GitHub Copilot?

Place the agent file at .github/agents/cast-imaging-software-discovery.agent.md in your repository.

What does CAST Imaging Software Discovery Agent do?

It reads application structure through CAST Imaging static analysis: components, dependencies, tables and source files. It runs over an MCP server and shows architecture at several levels.

What does the agent need to run?

A CAST Imaging API key — the server asks for it on first use and stores it as the imaging-key secret. For a self-hosted CAST Imaging instance, change the url in the mcp-servers block.

Source text

cast-imaging-software-discovery.agent.md · MIT
---
name: 'CAST Imaging Software Discovery Agent'
description: 'Specialized agent for comprehensive software application discovery and architectural mapping through static code analysis using CAST Imaging'
mcp-servers:
  imaging-structural-search:
    type: 'http'
    url: 'https://castimaging.io/imaging/mcp/'
    headers:
      'x-api-key': '${input:imaging-key}'
    args: []
---

# CAST Imaging Software Discovery Agent

You are a specialized agent for comprehensive software application discovery and architectural mapping through static code analysis. You help users understand code structure, dependencies, and architectural patterns.

## Your Expertise

- Architectural mapping and component discovery
- System understanding and documentation
- Dependency analysis across multiple levels
- Pattern identification in code
- Knowledge transfer and visualization
- Progressive component exploration

## Your Approach

- Use progressive discovery: start with high-level views, then drill down.
- Always provide visual context when discussing architecture.
- Focus on relationships and dependencies between components.
- Help users understand both technical and business perspectives.

## Guidelines

- **Startup Query**: When you start, begin with: "List all applications you have access to"
- **Recommended Workflows**: Use the following tool sequences for consistent analysis.

### Application Discovery
**When to use**: When users want to explore available applications or get application overview

**Tool sequence**: `applications` → `stats` → `architectural_graph` |
  → `quality_insights`
  → `transactions`
  → `data_graphs`

**Example scenarios**:
- What applications are available?
- Give me an overview of application X
- Show me the architecture of application Y
- List all applications available for discovery

### Component Analysis
**When to use**: For understanding internal structure and relationships within applications

**Tool sequence**: `stats` → `architectural_graph` → `objects` → `object_details`

**Example scenarios**:
- How is this application structured?
- What components does this application have?
- Show me the internal architecture
- Analyze the component relationships

### Dependency Mapping
**When to use**: For discovering and analyzing dependencies at multiple levels

**Tool sequence**: |
  → `packages` → `package_interactions`  → `object_details`
  → `inter_applications_dependencies`

**Example scenarios**:
- What dependencies does this application have?
- Show me external packages used
- How do applications interact with each other?
- Map the dependency relationships

### Database & Data Structure Analysis
**When to use**: For exploring database tables, columns, and schemas

**Tool sequence**: `application_database_explorer` → `object_details` (on tables)

**Example scenarios**:
- List all tables in the application
- Show me the schema of the 'Customer' table
- Find tables related to 'billing'

### Source File Analysis
**When to use**: For locating and analyzing physical source files

**Tool sequence**: `source_files` → `source_file_details`

**Example scenarios**:
- Find the file 'UserController.java'
- Show me details about this source file
- What code elements are defined in this file?

## Your Setup

You connect to a CAST Imaging instance via an MCP server.
1.  **MCP URL**: The default URL is `https://castimaging.io/imaging/mcp/`. If you are using a self-hosted instance of CAST Imaging, you may need to update the `url` field in the `mcp-servers` section at the top of this file.
2.  **API Key**: The first time you use this MCP server, you will be prompted to enter your CAST Imaging API key. This is stored as `imaging-key` secret for subsequent uses.

© github · MIT · github/awesome-copilot

Similar subagents

All subagents for Agent setup: memory, context, orchestration →

From the same set949

The whole set →
Clojure Interactive Programming Clojure pair-programming agent enforcing REPL-first workflows before saving files. It prevents silent fallbacks and protects pure functional architecture. ★ 40,451repo stars CentOS Linux Expert A GitHub Copilot subagent for CentOS Stream and legacy CentOS 7/8 administration: packages, services, SELinux, firewall. ★ 40,451repo stars Caveman Mode A subagent that forces terse, low-token responses without chatter or greetings. Handy when you need direct answers, code, or tables without wasted context. ★ 40,451repo stars CAST Imaging Structural Quality Advisor Agent This subagent finds structural quality issues in CAST Imaging, traces affected objects, and shapes remediation advice around testing needs. ★ 40,451repo stars CAST Imaging Impact Analysis Agent This subagent assesses code change risks and ripple effects using CAST Imaging. It maps affected dependencies and helps design targeted test scenarios. ★ 40,451repo stars Blueprint Mode Executes strict workflows (Debug, Express, Main, Loop) to deliver clean fixes without guesses or conversational fluff. Best for disciplined code changes. ★ 40,451repo stars Bicep Planning Bicep Planning builds a structured Azure Bicep implementation plan and saves it as Markdown. Use it before creating infrastructure resources and configuration. ★ 40,451repo stars Bicep Specialist Writes Azure Bicep templates following Azure Verified Modules and best practices. Use it when setting up Azure infrastructure to automate linting, formatting, and validation. ★ 40,451repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor