Skip to main content

About Code Shift

Code Shift is a hybrid and flexible feature integrated with StackSpot EDP and StackSpot AI, designed to automate code analysis and modification in software projects.

With Code Shift, you can create, publish, and consume ready-to-use modules for different types of refactoring, correction, or code transformation, such as standardizing CNPJ to an alphanumeric format. For more details and use cases, see the Examples page.

Code Shift operates using standardized contracts, organizing its Workflow into three main steps:

  • Scan: It analyzes code and systems to identify patterns, vulnerabilities, or improvement opportunities. For example, you can scan applications to find security issues, modify Kubernetes YAML manifests, update CNPJ formatting, or identify outdated policies.

  • Fix: Automatically applies code corrections, implementing suggested changes quickly and efficiently, while optimizing computing resource usage.

  • Reports: Generates executive summaries, such as control dashboards and detailed reports, making it easier to understand the current scenario and the solutions applied.

Code Shift uses a hybrid approach, where only the necessary code snippet is sent to AI, making the process more secure and agile. The use of Actions and Workflows allows you to contextualize each operation for the AI, and ensures that processing is efficient and integrated with the client’s environment.

info

Code Shift is available for the following languages:

  • Java, Kotlin, C#, .NET, Cobol, Python, JavaScript, TypeScript, Sybase.

Code Shift key advantages

  1. Secure execution: The Scan and Fix steps can be performed directly on the client’s infrastructure runners, reducing the risk of code leaks and making it easier to integrate with version control systems (SCM) for automatic Pull Request creation.

  2. Flexible execution: Compatible with any Git provider or local execution, adapting to each project’s needs.

  3. Integration with existing tools: Allows you to trigger tools already available in your environment, such as .NET, CLI, or ng update (Angular), for modification operations.

  4. Custom processing: Supports Python scripts for pre- or post-processing data sent to or received from the AI, offering greater control and customization of workflows.

  5. Full integration with StackSpot: Enables native access to platform resources, such as insights generation and the use of other StackSpot services for a unified experience.

How does the Code Shift workflow work?

The Code Shift workflow is designed to ensure automation, flexibility, and security. See how it works below:

  1. You select a module through the StackSpot Portal;
  2. When you run the module using 'run workflow', StackSpot triggers a Workflow on a runner in your account, directly in your repository;
  3. The module is represented by a Workflow, which contains the Actions responsible for each step of the automation;
  4. The standard flow of a module includes:

With Code Shift, you automate large-scale modifications, reduce manual errors, standardize processes, and accelerate the evolution of your projects on StackSpot.