Skip to main content

cogext-scan

Zero-dependency static analysis tool for AI agent code, framework calls, and tool definitions.

cogext-scan

Installation

pip install cogext-scan

Quickstart

Scan a directory:

cogext-scan ./src

JSON output for CI/CD:

cogext-scan ./src --json

Strict mode (exit code 1 on high or critical findings):

cogext-scan ./src --strict

What it scans for

  1. Silent Exception Swallowing — try/except blocks returning static success strings without API checks
  2. Unbounded Execution Loops — LangChain and CrewAI agent calls missing iteration/time caps
  3. Unprotected Destructive Tools — destructive functions lacking input validation
  4. Hardcoded Credentials — exposed API keys in source

Suppressing false positives

Add # cogext-ignore to the end of any line you want the scanner to skip.

Why

Agents that silently fail are more dangerous than agents that crash. When a tool catches an HTTP error and returns "success", the LLM builds its next step on a false premise. cogext-scan catches this before deploy.

License

MIT


Need help shipping agents to production?

I do 1-day architecture audits for teams deploying AI agents with real production risk. Reply to any GitHub issue or email hello@cogextai.com.

Metadata

Release files for cogext-scan 0.1.2

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

Source distribution (sdist)

Source distribution for cogext-scan 0.1.2
File Size Uploaded Provenance Actions
cogext_scan-0.1.2.tar.gz 8.3 kB Without provenance Details for cogext_scan-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cogext-scan 0.1.2
File Interpreter ABI Platform Actions
cogext_scan-0.1.2-py3-none-any.whl Python 3 none any Details for cogext_scan-0.1.2-py3-none-any.whl

Total release size: 16.8 kB

Release files / cogext_scan-0.1.2.tar.gz

Download URL cogext_scan-0.1.2.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
44f94130cc1badca37d9372c9911ce8d4e1735067fb37bf4933f52a1e79657c1
BLAKE2b-256 checksum
How to use checksums
d7c8c4b906139a97318fd1e76b545255503ee63744aa0e6ad87118a8afd52078
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / cogext_scan-0.1.2-py3-none-any.whl

Download URL cogext_scan-0.1.2-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5932df32683ae43dc6cdf5607ea4bf777a6194b512324a9b03529c0359544823
BLAKE2b-256 checksum
How to use checksums
1ec91dcaf09ea711ef4729ec7bfb04a0b6e191c0dd65f5ed94ff0113dba40e92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for cogext-scan 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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