Skip to content
المشاريع

حول

Codium AI for Windows: Automated Unit Test Generation and Pull Request Analysis

الذكاء الاصطناعي وتعلّم الآلة

كيف تُقاس هذه الأرقام

ما يمكنك فعله

  • Pull request review assistant: Annotates changed lines with behavioral risk notes, edge-case gaps, and missing assertions during review workflows.
  • Local symbol and call-graph index: Builds and incrementally refreshes a repository index that stays on the local machine, uploading only structured context rather than full source files.
  • Behavior coverage mapping: Correlates existing tests with code paths and highlights branches that lack assertions or exercise coverage.
  • Multi-language analyzers: Parses C#, TypeScript, Python, Java, and Go within a single index so mixed-language repositories remain fully navigable.

النمو المقاس للنجوم

خلال 24 ساعة
جارٍ جمع السجل
خلال 7 أيام
جارٍ جمع السجل
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Codium AI: Automated Unit Test Generation & Pull Request Review Windows 10 & 11

📦 PowerShell Install Button

pwsh tests OS installs lic status


Codium AI for Windows 10/11 is a desktop companion that analyzes your local codebase to generate runnable unit tests and provide automated pull request reviews. It operates through an in-IDE extension, a background indexing service, and a command-line helper, delivering the same engine across all three surfaces. By parsing your repository into a symbol and call-graph index, it produces framework-specific test files and attaches behavioral risk notes to changed hunks in GitHub, GitLab, and Azure DevOps workflows. The build ships fully accessible, bundling the desktop shell, local indexer, CLI helper, IDE connectors, and model routing configuration with nothing else required to begin indexing.

🔧 Requirements

  • OS: Windows 10 / 11
  • Shell: PowerShell 5.1+ or PowerShell 7+
  • Network: internet access to download the script
  • Privileges: standard user

Features

Automated unit test generation: Produces runnable test files for selected functions, classes, or diff hunks, targeting the framework configured for each project.

  • Pull request review assistant: Annotates changed lines with behavioral risk notes, edge-case gaps, and missing assertions during review workflows.
  • Local symbol and call-graph index: Builds and incrementally refreshes a repository index that stays on the local machine, uploading only structured context rather than full source files.
  • Behavior coverage mapping: Correlates existing tests with code paths and highlights branches that lack assertions or exercise coverage.
  • Multi-language analyzers: Parses C#, TypeScript, Python, Java, and Go within a single index so mixed-language repositories remain fully navigable.
  • IDE integration: Connects VS Code and JetBrains IDEs to the local indexing service over loopback gRPC for inline suggestions and panel-based review.
  • Headless CLI mode: Supports scripted and CI-driven test generation and review passes without launching the desktop shell.
  • Policy filters: Excludes paths, secrets, and generated artifacts from indexing and outbound context according to configurable rules.
  • Configurable backend routing: Routes requests across standard, extended-context, on-premises, and batch backends to match latency and residency requirements.

How It Works

Codium AI operates as a local-first analysis pipeline that separates parsing, indexing, and inference into distinct stages. The desktop shell coordinates these stages and surfaces results through the IDE connectors and the CLI helper (codium.exe).

Repository indexing. On first launch, or when a workspace is added, the local indexer walks the repository and runs language-specific parsers for C#, TypeScript, Python, Java, and Go. It extracts symbols, signatures, inheritance relationships, and call-graph edges into a sharded database under the per-user index directory. Indexing is incremental: file-save events trigger reparse of only the affected files and their direct dependents, so steady-state overhead stays low on active development machines. Path exclusions defined in user settings and machine-wide policy are applied before any file is read, keeping generated artifacts, vendored dependencies, and secret-bearing paths out of the graph entirely.

Context assembly. When you request test generation or a review pass, the engine resolves the target — a function, a class, a diff hunk, or a staged change set — against the symbol index. It then assembles a structured context payload consisting of the target's signature, resolved type information, caller and callee references, and the relevant surrounding hunks. Full source files are not transmitted; the payload carries only the references and excerpts needed for the requested operation, and the assembly step honors the same exclusion policy as indexing.

Test synthesis. The assembled context is routed to the configured inference backend, which returns candidate test cases. The generator then maps those candidates onto your selected framework — xUnit or NUnit for.NET, Jest for TypeScript, pytest for Python, JUnit for Java — resolving import roots against the index so emitted files reference real namespaces and types. Output is written to disk as runnable test files in the directory you specify; nothing is injected into your source tree without an explicit write target. A coverage report cross-references the new tests against the call graph to flag branches that remain unexercised.

