aigis-cli 1.0.3__tar.gz → 2.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aigis_cli-2.0.2/PKG-INFO +133 -0
- aigis_cli-2.0.2/README.md +106 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/__init__.py +1 -1
- aigis_cli-2.0.2/aigis_cli/auto_verify.py +518 -0
- aigis_cli-2.0.2/aigis_cli/build.py +470 -0
- aigis_cli-2.0.2/aigis_cli/checksum.py +22 -0
- aigis_cli-2.0.2/aigis_cli/cli.py +618 -0
- aigis_cli-2.0.2/aigis_cli/content/index/audit-scan.md +217 -0
- aigis_cli-2.0.2/aigis_cli/content/index/auto-verify-rules.json +439 -0
- aigis_cli-2.0.2/aigis_cli/content/index/context-rules.json +90 -0
- aigis_cli-2.0.2/aigis_cli/content/resolvers/triggers.json +229 -0
- {aigis_cli-1.0.3/aigis_cli/content/implement → aigis_cli-2.0.2/aigis_cli/content/skills/areas}/audit-logging.md +5 -0
- aigis_cli-2.0.2/aigis_cli/content/skills/areas/fallback-patterns.md +200 -0
- aigis_cli-2.0.2/aigis_cli/content/skills/areas/input-validation.md +380 -0
- aigis_cli-2.0.2/aigis_cli/content/skills/areas/pii-handling.md +189 -0
- aigis_cli-2.0.2/aigis_cli/content/skills/areas/rate-limiting.md +246 -0
- aigis_cli-2.0.2/aigis_cli/content/skills/core.md +62 -0
- aigis_cli-2.0.2/aigis_cli/content/skills/infrastructure/logging.md +202 -0
- aigis_cli-2.0.2/aigis_cli/content/skills/infrastructure/rate-limiting.md +169 -0
- aigis_cli-2.0.2/aigis_cli/content/skills/infrastructure/secrets.md +167 -0
- aigis_cli-2.0.2/aigis_cli/content/skills/workflows/fastapi-llm.md +86 -0
- aigis_cli-2.0.2/aigis_cli/fetch.py +232 -0
- aigis_cli-2.0.2/aigis_cli/init_ide.py +159 -0
- aigis_cli-2.0.2/aigis_cli/keywords.py +73 -0
- aigis_cli-2.0.2/aigis_cli.egg-info/PKG-INFO +133 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli.egg-info/SOURCES.txt +26 -15
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/pyproject.toml +1 -1
- aigis_cli-1.0.3/PKG-INFO +0 -59
- aigis_cli-1.0.3/README.md +0 -32
- aigis_cli-1.0.3/aigis_cli/cli.py +0 -280
- aigis_cli-1.0.3/aigis_cli/content/implement/fallback-patterns.md +0 -190
- aigis_cli-1.0.3/aigis_cli/content/implement/input-validation.md +0 -212
- aigis_cli-1.0.3/aigis_cli/content/implement/pii-handling.md +0 -207
- aigis_cli-1.0.3/aigis_cli/content/implement/rate-limiting.md +0 -217
- aigis_cli-1.0.3/aigis_cli/content/index/audit-scan.md +0 -403
- aigis_cli-1.0.3/aigis_cli/fetch.py +0 -99
- aigis_cli-1.0.3/aigis_cli/init_ide.py +0 -107
- aigis_cli-1.0.3/aigis_cli/keywords.py +0 -136
- aigis_cli-1.0.3/aigis_cli.egg-info/PKG-INFO +0 -59
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/LICENSE +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/SKILL.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/annotate.py +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/classify.py +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/index/frameworks.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/index/guardrails.json +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/index/taxonomy.md +0 -0
- {aigis_cli-1.0.3/aigis_cli/content/implement → aigis_cli-2.0.2/aigis_cli/content/skills/areas}/bias-monitoring.md +0 -0
- {aigis_cli-1.0.3/aigis_cli/content/implement → aigis_cli-2.0.2/aigis_cli/content/skills/areas}/confidence-scoring.md +0 -0
- {aigis_cli-1.0.3/aigis_cli/content/implement → aigis_cli-2.0.2/aigis_cli/content/skills/areas}/data-integrity.md +0 -0
- {aigis_cli-1.0.3/aigis_cli/content/implement → aigis_cli-2.0.2/aigis_cli/content/skills/areas}/explainability.md +0 -0
- {aigis_cli-1.0.3/aigis_cli/content/implement → aigis_cli-2.0.2/aigis_cli/content/skills/areas}/human-oversight.md +0 -0
- {aigis_cli-1.0.3/aigis_cli/content/implement → aigis_cli-2.0.2/aigis_cli/content/skills/areas}/monitoring.md +0 -0
- {aigis_cli-1.0.3/aigis_cli/content/implement → aigis_cli-2.0.2/aigis_cli/content/skills/areas}/output-sanitization.md +0 -0
- {aigis_cli-1.0.3/aigis_cli/content/implement → aigis_cli-2.0.2/aigis_cli/content/skills/areas}/prompt-security.md +0 -0
- {aigis_cli-1.0.3/aigis_cli/content/implement → aigis_cli-2.0.2/aigis_cli/content/skills/areas}/rag-security.md +0 -0
- {aigis_cli-1.0.3/aigis_cli/content/implement → aigis_cli-2.0.2/aigis_cli/content/skills/areas}/supply-chain.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/templates/ai-impact-assessment.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/templates/intended-purpose-doc.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/templates/risk-characterization.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/templates/third-party-assessment.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-audit-logging.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-bias-monitoring.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-confidence-scoring.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-data-integrity.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-explainability.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-fallback-patterns.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-human-oversight.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-input-validation.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-monitoring.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-output-sanitization.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-pii-handling.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-prompt-security.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-rag-security.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-rate-limiting.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/content/verify/checklist-supply-chain.md +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli/search.py +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli.egg-info/dependency_links.txt +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli.egg-info/entry_points.txt +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli.egg-info/requires.txt +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/aigis_cli.egg-info/top_level.txt +0 -0
- {aigis_cli-1.0.3 → aigis_cli-2.0.2}/setup.cfg +0 -0
aigis_cli-2.0.2/PKG-INFO
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aigis-cli
|
|
3
|
+
Version: 2.0.2
|
|
4
|
+
Summary: AI governance guardrails for coding agents. Framework-aligned security and compliance patterns from NIST AI RMF, OWASP Top 10 for LLMs, and ISO/IEC 42001.
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Homepage, https://github.com/NayanKanaparthi/aigis
|
|
7
|
+
Project-URL: Repository, https://github.com/NayanKanaparthi/aigis
|
|
8
|
+
Keywords: ai,governance,security,compliance,llm,owasp,nist,iso42001,guardrails,coding-agent
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Topic :: Security
|
|
17
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
18
|
+
Requires-Python: >=3.9
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: click>=8.0
|
|
22
|
+
Requires-Dist: rich>=13.0
|
|
23
|
+
Requires-Dist: python-frontmatter>=1.0
|
|
24
|
+
Provides-Extra: dev
|
|
25
|
+
Requires-Dist: build>=1.0; extra == "dev"
|
|
26
|
+
Dynamic: license-file
|
|
27
|
+
|
|
28
|
+
# Aigis
|
|
29
|
+
|
|
30
|
+
**AI governance that ships with your code.**
|
|
31
|
+
|
|
32
|
+
Aigis is a command-line tool that gives coding agents like Cursor, Claude Code, GitHub Copilot, and Windsurf curated AI governance patterns mapped to NIST AI RMF, OWASP Top 10 for LLMs, and ISO/IEC 42001.
|
|
33
|
+
|
|
34
|
+
You describe what you're building. Aigis classifies it against the frameworks that apply. Your agent pulls the right governance patterns and implements them. One command verifies the result.
|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm install -g @aigis-ai/cli
|
|
40
|
+
# or
|
|
41
|
+
pip install aigis-cli
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Verify:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
aigis --version
|
|
48
|
+
# 2.0.1
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Quick start
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
aigis build "customer support chatbot with order history lookup"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Aigis will classify the description against NIST, OWASP, and ISO frameworks, identify relevant governance areas (PII handling, rate limiting, audit logging, prompt security), and produce a consolidated brief your agent can implement from.
|
|
58
|
+
|
|
59
|
+
Paste the brief into your coding agent's chat. The agent implements the patterns. Then:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
aigis verify <area> --auto .
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Runs deterministic checks on the implementation.
|
|
66
|
+
|
|
67
|
+
## What's new in v2.0
|
|
68
|
+
|
|
69
|
+
- **`aigis build`** — new command that produces one consolidated governance brief per project
|
|
70
|
+
- **Infrastructure content** — production-ready patterns for rate limiting, secrets management, and structured logging
|
|
71
|
+
- **Curated resolver** — 39 high-signal triggers mapped to traits, with interactive confirmation for low-confidence matches
|
|
72
|
+
- **Content architecture redesign** — areas, workflows, and infrastructure separated into layered skills, built around how modern AI agents actually read context
|
|
73
|
+
|
|
74
|
+
## How Aigis is different
|
|
75
|
+
|
|
76
|
+
**Structured.** Aigis is a compiler for agent instructions, not a prompt. The resolver uses deterministic rules. The procedures have explicit verification checkpoints. Brief generation is fully deterministic — same description produces byte-identical output.
|
|
77
|
+
|
|
78
|
+
**Honest.** Every iteration of v2.0 was benchmarked. The final numbers, against the same 10 descriptions:
|
|
79
|
+
|
|
80
|
+
- Baseline (no Aigis): P=0.737, R=0.905, F1=0.790
|
|
81
|
+
- v2.0 (aigis build): P=0.847, R=0.851, F1=0.837
|
|
82
|
+
|
|
83
|
+
F1 beats baseline by +0.047. Precision improved by +15%. Methodology and per-run tables live in `benchmarks/`.
|
|
84
|
+
|
|
85
|
+
**Open source.** Local. Never calls external LLMs. Never writes files to your project. Your code, your tools, your accountability.
|
|
86
|
+
|
|
87
|
+
## The principle behind Aigis
|
|
88
|
+
|
|
89
|
+
Governance isn't a content problem. It's an interface problem.
|
|
90
|
+
|
|
91
|
+
AI governance frameworks exist. NIST AI RMF, OWASP Top 10 for LLMs, ISO/IEC 42001 — all rigorous, all published, all sitting in documents that engineering teams never read.
|
|
92
|
+
|
|
93
|
+
Aigis treats governance as an agent-computer interface problem. Context layered for on-demand loading. Deterministic rules where accuracy isn't negotiable. Flexible reasoning where real projects don't fit rigid templates.
|
|
94
|
+
|
|
95
|
+
Inspired by [SWE-agent's work on agent-computer interfaces](https://arxiv.org/abs/2405.15793) — the idea that how information reaches an LM agent matters as much as what reaches it.
|
|
96
|
+
|
|
97
|
+
## Commands
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
aigis build "<description>" # Generate governance brief (the main command)
|
|
101
|
+
aigis build "..." --list # List areas without full brief
|
|
102
|
+
aigis build "..." --compact # Pointer-only brief
|
|
103
|
+
|
|
104
|
+
aigis classify "<text>" # Classify traits from description
|
|
105
|
+
aigis get <area> # Fetch governance procedure for an area
|
|
106
|
+
aigis infra <area> # Fetch infrastructure pattern (rate-limiting, secrets, logging)
|
|
107
|
+
aigis workflow <type> # Fetch workflow template
|
|
108
|
+
|
|
109
|
+
aigis verify <area> --auto . # Run deterministic checks on your implementation
|
|
110
|
+
aigis audit . # Summary audit of all implemented areas
|
|
111
|
+
aigis search --list # List all available areas
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Run `aigis --help` for full options.
|
|
115
|
+
|
|
116
|
+
## Supported agents
|
|
117
|
+
|
|
118
|
+
- Cursor
|
|
119
|
+
- Claude Code
|
|
120
|
+
- GitHub Copilot
|
|
121
|
+
- Windsurf
|
|
122
|
+
|
|
123
|
+
Run `aigis init <ide>` to set up your IDE rules. The resolver's trigger reference is embedded in the rules file with a checksum that automatically refreshes on `aigis init --refresh`.
|
|
124
|
+
|
|
125
|
+
## Contributing
|
|
126
|
+
|
|
127
|
+
Aigis is built around a curated trigger map for classification. Trigger contributions are welcome, with one-sentence use-case justification per the template in `.github/PULL_REQUEST_TEMPLATE/trigger_mapping.md`.
|
|
128
|
+
|
|
129
|
+
See `CONTRIBUTING.md` for the full contributor workflow, including how to add new governance areas, workflows, or infrastructure patterns.
|
|
130
|
+
|
|
131
|
+
## License
|
|
132
|
+
|
|
133
|
+
MIT
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Aigis
|
|
2
|
+
|
|
3
|
+
**AI governance that ships with your code.**
|
|
4
|
+
|
|
5
|
+
Aigis is a command-line tool that gives coding agents like Cursor, Claude Code, GitHub Copilot, and Windsurf curated AI governance patterns mapped to NIST AI RMF, OWASP Top 10 for LLMs, and ISO/IEC 42001.
|
|
6
|
+
|
|
7
|
+
You describe what you're building. Aigis classifies it against the frameworks that apply. Your agent pulls the right governance patterns and implements them. One command verifies the result.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install -g @aigis-ai/cli
|
|
13
|
+
# or
|
|
14
|
+
pip install aigis-cli
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Verify:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
aigis --version
|
|
21
|
+
# 2.0.1
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Quick start
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
aigis build "customer support chatbot with order history lookup"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Aigis will classify the description against NIST, OWASP, and ISO frameworks, identify relevant governance areas (PII handling, rate limiting, audit logging, prompt security), and produce a consolidated brief your agent can implement from.
|
|
31
|
+
|
|
32
|
+
Paste the brief into your coding agent's chat. The agent implements the patterns. Then:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
aigis verify <area> --auto .
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Runs deterministic checks on the implementation.
|
|
39
|
+
|
|
40
|
+
## What's new in v2.0
|
|
41
|
+
|
|
42
|
+
- **`aigis build`** — new command that produces one consolidated governance brief per project
|
|
43
|
+
- **Infrastructure content** — production-ready patterns for rate limiting, secrets management, and structured logging
|
|
44
|
+
- **Curated resolver** — 39 high-signal triggers mapped to traits, with interactive confirmation for low-confidence matches
|
|
45
|
+
- **Content architecture redesign** — areas, workflows, and infrastructure separated into layered skills, built around how modern AI agents actually read context
|
|
46
|
+
|
|
47
|
+
## How Aigis is different
|
|
48
|
+
|
|
49
|
+
**Structured.** Aigis is a compiler for agent instructions, not a prompt. The resolver uses deterministic rules. The procedures have explicit verification checkpoints. Brief generation is fully deterministic — same description produces byte-identical output.
|
|
50
|
+
|
|
51
|
+
**Honest.** Every iteration of v2.0 was benchmarked. The final numbers, against the same 10 descriptions:
|
|
52
|
+
|
|
53
|
+
- Baseline (no Aigis): P=0.737, R=0.905, F1=0.790
|
|
54
|
+
- v2.0 (aigis build): P=0.847, R=0.851, F1=0.837
|
|
55
|
+
|
|
56
|
+
F1 beats baseline by +0.047. Precision improved by +15%. Methodology and per-run tables live in `benchmarks/`.
|
|
57
|
+
|
|
58
|
+
**Open source.** Local. Never calls external LLMs. Never writes files to your project. Your code, your tools, your accountability.
|
|
59
|
+
|
|
60
|
+
## The principle behind Aigis
|
|
61
|
+
|
|
62
|
+
Governance isn't a content problem. It's an interface problem.
|
|
63
|
+
|
|
64
|
+
AI governance frameworks exist. NIST AI RMF, OWASP Top 10 for LLMs, ISO/IEC 42001 — all rigorous, all published, all sitting in documents that engineering teams never read.
|
|
65
|
+
|
|
66
|
+
Aigis treats governance as an agent-computer interface problem. Context layered for on-demand loading. Deterministic rules where accuracy isn't negotiable. Flexible reasoning where real projects don't fit rigid templates.
|
|
67
|
+
|
|
68
|
+
Inspired by [SWE-agent's work on agent-computer interfaces](https://arxiv.org/abs/2405.15793) — the idea that how information reaches an LM agent matters as much as what reaches it.
|
|
69
|
+
|
|
70
|
+
## Commands
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
aigis build "<description>" # Generate governance brief (the main command)
|
|
74
|
+
aigis build "..." --list # List areas without full brief
|
|
75
|
+
aigis build "..." --compact # Pointer-only brief
|
|
76
|
+
|
|
77
|
+
aigis classify "<text>" # Classify traits from description
|
|
78
|
+
aigis get <area> # Fetch governance procedure for an area
|
|
79
|
+
aigis infra <area> # Fetch infrastructure pattern (rate-limiting, secrets, logging)
|
|
80
|
+
aigis workflow <type> # Fetch workflow template
|
|
81
|
+
|
|
82
|
+
aigis verify <area> --auto . # Run deterministic checks on your implementation
|
|
83
|
+
aigis audit . # Summary audit of all implemented areas
|
|
84
|
+
aigis search --list # List all available areas
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Run `aigis --help` for full options.
|
|
88
|
+
|
|
89
|
+
## Supported agents
|
|
90
|
+
|
|
91
|
+
- Cursor
|
|
92
|
+
- Claude Code
|
|
93
|
+
- GitHub Copilot
|
|
94
|
+
- Windsurf
|
|
95
|
+
|
|
96
|
+
Run `aigis init <ide>` to set up your IDE rules. The resolver's trigger reference is embedded in the rules file with a checksum that automatically refreshes on `aigis init --refresh`.
|
|
97
|
+
|
|
98
|
+
## Contributing
|
|
99
|
+
|
|
100
|
+
Aigis is built around a curated trigger map for classification. Trigger contributions are welcome, with one-sentence use-case justification per the template in `.github/PULL_REQUEST_TEMPLATE/trigger_mapping.md`.
|
|
101
|
+
|
|
102
|
+
See `CONTRIBUTING.md` for the full contributor workflow, including how to add new governance areas, workflows, or infrastructure patterns.
|
|
103
|
+
|
|
104
|
+
## License
|
|
105
|
+
|
|
106
|
+
MIT
|