The Engine produces structured Engineering Assessments (single repository) and can contribute to portfolio Engineering Intelligence Reports (EIR).
Open-source CLI that assesses a software repository and produces deterministic findings, recommendations, and a self-contained HTML/JSON Engineering Assessment report.
Version in this tree: 0.3.1. An editable install of this tree reports
0.3.1. Public codestrata-engine main also contains 0.3.1 source.
Public PyPI does not have 0.3.1: PyPI installs use
pip install 'codestrata==0.3.0'. To install 0.3.1, use the source-install
path in the installation guide.
The latest GitHub Release is
v0.2.1.
Hosted workers use the unpublished 0.3.1 wheel
ab10df61c5bb3124dcce742f9465bb8acba4702be9d9704a5bd3a6b1c5c427fb.
Local knowledge.max_json_bytes defaults to 16 MiB; the hosted worker sets
32 MiB. Reports from this tree embed the website SVG favicon. Hosted Try is
owner-restricted while public opening is disabled.
Audience: engineers and engineering leaders evaluating a codebase for modernization, due diligence, or portfolio discovery.
| Need | Where |
|---|---|
| Install, first assessment, reports, extensions | Public docs |
| Community Cloud architecture | Community Cloud |
| Data Lake / Insights | Data Lake · Insights |
| Community API / Source Locality | Community Cloud API · Source Locality |
| Community vs Platform | Community vs Platform |
| Engine contracts and contributor docs | docs/README.md in this repository |
| You need | Community Engine delivers |
|---|---|
| A fast read on stack, risks, and next steps | Local or GitHub codestrata assess |
| Evidence you can trust | Deterministic rules (AI optional, never invents findings) |
| Something you can share | Self-contained HTML + JSON assessment artifacts |
| Automation | CLI, optional MCP, optional Agent Framework |
Not in Community Engine: hosted SaaS, SSO/billing, multi-tenant control planes, or CodeStrata Platform capabilities (Engineering Knowledge Graph, Repository Retrieval / Answering, Portfolio Intelligence, Executive Intelligence, Strategic Roadmap). Details: Community vs Platform.
| Product | Role | Public? |
|---|---|---|
| codestrata-engine (this repo) | Assessment CLI, reports, Engine docs | Yes — Community source |
| codestrata-examples | Pinned real-world showcase manifests + fetch scripts | Yes — Community source |
| CodeStrata Platform | Knowledge Graph, Retrieval, Answering, Portfolio / Executive Intelligence | Private implementation |
| VS Code extension | Editor integration | Public Marketplace (CodeStrataAI.codestrata-assessment); source private |
Product statement: The Engine produces structured engineering intelligence. The Platform stores, connects, retrieves, and reasons over that intelligence.
Community users can use CodeStrata through the CLI or VS Code.
Requires Python 3.12+. Guides: docs/quick-start.md · docs/installation.md.
git clone https://github.com/CodeStrata/codestrata-engine.git
cd codestrata-engine
python3.12 -m venv .venv
source .venv/bin/activate # Windows: .\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e .
codestrata version
codestrata init
codestrata doctor
codestrata assess --repo test-fixtures/sample-js-app --no-aiOptional MCP server support (not required for Quick Start):
python -m pip install -e '.[mcp]'If you see ModuleNotFoundError: codestrata, confirm the active interpreter:
python -c "import codestrata; print(codestrata.__file__)"Open the current assessment HTML under:
.codestrata-artifacts/assessments/<repository-id>/current/assessment.html
Install CodeStrata for VS Code
from Visual Studio Marketplace (CodeStrataAI.codestrata-assessment).
The extension is publicly distributed there; extension source remains private.
It is a thin client of the Engine CLI — keep the CLI installed and discoverable
(commands above).
Install Engine first (commands above), then:
git clone https://github.com/CodeStrata/codestrata-examples.git
cd codestrata-examples
python real-world/scripts/run_showcase.py spring-petclinicOr fetch + assess separately (this repository ships codestrata.toml):
python real-world/scripts/fetch_example.py spring-petclinic
codestrata assess \
--repo .codestrata-examples/spring-petclinic \
--profile community \
--no-aiAssess your own tree:
codestrata assess --repo /path/to/your-app --no-aiGuides: docs/getting-started.md · docs/installation.md · docs/tutorial.md · docs/community-vs-platform.md.
codestrata.toml / CLI
│
▼
Local path or GitHub clone
│
▼
Detect technologies + extract facts
│
▼
Repository graph → assessment graph
│
▼
Deterministic rules → findings → recommendations
│
├──────────────────┐
▼ ▼
HTML + JSON reports optional AI narrative (one provider call)
Default mode is deterministic (--no-ai: zero provider calls). Optional
--with-ai adds narrative only; it never rewrites findings or recommendations.
Config-driven assess (default codestrata.toml points at the bundled JS sample):
codestrata config validate --config codestrata.toml
codestrata assess --config codestrata.toml --no-aiGitHub repository:
# codestrata.toml
[repository]
url = "https://github.com/YOUR_ORG/YOUR_REPO"
branch = "main"codestrata assess --config codestrata.toml --no-aiExecution profile (optional): --profile local — see
docs/configuration-profiles.md.
Optional AI narrative (Bedrock live-proven; OpenAI/OpenRouter require owner credentials — see public AI Providers docs):
codestrata assess --config codestrata.toml --with-aiOptional Community telemetry / assessment insights (disabled by default; Engine-owned durable consent — shared with VS Code):
codestrata telemetry enable # durable v2 Yes
codestrata telemetry disable # future collection off
codestrata telemetry status
codestrata assess --repo . --no-ai --telemetry-allow # session bridge only; not consent
codestrata assess --repo . --no-ai --telemetry-deny--telemetry-allow does not create consent and cannot override Disabled.
Explicit public report publish (never automatic; not the same as telemetry):
codestrata report publish --type assessment --confirm-public-publish
# → https://reports.codestrata.ai/r/<opaque-id>Real-world showcases (separate public repo): codestrata-examples.
.codestrata-artifacts/
assessments/<repository-id>/
current/
assessment.html
assessment.json
heads/ # eight modular assessment head JSON files
# (architecture, security, technical-debt, cloud,
# ai, dependencies, testing, performance)
previous/ # prior slot when replaced
intelligence/<portfolio-id>/
current/
previous/
How to read reports: docs/report-interpretation.md. Canonical public docs: https://docs.codestrata.ai/reference/cli
| Area | Support |
|---|---|
| Languages | Java, JavaScript/TypeScript, Python, PHP, C# / .NET |
| Build / deps | Maven, npm, Composer, NuGet / MSBuild |
| CI | GitHub Actions discovery |
| Static analysis | Optional PMD (Java) |
| AI enrichment | Optional (Bedrock live-proven; OpenAI/OpenRouter owner credentials) |
| Sources | Local filesystem, GitHub HTTPS/SSH |
This package ships test-fixtures/sample-js-app for offline smoke tests.
| Doc | Topic |
|---|---|
| docs/README.md | Docs index |
| docs/community-edition.md | Community scope |
| docs/cli-reference.md | CLI reference |
| docs/telemetry-runtime.md | Telemetry runtime (disabled by default; no transmission) |
| docs/telemetry-disabled-default.md | Slice 9.2 disabled-default enforcement |
| docs/telemetry-session-consent.md | Slice 9.3 per-session consent (process-local) |
| docs/telemetry-interactive-consent.md | Slice 9.4 interactive consent prompt |
| docs/telemetry-non-interactive.md | Slice 9.5 non-interactive prompt suppression |
| docs/telemetry-cli-consent-flags.md | Slice 9.6 assess --telemetry-allow / --telemetry-deny |
| docs/telemetry-status.md | Slice 9.7 privacy-first telemetry status |
| docs/telemetry-transport.md | Slice 9.11 fail-silent HTTP transport (explicit) |
| docs/telemetry-assessment-isolation.md | Slice 9.12 assessment isolation |
verification/privacy_first_telemetry/README.md (not included in this export) |
Slice 9.14 cross-client privacy verification |
verification/privacy_first_telemetry_completion/README.md (not included in this export) |
Slice 9.15 Epic 9 completion (v0.2.0) |
| docs/telemetry-anonymous-analytics.md | Slice 10.1 anonymous analytics contract (no collection) |
| docs/telemetry-installation-identity.md | Slice 10.2 anonymous installation identity (local only) |
| docs/telemetry-runtime-analytics.md | Slice 10.3 runtime analytics (local construction only) |
| docs/telemetry-assessment-analytics.md | Slice 10.4 assessment analytics (construction API only) |
| docs/telemetry-repository-aggregate-analytics.md | Slice 10.5 repository aggregate analytics (construction API only) |
| docs/telemetry-ai-analytics.md | Slice 10.6 AI analytics (construction API only) |
| VS Code extension docs | VS Code extension (Marketplace; source private) |
verification/anonymous_analytics_privacy/README.md (not included in this export) |
Slice 10.8 anonymous analytics privacy verification |
verification/anonymous_analytics_completion/README.md (not included in this export) |
Slice 10.9 Epic 10 completion verification (contracts-only; not operational) |
| docs/ai-enrichment.md | AI providers / Modernization Advisor enrichment |
| verification/ai_provider_baseline/README.md | Slice 11.1 existing AI provider compatibility baseline (characterization only) |
| docs/ai-provider-contracts.md | Slice 11.2 Common AI Provider Contracts (new, unwired) |
| docs/ai-provider-configuration.md | Slice 11.3 Standardized Provider and Model Configuration (new, unwired) |
| docs/ai-provider-execution.md | Slice 11.4 Standardized Execution, Errors, Timeouts, and Retries (new, unwired) |
| docs/ai-provider-capabilities.md | Slice 11.5 Provider Usage Metadata and Capability Discovery (new, unwired) |
| docs/ai-provider-openai.md | Slice 11.6 OpenAI Provider Migration (wired) |
| docs/ai-provider-bedrock.md | Slice 11.7 AWS Bedrock Provider Migration (wired; default provider) |
| docs/ai-provider-platform.md | Slice 11.8 Cross-Provider Contract Verification (Decision B) |
| docs/ai-provider-openrouter.md | Slice 11.9 OpenRouter adapter |
| docs/ai-provider-openrouter-configuration.md | Slice 11.10 OpenRouter configuration/authentication (explicit) |
| docs/ai-provider-openrouter-doctor.md | Slice 11.11 OpenRouter doctor local readiness + mocked integration |
| docs/ai-provider-security-boundaries.md | Slice 11.12 provider privacy, failure-isolation, and architecture boundaries |
| verification/ai_provider_platform_completion/README.md | Slice 11.13 Epic 11 completion verification (Epic 11 complete; Epic 12 not started) |
| docs/architecture-guide.md | Architecture map |
| docs/mcp/setup.md | MCP setup |
| docs/troubleshooting.md | Troubleshooting |
| SUPPORT.md | How to get help |
| SECURITY.md | Vulnerability reporting |
See CONTRIBUTING.md and docs/contributor-guide.md.
python -m pip install -e ".[dev]"
pytest
ruff check .
mypy srcMIT — see LICENSE.
Satish Nampally — https://github.com/sknampally