{"id":24653070,"url":"https://github.com/presidio-oss/cline-based-code-generator","last_synced_at":"2025-10-07T12:31:26.297Z","repository":{"id":271650997,"uuid":"913989010","full_name":"presidio-oss/cline-based-code-generator","owner":"presidio-oss","description":"VS Code extension that streamlines development workflows through AI-powered task execution, intelligent file management, and automated code generation. Built on Cline, it integrates with various LLMs to enhance productivity and code quality while simplifying complex development tasks.","archived":false,"fork":false,"pushed_at":"2025-01-22T09:58:02.000Z","size":10407,"stargazers_count":13,"open_issues_count":4,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-22T10:34:42.231Z","etag":null,"topics":["claude-3-5-sonnet","cline","code-context","code-generator","code-index","extension","generative-ai","gpt","hai-build","human-ai","multi-modal","owasp-top-10","presidio","visual-studio-code"],"latest_commit_sha":null,"homepage":"https://www.presidio.com/solutions/hai-build/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/presidio-oss.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-08T18:26:37.000Z","updated_at":"2025-01-22T09:58:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"639b5cf3-78b8-483b-a7fb-4813099c0862","html_url":"https://github.com/presidio-oss/cline-based-code-generator","commit_stats":null,"previous_names":["presidio-oss/cline-based-code-generator"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presidio-oss%2Fcline-based-code-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presidio-oss%2Fcline-based-code-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presidio-oss%2Fcline-based-code-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presidio-oss%2Fcline-based-code-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/presidio-oss","download_url":"https://codeload.github.com/presidio-oss/cline-based-code-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235628189,"owners_count":19020541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-3-5-sonnet","cline","code-context","code-generator","code-index","extension","generative-ai","gpt","hai-build","human-ai","multi-modal","owasp-top-10","presidio","visual-studio-code"],"created_at":"2025-01-25T20:13:35.325Z","updated_at":"2025-10-07T12:31:26.291Z","avatar_url":"https://github.com/presidio-oss.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-Apache%202.0-blue.svg\" alt=\"License\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/issues/presidio-oss/cline-based-code-generator\" alt=\"Issues\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/stars/presidio-oss/cline-based-code-generator\" alt=\"Stars\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/forks/presidio-oss/cline-based-code-generator\" alt=\"Forks\" /\u003e\n\u003c/div\u003e\n\u003cbr /\u003e  \n\u003cdiv align=\"center\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"assets/img/hai_build_logo_light.png\"\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"assets/img/hai_build_logo_theme.png\"\u003e\n    \u003cimg alt=\"HAI Logo\" src=\"assets/img/hai_build_logo_white_bg.png\" height=\"auto\"\u003e\n  \u003c/picture\u003e\n\u003c/div\u003e\n\u003cbr /\u003e  \n\n# 🚀 Code Generator\n\n**HAI Code Generator** is a cutting-edge tool designed to simplify and automate task execution while enhancing code generation workflows. Leveraging Specif AI, it streamlines processes like task execution, file identification, and code documentation through intelligent automation and AI-driven capabilities.\n\n\u003e 🏗️ **Built on [Cline](https://github.com/cline/cline)**'s powerful foundation for AI-assisted development.\n\n## ⚡ Extended Feature Set\n\n- [🧑‍💻 Experts](#-experts) : Context-aware code generation with built-in and custom domain experts  \n- [✏️ Inline Editing](#-inline-editing) : Make quick, AI-assisted edits without leaving your codebase  \n- [📝 HAI Tasks](#-hai-tasks) : Integrate AI-generated user stories and tasks seamlessly into your workflow  \n- [🔍 File Identification](#-file-identification) : Discover and contextualize code files with intelligent indexing  \n- [⚙️ Settings Interface](#-settings-interface) : Easily configure LLMs and embedding models for tailored performance\n- [📊 COR-Matrix Integration](#-cormatrix-integration) : Track AI code retention patterns and analyze code origin over time\n\n\u003cbr\u003e\n\n\u003cdiv align=\"center\" style=\"margin-top: 20px;\"\u003e\n  \u003cimg src=\"assets/gifs/hai-home-page.gif\" alt=\"HAI Demo\" /\u003e\n\u003c/div\u003e\n\n## Table of Contents\n\n- [🌟 Overview](#-overview)\n- [📥 Getting Started](#-getting-started)\n- [✨ Features](#-features)\n- [🤝 Contributing](#-contributing)\n- [📜 License](#-license)\n- [🙏 Acknowledgments](#-acknowledgments)\n- [📧 Contact](#-contact)\n\n## 🌟 Overview\n\n**HAI Code Generator** is designed to boost productivity and precision by automating task execution and integrating file management capabilities. It combines intelligent file indexing, context generation, and LLM-driven automation to minimize manual effort and ensure task accuracy. With user-friendly interfaces and configurable settings, HAI Code Generator is perfect for both developers and teams aiming to enhance their workflows.\n\n## 📥 Getting Started\n- Open Visual Studio Code → Extensions (⇧⌘X) → Search for “HAI Build” → Click Install\n\u003cdiv align=\"center\" style=\"margin-top: 20px;\"\u003e\n  \u003cimg src=\"assets/gifs/install-hai-build.gif\" alt=\"HAI Demo\" /\u003e\n\u003c/div\u003e\n\n- Upon installation, the HAI extension can be found in the sidebar.\n\n\u003cdiv align=\"center\" style=\"margin-top: 20px;\"\u003e\n  \u003cimg src=\"assets/img/hai-home.png\" alt=\"HAI Demo\" /\u003e\n\u003c/div\u003e\n\n## ✨ Features\n\n### 🧑‍💻 Experts\n\nThe **Experts** feature enables HAI Code Generator to deliver context-aware code generation tailored to specific technologies or domains.\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"assets/gifs/experts.gif\" alt=\"Experts Feature Demo\" /\u003e\n  \u003cp\u003e\u003ci\u003eExperts\u003c/i\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n#### Built-in Experts\n\n- Four built-in experts are available: **.NET, Terraform, Node.js, and Go**.\n- Each provides predefined guidelines and best practices in read-only mode for quick reference.\n\n#### Custom Experts\n\n- Users can create custom experts to define their own guidelines and (optionally) attach up to three reference document links.\n- Custom experts are stored in the `.hai-experts` folder under a subfolder named after the expert.\n- Each expert folder contains:\n  - `metadata.json`: Stores expert name, creation date, and any document links.\n  - `prompt.md`: Contains the expert’s guidelines (required).\n- If document links are provided, a `docs` folder is created with:\n  - Markdown files for each processed document.\n  - `status.json` to track processing status.\n\n**Note:**  \n- Expert name and guidelines are mandatory when creating a custom expert.  \n- Document links are optional and can be added for richer context.\n\nThis feature allows you to extend HAI Code Generator’s knowledge with your own standards, best practices, and documentation—ensuring more accurate and relevant code generation for your unique stack.\n\n---\n\n### ✏️ Inline Editing\nEnhance your code editing experience with inline editing, allowing you to make changes directly within the codebase.\n \u003cdiv align=\"center\"\u003e\n   \u003cimg src=\"assets/gifs/inline-editing.gif\" alt=\"Inline Editing\" /\u003e\n     \u003cp\u003e\u003ci\u003eInline Editing\u003c/i\u003e\u003c/p\u003e\n \u003c/div\u003e\n\n#### Seamless Quick Changes\n- Click \"Edit with hAI\" and provide a brief prompt to effortlessly transform selected code.\n- Perfect for quick edits or corrections without navigating away from your codebase.\n  \n---\n\n### 📝 HAI Tasks\nHarness the power of AI for seamless task management and user-story execution, HAI Code Generator integrates tasks generated by [Specif AI](https://github.com/presidio-oss/specif-ai), allowing them to be loaded directly into the HAI Tasks page. This streamlined process enables you to:\n\n- **Review** AI-generated tasks within a dedicated interface.  \n- **Execute** them instantly with a single click.  \n- **Manage** all tasks in one place for improved clarity and productivity.  \n\nBy centralizing AI-driven tasks in HAI Code Generator, you can maintain an efficient workflow from ideation to execution.\n\n\u003cbr\u003e\n  \n  \u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"assets/gifs/hai-detailed-view.gif\" alt=\"Tasks List Page with Tasks Loaded\" /\u003e\n    \u003cp\u003e\u003ci\u003eDetailed View of HAI Tasks\u003c/i\u003e\u003c/p\u003e\n  \u003c/div\u003e\n\n- **In-Depth Story Review**  \n  - View a story in detail by clicking the Eye icon, along with the corresponding list of tasks, providing comprehensive insights into objectives, prerequisites, and outcomes. \n  \n- **In-Depth Task Review**  \n  - Similar to user stories, tasks can be viewed in detail and executed directly from the same interface.\n  \n---\n\n### 🔍 File Identification\nEnhanced file identification with intelligent discovery and retrieval:\n\n  \u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"assets/gifs/find-files.gif\" alt=\"File Identification\" /\u003e\n      \u003cp\u003e\u003ci\u003eFile Identification\u003c/i\u003e\u003c/p\u003e\n  \u003c/div\u003e\n\n#### Task-Based File Discovery\nTransform the way you manage files by leveraging the core functionalities of **Task-Based File Discovery**, supported by advanced components like contextual code comments and indexing.\n\n\n- **Contextual Code Comments**  \n  - Automatically generate contextual comments for every identified file, offering deeper insights and clarifications.  \n  - Store all generated comments in a dedicated folder, ensuring they are easily accessible without cluttering your codebase.\n\n- **Faiss DB Indexing**  \n  - Built on the robust vector-search engine, Faiss DB ensures real-time and highly accurate file indexing, enabling instant discovery of relevant files.  \n  - Handles large repositories effortlessly, ensuring HAI Code Generator scales with your project's needs.\n\nTogether, these components form a cohesive system for efficient file identification, ensuring that Task-Based File Discovery is not just smart but also contextual.\n\n---\n\n### ⚙️ Settings Interface\nCustomize and seamlessly integrate advanced language and embedding models into your AI-powered workflow, ensuring you stay at the forefront of AI innovations.\n- **LLM Configuration**   \n  - Seamlessly integrate and switch between various language models, ensuring compatibility with the latest AI advancements. Supported models include OpenRouter, Anthropic, Google Gemini, GCP Vertex AI, AWS Bedrock, OpenAI, OpenAI-Compatible models, LM Studio, and Ollama.\n  \n- **Embedding Configuration**  \n  - Effortlessly configure and switch between supported embedding models, ensuring flexibility and adaptability for different use cases. Compatible embedding models include OpenAI-Compatible, OpenAI, and AWS Bedrock.\n\u003cdiv align=\"center\" style=\"margin-top: 20px;\"\u003e\n  \u003cimg src=\"assets/img/hai-settings.png\" alt=\"Settings Interface Screenshot\" /\u003e\n  \u003cp\u003e\u003ci\u003eSettings Interface\u003c/i\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n### 📊 COR-Matrix Integration\nTrack AI code retention patterns and analyze how much AI-generated code remains in your codebase over time.\n\n- **Code Origin Tracking**: Monitor AI-generated code longevity and evolution patterns\n- **Privacy-First**: Only cryptographic hashes are transmitted, your code stays local\n- **Optional Integration**: Activate through workspace configuration when needed\n- **Zero Performance Impact**: Background processing with graceful degradation\n\nFor detailed setup and configuration, see our [COR-Matrix Integration Guide](hai-docs/extended-feature-set/cormatrix-integration.md).\n\n---\n\n### 📊 Telemetry\nConfigure external telemetry settings to monitor and analyze your AI-powered development workflows with environment-specific customization capabilities.\n\n- **External Configuration Override**  \n  - Support for telemetry configuration overrides via a `.hai.config` file placed at the root of your workspace.\n  - Enables environment-specific customization that can be dynamically injected through CI/CD pipelines.\n\n- **Supported Override Parameters**  \n  ```\n  # Langfuse Configuration\n  langfuse.apiUrl=\n  langfuse.apiKey=\n  langfuse.publicKey=\n  \n  # PostHog Configuration\n  posthog.url=\n  posthog.apiKey=\n  ```\n\n**Important Notes:**  \n- The `.hai.config` file is not git-excluded by default. Ensure sensitive keys are not committed unintentionally to your repository.\n\n---\n\n### 📖 Documentation\nFor comprehensive documentation and in-depth guides on HAI Code Generator features, visit our [Wiki](https://github.com/presidio-oss/cline-based-code-generator/wiki).\n\n\n## 🤝 Contributing\n\nTo contribute to the project, start by exploring [open issues](https://github.com/presidio-oss/cline-based-code-generator/issues) or checking our [feature request board](https://github.com/presidio-oss/cline-based-code-generator/discussions/categories/feature-requests?discussions_q=is%3Aopen+category%3A%22Feature+Requests%22+sort%3Atop).\n\nTo get started with HAI Code Generator, follow these steps:\n\n\u003cdetails\u003e\n\u003csummary\u003eLocal Development Instructions\u003c/summary\u003e\n\n1. Clone the repository _(Requires [git-lfs](https://git-lfs.com/))_:\n    ```bash\n    git clone https://github.com/presidio-oss/cline-based-code-generator\n    ```\n\n2. Open the project in VSCode:\n    ```bash\n    code cline-based-code-generator\n    ```\n\n3. Install the necessary dependencies for the extension and webview-gui:\n    ```bash\n    npm run install:all\n    ```\n\n4. Launch by pressing F5 (or Run -\u003e Start Debugging) to open a new VSCode window with the extension loaded. (You may need to install the [esbuild problem matchers extension](https://marketplace.visualstudio.com/items?itemName=connor4312.esbuild-problem-matchers) if you run into issues building the project.)\n\n\u003c/details\u003e\n\u003cbr/\u003e\n\nPlease read our [Contributing Guidelines](./CONTRIBUTING.md) for more details.\n\n## 📜 License\n\nThis project is licensed under the Apache 2.0 License. See the [LICENSE](LICENSE) file for more details.\n\n## 🙏 Acknowledgments\n\nThanks to all contributors and users for their support and feedback.\n\n## 📧 Contact\n\nFor any questions or feedback, please contact us at [hai-feedback@presidio.com](mailto:hai-feedback@presidio.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpresidio-oss%2Fcline-based-code-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpresidio-oss%2Fcline-based-code-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpresidio-oss%2Fcline-based-code-generator/lists"}