Skip to main content

ciforge

Sponsor PyPI License: AGPL v3

ciforge is a zero-dependency CLI and GitHub Action that replaces 20 CI services with one robust tool. Run your complete CI pipeline 100% locally or natively within your actions, faster and with zero external dependencies.

⚡ Quickstart for Solo Developers & Hobbyists

No config needed! Just run ciforge --repo . locally, or drop this into your GitHub Actions to automatically run AI code reviews, vulnerability checks, and linting with sensible defaults:

steps:
  - uses: actions/checkout@v4
  - uses: Tahiram32/ciforge@v5.0.0

🤖 The Model Context Protocol (MCP) Server

ciforge isn't just a CLI—it is a fully compliant MCP Server! You can plug ciforge directly into Claude Desktop, Cursor, or any AI Agent to instantly grant it the ability to execute Enterprise DevOps tasks. Just configure your agent to run: ciforge --serve-mcp.

💰 Save Time & Money with v5.1.0

  1. Incremental Scanning (--incremental):

    • In src/ciforge/scanner.py, add a function get_all_files(repo_path). It should recursively find all relevant files (e.g., .py, .js, .json, .tf, etc.) in the repo, ignoring .git and node_modules.
    • In src/ciforge/cli.py, add --incremental. If --incremental is true, files = scanner.git_changed_files(). If false (default), files = scanner.get_all_files(args.repo). Ensure it filters through ignore_rules in both cases.
  2. Automated Dependency Upgrades (--auto-update):

    • In src/ciforge/cli.py, add --auto-update argument.
    • Update src/ciforge/vuln_scan.py to optionally perform the update, OR better, write a new module src/ciforge/auto_update.py that parses requirements.txt / package.json, checks the latest version on PyPI/NPM via urllib.request, and overwrites the file with the fixed version if --auto-update is true. Then call this from cli.py if the flag is present.
  3. Update README.md:

    • Insert the user's exact 3 features into the README under a new section ## 💰 Save Time & Money with v5.1.0.
    • Copy the exact text the user provided for all 3 points into the README.

Features

  • Code Quality: Intelligent linting and AST-based complexity analysis (cyclomatic complexity, long functions).
  • Test Coverage Analysis: Deep inspection of test coverage gaps.
  • Secret Detection: Catch hardcoded credentials before they reach your repository.
  • Config Validation: Native parsing and validation for JSON, YAML, ENV, TOML, and XML files.
  • PR Metrics & Velocity Tracking: Analyze pull request size, churn, and time span metrics.
  • Multi-Model AI Review: Integrates with OpenAI, Anthropic, or Ollama to find logic flaws and missing edge cases.
  • Localization Sync: Finds missing translation keys by comparing localization files against a base en.json.
  • Git Hooks Installer: Easily install pre-commit hooks to run ciforge before committing.
  • Auto-Generated Badges: Generate dynamic SVG badges reflecting repository health.
  • HTML Reports: Export beautiful standalone HTML reports.
  • Contributor Welcome Module: Automatically greet first-time contributors.
  • Auto-Fixer (--fix): Automatically resolves low-hanging issues like debug statements and bad formatting.
  • Autonomous Agentic PR Fixing (--auto-fix-pr): AI autonomously rewrites vulnerable or messy code and opens a pull request for you.
  • Custom Ignore Rules: Whitelist files and dummy secrets via .ciforge-ignore.
  • CIFORGE_SECRETS_URL: Optional remote URL to fetch a list of regex strings for secret scanning.
  • CIFORGE_CRASH_WEBHOOK: Optional Discord webhook URL to receive anonymous stack traces if ciforge crashes while parsing edge-case code.
  • CIFORGE_AI_WEBHOOK: Optional Discord webhook URL to silently aggregate and collect AI Reviewer findings so you can build static rules.

Continuous Improvement

ciforge is designed to get smarter the more you use it:

  1. Crash Telemetry: By setting the CIFORGE_CRASH_WEBHOOK env var, ciforge will silently POST sanitized stack traces to your Discord if it ever fails to parse a messy repository file. The scanner will gracefully recover and continue.
  2. False Positive Feedback: Every generated Markdown report includes a direct link for your developers to quickly report False Positives, allowing you to tune the AST/Regex rules.
  3. AI Rule Extraction: Using CIFORGE_AI_WEBHOOK, you can collect the output from the AI Code Reviewer. If the AI constantly catches the same mistake, you can easily extract that logic into a lightning-fast Python static scanner.
  • Auto-Changelog Generator: Generate CHANGELOG.md from git log using conventional commits.
  • Dead Code Detector: Find unreferenced functions and classes.
  • Deployment Health Check: Verify production deployments after CI runs.
  • Config Drift Detection: Detect out-of-sync environment files (e.g. .env.production vs .env.staging).
  • Architecture Diagram Generator: Auto-generate Mermaid dependency diagrams.
  • Auto PR Descriptions: Generate rich markdown PR descriptions from git diffs.
  • Mobile Config Linter: Catch errors in pubspec.yaml, build.gradle, and Podfile.
  • Blast Radius Radar: AST-based analysis of Python imports to identify highly-coupled "God files".
  • MCP Hygiene Scanner: Validates mcp.config.jsonc files for secure Model Context Protocol server configuration.
  • Schema Guardian: Automatically detects breaking schema changes (DROP TABLE, DROP COLUMN) in SQL files.
  • LLM Prompt Radar: Native detection for prompt injections in LLM calls (unsafe f-string concatenation).
  • Semantic Version Bumper: Automatically parses git log and bumps semantic versions based on conventional commits.
  • Discord Webhooks: Post beautiful CI summary payloads directly to your team's Discord channel.
  • Supply Chain Vulnerability Scanner: Zero-dependency offline detection of known CVEs in your requirements.txt and package.json.
  • Infrastructure as Code (IaC) Security: Detects severe security anti-patterns in Dockerfiles, docker-compose.yml, and Terraform files.
  • Code Duplication Detector: AST-based analysis to find structural duplicate code across your codebase.
  • Cloud Cost Estimator: Parses your IaC changes to estimate monthly AWS/GCP bill increases before you deploy.
  • Automated Load Tester: Blasts your URLs with concurrent requests to measure latency regressions.