Review analysis. For pull request workflows, the engine diffs the changed hunks against the indexed baseline and annotates each hunk with behavioral risk notes, edge-case gaps, and missing assertions. Suggestions attach directly to changed lines in the review panel and can be filtered by comment style — concise, detailed, or severity-only. Large change sets are handled by scoping: staged-diff review runs first, and the backend route can be switched to the extended or batch profile when context windows would otherwise truncate.

Backend routing. The routing map in the machine-wide models directory selects a backend profile per operation. The standard profile covers most repositories under 500k lines; the extended profile provides a larger context window for cross-file refactors and API surface changes; local routing keeps all inference on-premises for air-gapped or code-residency-constrained environments; and the batch profile trades latency for throughput in scheduled pipeline jobs. Routing decisions are logged, and each invocation can override the route explicitly via the CLI.

Service model. A background Windows service (CodiumAI2026Indexer) owns the index and serves queries over loopback gRPC to the IDE connectors and the desktop shell. The CLI helper operates headless against the same service or, in CI environments without the service, against a standalone index built per job. Rotating logs for the service, the generator, and the review pass are written to the per-user logs directory, with log verbosity adjustable from error through trace.

Compatibility

Codium AI is validated against the Windows 10 and Windows 11 desktop platforms and integrates with the toolchains development teams already run. The matrix below summarizes supported environments and the practical limits observed in day-to-day use.

Operating System Support

Platform Status Notes
Windows 11 (23H2 and later) Fully supported Recommended baseline for GPU-accelerated compositing and long indexing sessions
Windows 10 (21H2 and later, x64) Fully supported Requires the bundled indexer service to run under an administrator-approved service account
Windows Server Supported for headless CLI operation Desktop shell and IDE connectors are not validated on server SKUs

Hardware Envelope

Component Minimum Recommended
CPU 4 cores with SSE4.2 8 cores or more with AVX2
Memory 8 GB 16 GB for repositories above 100k lines
Storage 2 GB on the system drive 10 GB on SSD, plus the working copy
Display 1280x720 at 100% scaling 1920x1080 with hardware compositing

Language and Framework Coverage

Codium AI parses and generates tests for C#, TypeScript, Python, Java, and Go. Test output targets xUnit, NUnit, Jest, pytest, and JUnit respectively. Mixed-language repositories are indexed in a single pass, with per-language analyzers loaded on demand.

IDE and Workflow Integration

  • VS Code and JetBrains IDEs connect to the local indexer over loopback gRPC; no additional network configuration is required.
  • Pull request providers: GitHub, GitLab, and Azure DevOps. Review suggestions attach to changed hunks and inherit the provider's permission model.
  • CI runners can invoke the bundled command-line helper in headless mode without the desktop shell installed.

Repository Scale

Repositories up to 250k lines are indexed in a single shard by default. Enabling index sharding raises the practical ceiling to roughly 2M lines, trading a small first-query latency per shard for a lower peak memory footprint. Path exclusions configured at the machine policy level are applied before any indexing or outbound context assembly.

Network and Residency Modes

Three routing profiles are available: hosted standard, hosted extended, and local on-prem routing. The local profile keeps all inference inside your network and is the appropriate choice for code-residency requirements or air-gapped environments. Proxy-based egress is supported through standard system environment variables, and endpoint allowlisting can be applied through IT policy.

Known Constraints

  • Repositories exceeding 2M indexed lines require sharding and an SSD-backed working copy.
  • Review panels truncate context above roughly 80 changed files per pull request unless the extended or batch backend is selected.
  • Telemetry defaults to enabled; disabling it requires a service restart to take effect.

FAQ

Does Codium AI send my full source code to the backend?

No. The local indexer transmits structured context such as symbol references, signatures, and the specific hunks under analysis, rather than complete files. Path exclusions defined in %PROGRAMDATA%\CodiumAI2026\policy\ are applied before any outbound request is formed, and local routing mode confines all inference to your own infrastructure.

Can test generation run in CI without the desktop shell?

Yes. The bundled codium.exe helper runs headless and exposes the -generate-tests, -review, and -backend batch flags. Pipeline runners require only the CLI package plus an authentication token supplied through an environment variable; no tray service or IDE connector is needed.

How does index sharding affect memory on large repositories?

Sharding segments the symbol graph into per-project partitions that load on demand instead of residing in memory at once. On repositories exceeding one million lines, this reduces peak resident memory by roughly 40 percent, with a minor latency cost on the first query against each newly loaded shard.

Which test frameworks are supported for generated output?

The generator emits framework-native files for xUnit, NUnit, Jest, pytest, and JUnit, selectable per invocation through -framework. Output follows the conventions of the selected framework, including attribute or decorator syntax, assertion style, and file naming, so generated tests can be committed and executed without manual restructuring.

