🛡 AgentGuard
Pre-execution cost estimator for agentic AI systems
AgentGuard analyzes your multi-file agentic codebase and estimates the minimum and maximum possible LLM API cost — without running any code or calling any APIs.
Install
pip install -e .
Usage
agentguard --root_dir ./my_agent
agentguard --root_dir ./my_agent --model claude-3-5-sonnet
agentguard --root_dir ./my_agent --input_tokens 400 --output_max 1000
agentguard --root_dir ./my_agent --json_out report.json
agentguard --root_dir ./my_agent --quiet --dag
What It Detects
- API calls inside loops (cost multiplies with iteration count)
- Nested loops (exponential scaling)
- Missing loop depth limiters (unbounded execution)
- Repeated prompts (caching opportunity)
- Large static prompts (high baseline cost)
- High-complexity tasks (reasoning tax ×20)
Supported Models
gpt-4o, gpt-4o-mini, gpt-4-turbo, claude-3-5-sonnet, claude-3-haiku, claude-3-opus, gemini-1.5-pro, gemini-1.5-flash
Architecture
CLI → Crawler → Analyzer (AST/regex) → Simulator (math model) → Reporter
Metadata
Release files for agentguard-ai-muaz-iqubal-muaz 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agentguard_ai_muaz_iqubal_muaz-0.1.2.tar.gz | 11.8 kB | Without provenance | Details for agentguard_ai_muaz_iqubal_muaz-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentguard_ai_muaz_iqubal_muaz-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for agentguard_ai_muaz_iqubal_muaz-0.1.2-py3-none-any.whl |
Total release size: 24.9 kB
Release files / agentguard_ai_muaz_iqubal_muaz-0.1.2.tar.gz
| Download URL | agentguard_ai_muaz_iqubal_muaz-0.1.2.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bff8ace059f46acb8886ad6f00d88c941781ad57711e140590847b59f71d70d4
|
|
BLAKE2b-256 checksum How to use checksums |
4792178372233cf8f384fe97724890e4afedc727b48111dde672a780d724aac0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / agentguard_ai_muaz_iqubal_muaz-0.1.2-py3-none-any.whl
| Download URL | agentguard_ai_muaz_iqubal_muaz-0.1.2-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81262bee28166f5de32767f6b0a5b82bdb331e2f87e9024d9056fb217eaebfb7
|
|
BLAKE2b-256 checksum How to use checksums |
6f0d6765ecc52ff6f5e65644b7c5e1f74b45ea28b11873e468d32778bbbf7d3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for agentguard-ai-muaz-iqubal-muaz 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.