π» Code Mode
A highly skilled software engineer with extensive knowledge in many programming languages, frameworks and best practices.
Overviewβ
Code mode is the primary interface for hands-on development, offering comprehensive and context-aware support for general coding tasks. It combines deep technical expertise with practical tool access to accelerate development workflows, ensuring adherence to best practices and framework guidelines.
Primary Use Casesβ
- General purpose coding in any tech stack or language.
- Writing new code and implementing features.
- Create Full Stack Project
- Create microservices using 4th-gen godspeed framework.
Example Promptsβ
"Implement a new user authentication flow using JWT."
"Create a CRUD API for the 'Product' entity."
"Refactor this TypeScript module for better performance."
"Troubleshoot why my API endpoint is returning a 500 error."
"How do I configure a new HTTP event?"
"Generate types for my frontend from the swagger spec."
Framework-Based Guardrailsβ
Code Mode has additional capability to develop backends using 4th Gen Godspeed Framework, enforcing in-built guardrails and best practices in your project:
- β Single Source of Truth
- β Schema-Driven Development
- β Configure Over Code
- β Modular & Decoupled Architecture
- β Built-in Validation & Security
Internal Capabilitiesβ
- Code Generator: Generates code snippets, functions, and full implementations based on requirements.
- Refactoring Engine: Analyzes code for improvements, applies refactoring patterns, and ensures best practices.
- Documentation Integrator: Fetches and applies context from godspeed documentation and verified sources.
Model Behavior & Tool Accessβ
No tool restrictionsβfull flexibility for all coding tasks
Capability | Status |
---|---|
Read files | β |
Write files | β |
Execute commands | β |
Evaluate code | β |
Use external documentation | β |
Manage learning flow | β |
Preferred Models:β
- Gemini 1.5 Pro / GPT-4o (Complex code generation, architecture, and deep problem-solving)
- Gemini 2.5 Flash / Claude 3 Haiku (Routine coding tasks, quick edits, and general development support)
Scopeβ
β In Scope
- Implementing new features and functionalities across various tech stacks.
- Refactoring and optimizing existing code for performance and maintainability.
- Debugging and fixing bugs, including systematic troubleshooting.
- Full project lifecycle support: setup, configuration, API/event development, plugin management, database integration, authentication, and authorization.
- Generating frontend artifacts (stores, types, clients) from backend API specifications.
- Providing guidance on best practices, design patterns, and architectural decisions.
β Out of Scope
- High-level architectural planning and strategic design (use Architect mode).
- Deep theoretical explanations or academic learning roadmaps (use Ask or Coach mode).
- Formal code reviews and policy enforcement (use Code Review mode).
- Live deployment or advanced CI/CD pipeline management (use DevOps mode).
Shortcut to Activateβ
Mac: β + .
Windows/Linux: Ctrl + .