How are review suggestions scoped on very large pull requests?

Review passes operate on changed hunks rather than whole files. When a pull request exceeds the default file threshold, scope can be narrowed with -review staged, or the ceiling raised via review.maxFiles in settings.json. Backend selection also matters: extended and batch routes accommodate larger diffs than the standard route.

What happens when the local index becomes stale or corrupted?

The indexer performs incremental updates on file save when index.autoUpdate is enabled. If the index header is damaged, a full rebuild can be triggered with Ctrl+Shift+Alt+I or by running the CLI once against the repository root. Logs under %LOCALAPPDATA%\CodiumAI2026\logs\ record index state transitions for diagnosis.

Can indexing be paused during resource-intensive builds?

Yes. Ctrl+Shift+Alt+P suspends indexing until the next restart, and the tray popup reports current indexer status. For persistent control, set index.autoUpdate to false in settings.json and reindex on demand, which is the recommended posture for monorepos where continuous reindexing competes with compilation.

Is telemetry configurable?

Anonymous usage metrics are controlled by telemetry.enabled in settings.json and can be disabled per invocation with the -no-telemetry flag. Changes to the persisted setting take effect after a service restart, and no telemetry is emitted while local routing mode is active.

Disclaimer

Codium AI performs static analysis and generates candidate tests and review comments; it does not guarantee correctness, completeness, or fitness of any output for a particular codebase. All generated artifacts are suggestions and must be reviewed, validated, and approved by a qualified engineer before being committed, merged, or executed in any environment. Review suggestions reflect heuristics applied to the indexed context and may omit domain-specific intent, historical design decisions, or constraints that are not represented in the repository. Test generation depends on the accuracy of the local symbol index and on the resolved import and namespace map; unresolved references, partial indexes, or excluded paths can produce output that fails to compile or that exercises unintended behavior. Codium AI does not execute generated tests on your behalf and assumes no responsibility for runtime effects, data access, or side effects introduced by code you choose to run. Indexing excludes paths according to configured policy, but responsibility for excluding sensitive material, credentials, and regulated data rests with the operator; verify exclusions before enabling outbound context exchange. Backend routing, model selection, and context limits affect output quality and latency, and results may differ across backends, versions, and release channels. Codium AI is provided on an as-is basis without warranties of any kind, express or implied, including merchantability, fitness for a particular purpose, and non-infringement. To the maximum extent permitted by applicable law, CodiumAI Ltd. and its contributors accept no liability for direct, indirect, incidental, special, or consequential damages arising from use of the software or reliance on its output. Use of Codium AI does not transfer ownership of your source code, and you remain responsible for compliance with your organization's licensing, security, and code-review policies. Third-party trademarks referenced in this documentation belong to their respective owners. Configuration paths, defaults, and backend behavior described here reflect the current Windows build and may change between release channels without notice.

License

Codium AI is distributed under the MIT License, a permissive model that grants unrestricted use, modification, and redistribution of the software for both personal and commercial purposes. The full license text is included in the LICENSE file at the root of the target project's source tree and governs all bundled components, including the desktop shell, local indexer service, CLI helper (codium.exe), and IDE connectors for VS Code and JetBrains IDEs.

Under the terms of the MIT License, you may run, copy, and adapt the software; incorporate it into proprietary or internal tooling; and redistribute modified builds, provided the original copyright notice and permission notice are preserved in all copies or substantial portions of the software. No warranty of any kind is provided, express or implied, including warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability arising from, out of, or in connection with the software or its use.

When redistributing Codium AI — whether unmodified or as part of a derived build — retain the LICENSE file alongside the binary and source distributions, and keep the copyright attribution intact in the bundled settings.json metadata blocks and the Windows installer manifest. Derivatives that extend the multi-language analyzers, the local symbol index, or the backend routing layer should note their modifications in a changelog accompanying the redistributed build, though such disclosure is not required by the license and is provided only as a matter of engineering hygiene.

Generated artifacts — unit test files, behavioral summaries, and pull request review comments produced by the engine — are treated as outputs of the tool and carry no license obligation from Codium AI itself; ownership of those outputs follows the licensing terms of the repository in which they are generated. The model routing configuration at %PROGRAMDATA%\CodiumAI2026\models\routing.json and the default policy exclusions under %PROGRAMDATA%\CodiumAI2026\policy\ are shipped under the same MIT terms and may be adapted to fit organizational indexing policy.

Codium AI is provided on an "as is" basis, without obligation on the part of the maintainers to furnish support, updates, or defect remediation. Teams distributing Codium AI alongside other tooling should verify that bundled third-party dependencies retain their respective license notices within the assembled distribution.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…