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.1

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.1
File Size Uploaded Provenance Actions
cogext_scan-0.1.1.tar.gz 7.9 kB Without provenance Details for cogext_scan-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 16.1 kB

Release files / cogext_scan-0.1.1.tar.gz

Download URL cogext_scan-0.1.1.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d5fb3560fca51d5562ba73ae74ccf537b142e8f663f670f7dd4be0002f9c5784
BLAKE2b-256 checksum
How to use checksums
8e194e052f0b2992772c8001eec15e68489d0e622d94a6ab4a5bccef62dc91c1
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.1-py3-none-any.whl

Download URL cogext_scan-0.1.1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
209d051e7c8ff2bc670bde32ea0edc7c21d5ff1a7c647e0ecf62d2844b45beb0
BLAKE2b-256 checksum
How to use checksums
9de523215f1e1328ef47d5b60ce78c78ba0123bf29b4ed81e35acefa2755b841
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.1

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