Design an AI system that can automatically generate code based on natural language descriptions and detect potential bugs in existing codebases. Focus on implementing deep learning models for code understanding and generation. Address challenges like handling multiple programming languages, generating syntactically correct and semantically meaningful code, and integrating with existing development workflows and tools.