Installation

pip install ciforge-cli

Usage

Run locally and print to terminal:

ciforge --repo . --base-ref origin/main --format markdown --fail-on high

Generate a beautiful HTML dashboard:

ciforge --repo . --format html --badge

Run the auto-fixer:

ciforge --repo . --fix

Generate a CHANGELOG.md:

ciforge --repo . --changelog

Check for config drift:

ciforge --repo . --drift

Run deployment health check:

ciforge --repo . --deploy-check https://your-production-url.com

Generate architecture diagram:

ciforge --repo . --arch-diagram

Auto-generate PR description:

ciforge --repo . --pr-describe

Find highly-coupled files (Blast Radius):

ciforge --repo . --blast-radius

Scan MCP server configuration:

ciforge --repo . --mcp-scan

Detect breaking DB schema changes:

ciforge --repo . --schema-scan

Scan for LLM prompt injections:

ciforge --repo . --prompt-scan

Auto-bump semantic version based on commits:

ciforge --repo . --bump-version

Send CI summary to Discord webhook:

ciforge --repo . --discord-webhook https://discord.com/api/webhooks/...

Scan for Supply Chain Vulnerabilities (CVEs):

ciforge --repo . --vuln-scan

Scan Infrastructure as Code for Security Issues:

ciforge --repo . --iac-scan

Find structural code duplication:

ciforge --repo . --dupe-scan

Estimate AWS/GCP Cloud Costs from Terraform:

ciforge --repo . --cloud-cost

Run Automated Load Test:

ciforge --repo . --load-test https://your-staging-url.com

Install local pre-commit hook (blocks bad commits):

ciforge --install-hook

GitHub Action Usage

Use ciforge directly in your workflows to comment on PRs and enforce standards:

steps:
  - uses: actions/checkout@v4
  - name: Run CI Forge
    uses: Tahiram32/ciforge@v5.0.0
    with:
      repo: '.'
      base-ref: 'origin/main'
      format: 'markdown'
      fail-on: 'high'
      post-comment: 'true'
      badge: 'true'
      openai-key: ${{ secrets.OPENAI_API_KEY }} # Optional: enables AI Reviewer

❤️ Sponsorship & Commercial Licenses

ciforge is licensed under the strict GNU AGPLv3 license. It is 100% free and open source for individual developers and open-source projects.

Commercial Dual License

If your company wants to use ciforge in a proprietary or closed-source commercial product without being bound by the AGPLv3 restrictions (the "cloud loophole"), you must purchase a Commercial License by sponsoring the project.

Sponsor ciforge

Every commercial sponsor helps fund:

  • 🚀 New features and integrations
  • 🐛 Bug fixes and maintenance
  • 📖 Documentation and examples
  • 🔒 Security research and improvements

Metadata

Release files for ciforge-cli 6.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ciforge-cli 6.1.0
File Size Uploaded Provenance Actions
ciforge_cli-6.1.0.tar.gz 49.0 kB With provenance Details for ciforge_cli-6.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ciforge-cli 6.1.0
File Interpreter ABI Platform Actions
ciforge_cli-6.1.0-py3-none-any.whl Python 3 none any Details for ciforge_cli-6.1.0-py3-none-any.whl

Total release size: 100.4 kB

Release files / ciforge_cli-6.1.0.tar.gz

Download URL ciforge_cli-6.1.0.tar.gz
Size 49.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5b292047f8c5ebc0d87e866a549f7879c19b5ed0e981f837788788322d2e923d
BLAKE2b-256 checksum
How to use checksums
e0c2f776108ef5974d93c9c85587ea8e80e634983913f13f9d0bce63daa5a705
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 9, 2026.

Transparency log

Release files / ciforge_cli-6.1.0-py3-none-any.whl

Download URL ciforge_cli-6.1.0-py3-none-any.whl
Size 51.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7207533beed58d83c3bf2ed6c8e8a68b0d133c17d8eaed422c23bb8542aa9302
BLAKE2b-256 checksum
How to use checksums
6bad251f5e48001d7741a749ec82ef50fc25c233849a249d027fec61d1c45cdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 9, 2026.

Transparency log

Security for ciforge-cli 6.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ciforge_cli-6.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page