Skip to main content

Code Suggestion Tool

The Code Suggestion tool uses AI to generate code snippets for specific architectural components in your revision draft. This helps accelerate development by providing a starting point that is tailored to your design.

Getting Started

To begin, you must first select a Revision Draft from the header. This provides the context of your project's components.

Code Suggestion Tool

Configuration

On the left-hand side, you configure the code generation request:

  • Select Operation: Choose the specific component (e.g. a DTO, Command Handler, or Service) from the draft that you want to generate code for.
  • Target Language: Specify the programming language (e.g. python, java).
  • Target Framework (Optional): Provide a framework (e.g. fastapi, react) to get more specific code.
  • Instructions (Optional): Give the AI extra instructions, like "Make the function asynchronous" or "Include error handling."

Generate and Review

Click the "Generate Code" button. The AI will analyze the selected component's definition and your configuration to produce a code snippet on the right-hand side, complete with syntax highlighting and any relevant notes. You can then use the Copy button to copy the code snippet to your clipboard.