416rehman/DeepZero
YAML-driven batch analysis engine with resumable runs and optional LLM review
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
DeepZero is a Python batch orchestration engine with an optional LLM assessment stage, not an inference runtime. YAML defines the stage sequence, while src/deepzero/engine/ handles execution and persistence. The processor model covers ingestion, per-sample mapping, bulk mapping in a shipped example, and reduction. Python classes can be referenced by path from YAML, so domain-specific logic can live outside the engine.
The core package uses Click and Rich for the CLI, PyYAML for configuration, Jinja2 for templating, and python-dotenv for environment configuration. Model access, HTTP serving, and PE parsing are optional integrations. The CLI is the main interface for running pipelines and building reports; the Starlette REST API is an experimental surface for querying run state and sample data.
Key Capabilities & Differentiators
The distinguishing feature is selective rerunning, not just parallel batch execution. Concurrency is configured per stage, results are saved to disk, and an interrupted run can resume from saved state. Changes to prompts, rules, or configuration rerun the affected stage and its downstream stages. Corpus-level reduction lets a pipeline produce a result about the whole collection rather than only independent sample results.
Assessment stages can render Jinja2 templates and call an API-backed model through LiteLLM or use the Claude Code CLI. The bundled text demo exercises filtering and reporting without a model. deepzero report produces self-contained HTML during or after a run, separating report generation from completion of the underlying job.
Trade-offs & Limitations
Compared with invoking Semgrep directly, DeepZero adds value when analysis is only one part of a recurring job that also needs preprocessing, checkpointing, and report generation. For a one-off rule scan, direct invocation is simpler. Custom processors broaden the engine's scope, but their dependencies and behavior become part of what a team has to test and maintain.
Disk-backed state makes reruns practical, but retained samples, intermediate results, and reports need an explicit storage and access policy. API-backed assessment adds provider costs and a data-handling review; the Claude Code path depends on a separate CLI and account. Treat model assessments as review inputs, not confirmed findings, and do not assume the experimental query API is ready for a multi-tenant service.
Hardware & Deployment Guide
Start in an isolated Python 3.11+ environment. From a checkout, python -m pip install -e . is sufficient for the bundled text demo, which works offline without API credentials or external tools. The llm extra adds LiteLLM, serve adds Starlette and Uvicorn, and pe adds LIEF. These extras do not turn external executables or model services into bundled components. Size CPU, memory, and disk for the selected processors, stage concurrency, and saved artifacts rather than assuming a universal requirement.
Version 0.5.0 added corpus-level stage results and automatic run selection for reports when only one run is available. The 0.5.1 notes include a Ghidra end-to-end test fixture fix and documentation changes. CI covers Linux on Python 3.11–3.14, Windows on Python 3.12, and a clean wheel install; that matrix does not imply every external integration shares the same compatibility.
processors/.llm, serve, and pe extras.Teams building repeatable batch workflows for internal code review or document processing that need custom Python stages, resumable runs, and HTML reports.
A standalone scanner meets the need, or you require a turnkey multi-tenant service with a stable API and managed access controls.
Quick Start & Installation
git clone https://github.com/416rehman/DeepZero.git cd DeepZero python -m pip install -e . deepzero run pipelines/demo/samples -p pipelines/demo/pipeline.yaml deepzero report -p pipelines/demo/pipeline.yaml --open
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| DeepZero ★ | 785 | +3 | Python | MIT | YAML-driven batch analysis engine with resumable runs and optional LLM review |
| langgraph | 45.8k | +293 | Python | MIT | Python graph orchestration for stateful, resumable agents and workflows |
| langchain | 150.4k | +290 | Python | MIT | Modular Python framework for building agents across model providers |
| deepagents | 31.8k | +138 | Python | MIT | A LangGraph-based agent harness for long-running, tool-driven workflows |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/416rehman/DeepZero.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about DeepZero
How do I integrate custom processing logic?
src/deepzero/stages/ cover ingestion, per-sample mapping, and reduction; the shipped processors also include a bulk-map example. Use the local text demo to verify wiring, persistence, and reporting before introducing external tools or model calls.Do I need a GPU or a dedicated server?
Can I use it commercially and keep the deployment in-house?
When is DeepZero preferable to standalone Semgrep?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy