aigis-cli 2.1.0__tar.gz → 2.1.1__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.1.1/PKG-INFO +182 -0
- aigis_cli-2.1.1/README.md +155 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/__init__.py +1 -1
- aigis_cli-2.1.1/aigis_cli.egg-info/PKG-INFO +182 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/pyproject.toml +1 -1
- aigis_cli-2.1.0/PKG-INFO +0 -133
- aigis_cli-2.1.0/README.md +0 -106
- aigis_cli-2.1.0/aigis_cli.egg-info/PKG-INFO +0 -133
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/LICENSE +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/SKILL.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/annotate.py +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/auto_verify.py +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/build.py +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/checksum.py +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/classify.py +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/cli.py +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/index/audit-scan.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/index/auto-verify-rules.json +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/index/context-rules.json +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/index/frameworks.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/index/guardrails.json +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/index/taxonomy.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/resolvers/triggers.json +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/audit-logging.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/bias-monitoring.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/confidence-scoring.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/data-integrity.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/eu-ai-act-art-13-deployer-transparency.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/eu-ai-act-art-50-transparency-disclosure.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/eu-ai-act-art-73-incident-reporting.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/eu-ai-act-art-9-risk-management.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/explainability.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/fallback-patterns.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/human-oversight.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/input-validation.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/monitoring.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/output-sanitization.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/pii-handling.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/prompt-security.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/rag-security.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/rate-limiting.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/areas/supply-chain.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/core.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/infrastructure/logging.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/infrastructure/rate-limiting.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/infrastructure/secrets.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/workflows/fastapi-llm.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/templates/ai-impact-assessment.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/templates/eu-ai-act-annex-iv.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/templates/intended-purpose-doc.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/templates/risk-characterization.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/templates/third-party-assessment.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-audit-logging.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-bias-monitoring.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-confidence-scoring.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-data-integrity.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-explainability.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-fallback-patterns.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-human-oversight.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-input-validation.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-monitoring.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-output-sanitization.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-pii-handling.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-prompt-security.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-rag-security.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-rate-limiting.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-supply-chain.md +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/fetch.py +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/init_ide.py +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/jurisdiction.py +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/keywords.py +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/report.py +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/search.py +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli.egg-info/SOURCES.txt +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli.egg-info/dependency_links.txt +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli.egg-info/entry_points.txt +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli.egg-info/requires.txt +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli.egg-info/top_level.txt +0 -0
- {aigis_cli-2.1.0 → aigis_cli-2.1.1}/setup.cfg +0 -0
aigis_cli-2.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aigis-cli
|
|
3
|
+
Version: 2.1.1
|
|
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 sits between you and your coding agent (Cursor, Claude Code, GitHub Copilot, Windsurf) and gives the agent curated AI governance patterns mapped to NIST AI RMF, OWASP Top 10 for LLMs, ISO/IEC 42001, and the EU AI Act.
|
|
33
|
+
|
|
34
|
+
You don't run Aigis. Your agent does. After one setup command, you describe what you're building and your agent picks the right governance patterns, implements them, and verifies the result, all in the same chat where you write code.
|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pip install aigis-cli
|
|
40
|
+
# or
|
|
41
|
+
npm install -g @aigis-ai/cli
|
|
42
|
+
|
|
43
|
+
cd your-project
|
|
44
|
+
aigis init cursor # or: claude-code, copilot, windsurf
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
That's it. `aigis init` writes a single rules file (`.cursorrules` for Cursor, `.github/copilot-instructions.md` for Copilot, etc.) that teaches your agent the Aigis workflow. Your agent reads it on every interaction in this project.
|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
## Quick start
|
|
52
|
+
|
|
53
|
+
Open the project in your IDE. In the agent chat, just describe what you're building:
|
|
54
|
+
|
|
55
|
+
> *Build me an EU AI Act compliant customer support chatbot for an e-commerce site. Use aigis to figure out the governance patterns and apply them.*
|
|
56
|
+
|
|
57
|
+
Your agent will read `.cursorrules`, classify the description against the resolver, fetch the relevant procedures, and implement them, invoking `aigis` itself as it works:
|
|
58
|
+
|
|
59
|
+

|
|
60
|
+
|
|
61
|
+
When the agent is done, you can verify deterministically:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
aigis verify input-validation --auto . --jurisdiction eu
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+

|
|
68
|
+
|
|
69
|
+
The whole loop, describe, implement, verify, happens without leaving the IDE. You stay in the chat; the agent uses the CLI.
|
|
70
|
+
|
|
71
|
+
## What `aigis init` actually did
|
|
72
|
+
|
|
73
|
+
When you ran `aigis init cursor`, three things landed in your repo:
|
|
74
|
+
|
|
75
|
+
1. **`.cursorrules`** — the Aigis "core skill" your agent loads on every interaction. It documents the workflow (`classify → build → implement → verify → report`) and embeds a 39-phrase resolver block (high-confidence and low-confidence triggers) the agent uses to pick traits from your description.
|
|
76
|
+
2. **A checksum** at the top of the resolver block. When Aigis updates, `aigis init <ide> --refresh` overwrites cleanly; mismatched checksums error out so you can see what changed.
|
|
77
|
+
3. **No hidden services. No telemetry. No background processes.** Just a markdown file your agent reads.
|
|
78
|
+
|
|
79
|
+
Optional add-ons at init time:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
aigis init cursor --ci github # drops .github/workflows/aigis.yml
|
|
83
|
+
aigis init cursor --hook # installs .git/hooks/pre-commit
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Both surfaces read a single `.aigisrc.json` config:
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{ "areas": ["pii-handling", "audit-logging"], "jurisdiction": "eu" }
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
The CI workflow runs `aigis verify` on every PR; the pre-commit hook runs it before each commit. Configure once, both run.
|
|
93
|
+
|
|
94
|
+
## What's new in v2.1
|
|
95
|
+
|
|
96
|
+
- **EU AI Act mapping** — Articles 9, 10, 12, 13, 14, 15, 50, 72, 73 mapped to runnable governance patterns, plus an Annex IV technical documentation template
|
|
97
|
+
- **`--jurisdiction` flag** (`eu`, `us-regulated`) — gates content by where you ship. EU AI Act citations only surface when you're shipping to EU users
|
|
98
|
+
- **`aigis report`** — generates audit-ready compliance documentation with cross-framework citations (NIST + OWASP + ISO + EU AI Act) and file:line evidence per check
|
|
99
|
+
- **Activation surfaces** — `aigis init --ci github` drops a GitHub Action; `aigis init --hook` installs a pre-commit hook
|
|
100
|
+
- **`--tight` flag** (experimental) — minimal briefs for users who want less context. Requires ≥2 trait matches per area instead of ≥1
|
|
101
|
+
- **Resolver expansion** — 27 new triggers covering modern AI project types (internal coding assistants, agentic code review, document Q&A, image generation, enterprise search) and EU Annex III high-risk categories (biometric ID, credit scoring, hiring, law enforcement)
|
|
102
|
+
|
|
103
|
+
## The principle behind Aigis
|
|
104
|
+
|
|
105
|
+
Governance isn't a content problem. It's an interface problem.
|
|
106
|
+
|
|
107
|
+
NIST AI RMF, OWASP Top 10 for LLMs, ISO/IEC 42001, and the EU AI Act are all rigorous, all published, and all sit in documents that engineering teams never read. Aigis treats governance as an **agent-computer interface** problem: how the right content reaches an LM agent at the right time, in the right shape.
|
|
108
|
+
|
|
109
|
+
- Context layered for on-demand loading (core skill always loaded; per-area procedures fetched when needed)
|
|
110
|
+
- Deterministic rules where accuracy isn't negotiable (resolver triggers, brief generation, verify regexes)
|
|
111
|
+
- Flexible reasoning where real projects don't fit rigid templates (the brief tells the agent to skip areas that don't apply, with a written reason)
|
|
112
|
+
|
|
113
|
+
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.
|
|
114
|
+
|
|
115
|
+
## Manual CLI reference (for CI, scripting, audit prep, power users)
|
|
116
|
+
|
|
117
|
+
The CLI exists in case you want to drive Aigis directly, for CI workflows, audit prep, debugging, or one-off invocations.
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# Classification + brief
|
|
121
|
+
aigis classify "<description>" # detect traits + recommended areas
|
|
122
|
+
aigis build "<description>" # the consolidated brief (the main command)
|
|
123
|
+
aigis build "..." --jurisdiction eu # surface EU AI Act content for EU-bound systems
|
|
124
|
+
aigis build "..." --tight # minimal brief: ≥2 trait matches required (experimental)
|
|
125
|
+
aigis build "..." --list # area names + traits, no procedure content
|
|
126
|
+
aigis build "..." --compact # pointer-only brief
|
|
127
|
+
|
|
128
|
+
# Per-area work
|
|
129
|
+
aigis get <area> # fetch a single governance procedure
|
|
130
|
+
aigis infra <area> # fetch infrastructure pattern (rate-limiting, secrets, logging)
|
|
131
|
+
aigis workflow <type> # fetch workflow template
|
|
132
|
+
|
|
133
|
+
# Verify + audit
|
|
134
|
+
aigis verify <area> --auto . # deterministic check on your implementation
|
|
135
|
+
aigis verify <area> --auto . --jurisdiction eu # surfaces EU AI Act citations in output
|
|
136
|
+
aigis report --from-classify "<desc>" --jurisdiction eu --output audit.md
|
|
137
|
+
# audit-ready compliance documentation
|
|
138
|
+
aigis audit --scan # discovery prompt for auditing existing code
|
|
139
|
+
aigis audit --traits <list> # scoped audit with deterministic denominator
|
|
140
|
+
|
|
141
|
+
# Misc
|
|
142
|
+
aigis search --list # list all available areas
|
|
143
|
+
aigis traits # list classification traits
|
|
144
|
+
aigis template <id> # compliance documentation template
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Run `aigis --help` for full options.
|
|
148
|
+
|
|
149
|
+
## Honest about what this isn't
|
|
150
|
+
|
|
151
|
+
- **Not a certification.** EU AI Act conformity assessment requires a notified body. `aigis report` is preparation material; it does not certify.
|
|
152
|
+
- **Not a security audit.** `aigis verify` is heuristic regex over your source. It catches common misimplementations; it doesn't replace SAST, code review, or penetration testing.
|
|
153
|
+
- **Doesn't run your code or call your APIs.** The agent does the work. Aigis provides the brief, the verifier, and the audit doc.
|
|
154
|
+
- **Local. No cloud. No telemetry.** Aigis ships nothing back to a server. Your descriptions, your code, and your verify results stay on your machine.
|
|
155
|
+
|
|
156
|
+
## Benchmark results
|
|
157
|
+
|
|
158
|
+
v2.0 was benchmarked at every iteration. Final numbers, against the same 10 descriptions:
|
|
159
|
+
|
|
160
|
+
- Baseline (no Aigis): P=0.737, R=0.905, F1=0.790
|
|
161
|
+
- v2.0 (`aigis build`): P=0.847, R=0.851, F1=0.837
|
|
162
|
+
|
|
163
|
+
F1 beats baseline by +0.047. v2.1 ships `--tight` as a flag-gated experiment; promotion to default in v2.2 is pending a confirmation benchmark. Methodology, per-run tables, and the v2.1 manual end-to-end test live in the [`benchmarks/`](https://github.com/NayanKanaparthi/aigis) directory.
|
|
164
|
+
|
|
165
|
+
## Supported agents
|
|
166
|
+
|
|
167
|
+
- Cursor
|
|
168
|
+
- Claude Code
|
|
169
|
+
- GitHub Copilot
|
|
170
|
+
- Windsurf
|
|
171
|
+
|
|
172
|
+
Each maps to a different rules file location. `aigis init <ide>` handles the difference; `--refresh` updates safely.
|
|
173
|
+
|
|
174
|
+
## Contributing
|
|
175
|
+
|
|
176
|
+
Aigis is built around a curated trigger map for classification. Trigger contributions are welcome, with a one-sentence use-case justification per the template in `.github/PULL_REQUEST_TEMPLATE/trigger_mapping.md`.
|
|
177
|
+
|
|
178
|
+
See `CONTRIBUTING.md` for the full contributor workflow, including how to add new governance areas, workflows, infrastructure patterns, or EU AI Act article mappings.
|
|
179
|
+
|
|
180
|
+
## License
|
|
181
|
+
|
|
182
|
+
MIT
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# Aigis
|
|
2
|
+
|
|
3
|
+
**AI governance that ships with your code.**
|
|
4
|
+
|
|
5
|
+
Aigis sits between you and your coding agent (Cursor, Claude Code, GitHub Copilot, Windsurf) and gives the agent curated AI governance patterns mapped to NIST AI RMF, OWASP Top 10 for LLMs, ISO/IEC 42001, and the EU AI Act.
|
|
6
|
+
|
|
7
|
+
You don't run Aigis. Your agent does. After one setup command, you describe what you're building and your agent picks the right governance patterns, implements them, and verifies the result, all in the same chat where you write code.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install aigis-cli
|
|
13
|
+
# or
|
|
14
|
+
npm install -g @aigis-ai/cli
|
|
15
|
+
|
|
16
|
+
cd your-project
|
|
17
|
+
aigis init cursor # or: claude-code, copilot, windsurf
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
That's it. `aigis init` writes a single rules file (`.cursorrules` for Cursor, `.github/copilot-instructions.md` for Copilot, etc.) that teaches your agent the Aigis workflow. Your agent reads it on every interaction in this project.
|
|
21
|
+
|
|
22
|
+

|
|
23
|
+
|
|
24
|
+
## Quick start
|
|
25
|
+
|
|
26
|
+
Open the project in your IDE. In the agent chat, just describe what you're building:
|
|
27
|
+
|
|
28
|
+
> *Build me an EU AI Act compliant customer support chatbot for an e-commerce site. Use aigis to figure out the governance patterns and apply them.*
|
|
29
|
+
|
|
30
|
+
Your agent will read `.cursorrules`, classify the description against the resolver, fetch the relevant procedures, and implement them, invoking `aigis` itself as it works:
|
|
31
|
+
|
|
32
|
+

|
|
33
|
+
|
|
34
|
+
When the agent is done, you can verify deterministically:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
aigis verify input-validation --auto . --jurisdiction eu
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+

|
|
41
|
+
|
|
42
|
+
The whole loop, describe, implement, verify, happens without leaving the IDE. You stay in the chat; the agent uses the CLI.
|
|
43
|
+
|
|
44
|
+
## What `aigis init` actually did
|
|
45
|
+
|
|
46
|
+
When you ran `aigis init cursor`, three things landed in your repo:
|
|
47
|
+
|
|
48
|
+
1. **`.cursorrules`** — the Aigis "core skill" your agent loads on every interaction. It documents the workflow (`classify → build → implement → verify → report`) and embeds a 39-phrase resolver block (high-confidence and low-confidence triggers) the agent uses to pick traits from your description.
|
|
49
|
+
2. **A checksum** at the top of the resolver block. When Aigis updates, `aigis init <ide> --refresh` overwrites cleanly; mismatched checksums error out so you can see what changed.
|
|
50
|
+
3. **No hidden services. No telemetry. No background processes.** Just a markdown file your agent reads.
|
|
51
|
+
|
|
52
|
+
Optional add-ons at init time:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
aigis init cursor --ci github # drops .github/workflows/aigis.yml
|
|
56
|
+
aigis init cursor --hook # installs .git/hooks/pre-commit
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Both surfaces read a single `.aigisrc.json` config:
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
{ "areas": ["pii-handling", "audit-logging"], "jurisdiction": "eu" }
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
The CI workflow runs `aigis verify` on every PR; the pre-commit hook runs it before each commit. Configure once, both run.
|
|
66
|
+
|
|
67
|
+
## What's new in v2.1
|
|
68
|
+
|
|
69
|
+
- **EU AI Act mapping** — Articles 9, 10, 12, 13, 14, 15, 50, 72, 73 mapped to runnable governance patterns, plus an Annex IV technical documentation template
|
|
70
|
+
- **`--jurisdiction` flag** (`eu`, `us-regulated`) — gates content by where you ship. EU AI Act citations only surface when you're shipping to EU users
|
|
71
|
+
- **`aigis report`** — generates audit-ready compliance documentation with cross-framework citations (NIST + OWASP + ISO + EU AI Act) and file:line evidence per check
|
|
72
|
+
- **Activation surfaces** — `aigis init --ci github` drops a GitHub Action; `aigis init --hook` installs a pre-commit hook
|
|
73
|
+
- **`--tight` flag** (experimental) — minimal briefs for users who want less context. Requires ≥2 trait matches per area instead of ≥1
|
|
74
|
+
- **Resolver expansion** — 27 new triggers covering modern AI project types (internal coding assistants, agentic code review, document Q&A, image generation, enterprise search) and EU Annex III high-risk categories (biometric ID, credit scoring, hiring, law enforcement)
|
|
75
|
+
|
|
76
|
+
## The principle behind Aigis
|
|
77
|
+
|
|
78
|
+
Governance isn't a content problem. It's an interface problem.
|
|
79
|
+
|
|
80
|
+
NIST AI RMF, OWASP Top 10 for LLMs, ISO/IEC 42001, and the EU AI Act are all rigorous, all published, and all sit in documents that engineering teams never read. Aigis treats governance as an **agent-computer interface** problem: how the right content reaches an LM agent at the right time, in the right shape.
|
|
81
|
+
|
|
82
|
+
- Context layered for on-demand loading (core skill always loaded; per-area procedures fetched when needed)
|
|
83
|
+
- Deterministic rules where accuracy isn't negotiable (resolver triggers, brief generation, verify regexes)
|
|
84
|
+
- Flexible reasoning where real projects don't fit rigid templates (the brief tells the agent to skip areas that don't apply, with a written reason)
|
|
85
|
+
|
|
86
|
+
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.
|
|
87
|
+
|
|
88
|
+
## Manual CLI reference (for CI, scripting, audit prep, power users)
|
|
89
|
+
|
|
90
|
+
The CLI exists in case you want to drive Aigis directly, for CI workflows, audit prep, debugging, or one-off invocations.
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
# Classification + brief
|
|
94
|
+
aigis classify "<description>" # detect traits + recommended areas
|
|
95
|
+
aigis build "<description>" # the consolidated brief (the main command)
|
|
96
|
+
aigis build "..." --jurisdiction eu # surface EU AI Act content for EU-bound systems
|
|
97
|
+
aigis build "..." --tight # minimal brief: ≥2 trait matches required (experimental)
|
|
98
|
+
aigis build "..." --list # area names + traits, no procedure content
|
|
99
|
+
aigis build "..." --compact # pointer-only brief
|
|
100
|
+
|
|
101
|
+
# Per-area work
|
|
102
|
+
aigis get <area> # fetch a single governance procedure
|
|
103
|
+
aigis infra <area> # fetch infrastructure pattern (rate-limiting, secrets, logging)
|
|
104
|
+
aigis workflow <type> # fetch workflow template
|
|
105
|
+
|
|
106
|
+
# Verify + audit
|
|
107
|
+
aigis verify <area> --auto . # deterministic check on your implementation
|
|
108
|
+
aigis verify <area> --auto . --jurisdiction eu # surfaces EU AI Act citations in output
|
|
109
|
+
aigis report --from-classify "<desc>" --jurisdiction eu --output audit.md
|
|
110
|
+
# audit-ready compliance documentation
|
|
111
|
+
aigis audit --scan # discovery prompt for auditing existing code
|
|
112
|
+
aigis audit --traits <list> # scoped audit with deterministic denominator
|
|
113
|
+
|
|
114
|
+
# Misc
|
|
115
|
+
aigis search --list # list all available areas
|
|
116
|
+
aigis traits # list classification traits
|
|
117
|
+
aigis template <id> # compliance documentation template
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Run `aigis --help` for full options.
|
|
121
|
+
|
|
122
|
+
## Honest about what this isn't
|
|
123
|
+
|
|
124
|
+
- **Not a certification.** EU AI Act conformity assessment requires a notified body. `aigis report` is preparation material; it does not certify.
|
|
125
|
+
- **Not a security audit.** `aigis verify` is heuristic regex over your source. It catches common misimplementations; it doesn't replace SAST, code review, or penetration testing.
|
|
126
|
+
- **Doesn't run your code or call your APIs.** The agent does the work. Aigis provides the brief, the verifier, and the audit doc.
|
|
127
|
+
- **Local. No cloud. No telemetry.** Aigis ships nothing back to a server. Your descriptions, your code, and your verify results stay on your machine.
|
|
128
|
+
|
|
129
|
+
## Benchmark results
|
|
130
|
+
|
|
131
|
+
v2.0 was benchmarked at every iteration. Final numbers, against the same 10 descriptions:
|
|
132
|
+
|
|
133
|
+
- Baseline (no Aigis): P=0.737, R=0.905, F1=0.790
|
|
134
|
+
- v2.0 (`aigis build`): P=0.847, R=0.851, F1=0.837
|
|
135
|
+
|
|
136
|
+
F1 beats baseline by +0.047. v2.1 ships `--tight` as a flag-gated experiment; promotion to default in v2.2 is pending a confirmation benchmark. Methodology, per-run tables, and the v2.1 manual end-to-end test live in the [`benchmarks/`](https://github.com/NayanKanaparthi/aigis) directory.
|
|
137
|
+
|
|
138
|
+
## Supported agents
|
|
139
|
+
|
|
140
|
+
- Cursor
|
|
141
|
+
- Claude Code
|
|
142
|
+
- GitHub Copilot
|
|
143
|
+
- Windsurf
|
|
144
|
+
|
|
145
|
+
Each maps to a different rules file location. `aigis init <ide>` handles the difference; `--refresh` updates safely.
|
|
146
|
+
|
|
147
|
+
## Contributing
|
|
148
|
+
|
|
149
|
+
Aigis is built around a curated trigger map for classification. Trigger contributions are welcome, with a one-sentence use-case justification per the template in `.github/PULL_REQUEST_TEMPLATE/trigger_mapping.md`.
|
|
150
|
+
|
|
151
|
+
See `CONTRIBUTING.md` for the full contributor workflow, including how to add new governance areas, workflows, infrastructure patterns, or EU AI Act article mappings.
|
|
152
|
+
|
|
153
|
+
## License
|
|
154
|
+
|
|
155
|
+
MIT
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aigis-cli
|
|
3
|
+
Version: 2.1.1
|
|
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 sits between you and your coding agent (Cursor, Claude Code, GitHub Copilot, Windsurf) and gives the agent curated AI governance patterns mapped to NIST AI RMF, OWASP Top 10 for LLMs, ISO/IEC 42001, and the EU AI Act.
|
|
33
|
+
|
|
34
|
+
You don't run Aigis. Your agent does. After one setup command, you describe what you're building and your agent picks the right governance patterns, implements them, and verifies the result, all in the same chat where you write code.
|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pip install aigis-cli
|
|
40
|
+
# or
|
|
41
|
+
npm install -g @aigis-ai/cli
|
|
42
|
+
|
|
43
|
+
cd your-project
|
|
44
|
+
aigis init cursor # or: claude-code, copilot, windsurf
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
That's it. `aigis init` writes a single rules file (`.cursorrules` for Cursor, `.github/copilot-instructions.md` for Copilot, etc.) that teaches your agent the Aigis workflow. Your agent reads it on every interaction in this project.
|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
## Quick start
|
|
52
|
+
|
|
53
|
+
Open the project in your IDE. In the agent chat, just describe what you're building:
|
|
54
|
+
|
|
55
|
+
> *Build me an EU AI Act compliant customer support chatbot for an e-commerce site. Use aigis to figure out the governance patterns and apply them.*
|
|
56
|
+
|
|
57
|
+
Your agent will read `.cursorrules`, classify the description against the resolver, fetch the relevant procedures, and implement them, invoking `aigis` itself as it works:
|
|
58
|
+
|
|
59
|
+

|
|
60
|
+
|
|
61
|
+
When the agent is done, you can verify deterministically:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
aigis verify input-validation --auto . --jurisdiction eu
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+

|
|
68
|
+
|
|
69
|
+
The whole loop, describe, implement, verify, happens without leaving the IDE. You stay in the chat; the agent uses the CLI.
|
|
70
|
+
|
|
71
|
+
## What `aigis init` actually did
|
|
72
|
+
|
|
73
|
+
When you ran `aigis init cursor`, three things landed in your repo:
|
|
74
|
+
|
|
75
|
+
1. **`.cursorrules`** — the Aigis "core skill" your agent loads on every interaction. It documents the workflow (`classify → build → implement → verify → report`) and embeds a 39-phrase resolver block (high-confidence and low-confidence triggers) the agent uses to pick traits from your description.
|
|
76
|
+
2. **A checksum** at the top of the resolver block. When Aigis updates, `aigis init <ide> --refresh` overwrites cleanly; mismatched checksums error out so you can see what changed.
|
|
77
|
+
3. **No hidden services. No telemetry. No background processes.** Just a markdown file your agent reads.
|
|
78
|
+
|
|
79
|
+
Optional add-ons at init time:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
aigis init cursor --ci github # drops .github/workflows/aigis.yml
|
|
83
|
+
aigis init cursor --hook # installs .git/hooks/pre-commit
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Both surfaces read a single `.aigisrc.json` config:
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{ "areas": ["pii-handling", "audit-logging"], "jurisdiction": "eu" }
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
The CI workflow runs `aigis verify` on every PR; the pre-commit hook runs it before each commit. Configure once, both run.
|
|
93
|
+
|
|
94
|
+
## What's new in v2.1
|
|
95
|
+
|
|
96
|
+
- **EU AI Act mapping** — Articles 9, 10, 12, 13, 14, 15, 50, 72, 73 mapped to runnable governance patterns, plus an Annex IV technical documentation template
|
|
97
|
+
- **`--jurisdiction` flag** (`eu`, `us-regulated`) — gates content by where you ship. EU AI Act citations only surface when you're shipping to EU users
|
|
98
|
+
- **`aigis report`** — generates audit-ready compliance documentation with cross-framework citations (NIST + OWASP + ISO + EU AI Act) and file:line evidence per check
|
|
99
|
+
- **Activation surfaces** — `aigis init --ci github` drops a GitHub Action; `aigis init --hook` installs a pre-commit hook
|
|
100
|
+
- **`--tight` flag** (experimental) — minimal briefs for users who want less context. Requires ≥2 trait matches per area instead of ≥1
|
|
101
|
+
- **Resolver expansion** — 27 new triggers covering modern AI project types (internal coding assistants, agentic code review, document Q&A, image generation, enterprise search) and EU Annex III high-risk categories (biometric ID, credit scoring, hiring, law enforcement)
|
|
102
|
+
|
|
103
|
+
## The principle behind Aigis
|
|
104
|
+
|
|
105
|
+
Governance isn't a content problem. It's an interface problem.
|
|
106
|
+
|
|
107
|
+
NIST AI RMF, OWASP Top 10 for LLMs, ISO/IEC 42001, and the EU AI Act are all rigorous, all published, and all sit in documents that engineering teams never read. Aigis treats governance as an **agent-computer interface** problem: how the right content reaches an LM agent at the right time, in the right shape.
|
|
108
|
+
|
|
109
|
+
- Context layered for on-demand loading (core skill always loaded; per-area procedures fetched when needed)
|
|
110
|
+
- Deterministic rules where accuracy isn't negotiable (resolver triggers, brief generation, verify regexes)
|
|
111
|
+
- Flexible reasoning where real projects don't fit rigid templates (the brief tells the agent to skip areas that don't apply, with a written reason)
|
|
112
|
+
|
|
113
|
+
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.
|
|
114
|
+
|
|
115
|
+
## Manual CLI reference (for CI, scripting, audit prep, power users)
|
|
116
|
+
|
|
117
|
+
The CLI exists in case you want to drive Aigis directly, for CI workflows, audit prep, debugging, or one-off invocations.
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# Classification + brief
|
|
121
|
+
aigis classify "<description>" # detect traits + recommended areas
|
|
122
|
+
aigis build "<description>" # the consolidated brief (the main command)
|
|
123
|
+
aigis build "..." --jurisdiction eu # surface EU AI Act content for EU-bound systems
|
|
124
|
+
aigis build "..." --tight # minimal brief: ≥2 trait matches required (experimental)
|
|
125
|
+
aigis build "..." --list # area names + traits, no procedure content
|
|
126
|
+
aigis build "..." --compact # pointer-only brief
|
|
127
|
+
|
|
128
|
+
# Per-area work
|
|
129
|
+
aigis get <area> # fetch a single governance procedure
|
|
130
|
+
aigis infra <area> # fetch infrastructure pattern (rate-limiting, secrets, logging)
|
|
131
|
+
aigis workflow <type> # fetch workflow template
|
|
132
|
+
|
|
133
|
+
# Verify + audit
|
|
134
|
+
aigis verify <area> --auto . # deterministic check on your implementation
|
|
135
|
+
aigis verify <area> --auto . --jurisdiction eu # surfaces EU AI Act citations in output
|
|
136
|
+
aigis report --from-classify "<desc>" --jurisdiction eu --output audit.md
|
|
137
|
+
# audit-ready compliance documentation
|
|
138
|
+
aigis audit --scan # discovery prompt for auditing existing code
|
|
139
|
+
aigis audit --traits <list> # scoped audit with deterministic denominator
|
|
140
|
+
|
|
141
|
+
# Misc
|
|
142
|
+
aigis search --list # list all available areas
|
|
143
|
+
aigis traits # list classification traits
|
|
144
|
+
aigis template <id> # compliance documentation template
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Run `aigis --help` for full options.
|
|
148
|
+
|
|
149
|
+
## Honest about what this isn't
|
|
150
|
+
|
|
151
|
+
- **Not a certification.** EU AI Act conformity assessment requires a notified body. `aigis report` is preparation material; it does not certify.
|
|
152
|
+
- **Not a security audit.** `aigis verify` is heuristic regex over your source. It catches common misimplementations; it doesn't replace SAST, code review, or penetration testing.
|
|
153
|
+
- **Doesn't run your code or call your APIs.** The agent does the work. Aigis provides the brief, the verifier, and the audit doc.
|
|
154
|
+
- **Local. No cloud. No telemetry.** Aigis ships nothing back to a server. Your descriptions, your code, and your verify results stay on your machine.
|
|
155
|
+
|
|
156
|
+
## Benchmark results
|
|
157
|
+
|
|
158
|
+
v2.0 was benchmarked at every iteration. Final numbers, against the same 10 descriptions:
|
|
159
|
+
|
|
160
|
+
- Baseline (no Aigis): P=0.737, R=0.905, F1=0.790
|
|
161
|
+
- v2.0 (`aigis build`): P=0.847, R=0.851, F1=0.837
|
|
162
|
+
|
|
163
|
+
F1 beats baseline by +0.047. v2.1 ships `--tight` as a flag-gated experiment; promotion to default in v2.2 is pending a confirmation benchmark. Methodology, per-run tables, and the v2.1 manual end-to-end test live in the [`benchmarks/`](https://github.com/NayanKanaparthi/aigis) directory.
|
|
164
|
+
|
|
165
|
+
## Supported agents
|
|
166
|
+
|
|
167
|
+
- Cursor
|
|
168
|
+
- Claude Code
|
|
169
|
+
- GitHub Copilot
|
|
170
|
+
- Windsurf
|
|
171
|
+
|
|
172
|
+
Each maps to a different rules file location. `aigis init <ide>` handles the difference; `--refresh` updates safely.
|
|
173
|
+
|
|
174
|
+
## Contributing
|
|
175
|
+
|
|
176
|
+
Aigis is built around a curated trigger map for classification. Trigger contributions are welcome, with a one-sentence use-case justification per the template in `.github/PULL_REQUEST_TEMPLATE/trigger_mapping.md`.
|
|
177
|
+
|
|
178
|
+
See `CONTRIBUTING.md` for the full contributor workflow, including how to add new governance areas, workflows, infrastructure patterns, or EU AI Act article mappings.
|
|
179
|
+
|
|
180
|
+
## License
|
|
181
|
+
|
|
182
|
+
MIT
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "aigis-cli"
|
|
7
|
-
version = "2.1.
|
|
7
|
+
version = "2.1.1"
|
|
8
8
|
description = "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."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
aigis_cli-2.1.0/PKG-INFO
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: aigis-cli
|
|
3
|
-
Version: 2.1.0
|
|
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
|
aigis_cli-2.1.0/README.md
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
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
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: aigis-cli
|
|
3
|
-
Version: 2.1.0
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/skills/infrastructure/rate-limiting.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-confidence-scoring.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aigis_cli-2.1.0 → aigis_cli-2.1.1}/aigis_cli/content/verify/checklist-output-sanitization.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|