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.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 cogext-scan 0.1.0
File Size Uploaded Provenance Actions
cogext_scan-0.1.0.tar.gz 7.8 kB Without provenance Details for cogext_scan-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 15.9 kB

Release files / cogext_scan-0.1.0.tar.gz

Download URL cogext_scan-0.1.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
911872113609534d391e7d0dd4b3175f3780df3bf6ff6f46958d2baa089f8516
BLAKE2b-256 checksum
How to use checksums
c847bae749c56db15f5c88350fbfe28f34549cc9fbeb79e68ffffcf46561014e
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.0-py3-none-any.whl

Download URL cogext_scan-0.1.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c3d3962a530873007bf7bbcb9b0a18c593e8c83e2c9aeeb7bfdcb723efce663
BLAKE2b-256 checksum
How to use checksums
f49e8b59a5e47d28d03eacd2df7175f529f222f4c41b2ac40e60180cddd9a65a
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.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.

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