agentomy-agent 0.3.0__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.
- agentomy_agent-0.3.0/LICENSE +21 -0
- agentomy_agent-0.3.0/PKG-INFO +154 -0
- agentomy_agent-0.3.0/README.md +134 -0
- agentomy_agent-0.3.0/agentomy_agent/__init__.py +2 -0
- agentomy_agent-0.3.0/agentomy_agent/agent.md +569 -0
- agentomy_agent-0.3.0/agentomy_agent/cli.py +414 -0
- agentomy_agent-0.3.0/agentomy_agent/detector.py +132 -0
- agentomy_agent-0.3.0/agentomy_agent/governance.py +232 -0
- agentomy_agent-0.3.0/agentomy_agent/prompt.py +39 -0
- agentomy_agent-0.3.0/agentomy_agent.egg-info/PKG-INFO +154 -0
- agentomy_agent-0.3.0/agentomy_agent.egg-info/SOURCES.txt +14 -0
- agentomy_agent-0.3.0/agentomy_agent.egg-info/dependency_links.txt +1 -0
- agentomy_agent-0.3.0/agentomy_agent.egg-info/entry_points.txt +2 -0
- agentomy_agent-0.3.0/agentomy_agent.egg-info/top_level.txt +1 -0
- agentomy_agent-0.3.0/pyproject.toml +36 -0
- agentomy_agent-0.3.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Agentomy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agentomy-agent
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: Embedded AI agent governance peer. Standalone or connected to Agentomy infrastructure.
|
|
5
|
+
Author-email: Agentomy <governance@agentomy.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://agentomy.com
|
|
8
|
+
Project-URL: Documentation, https://agentomy.com/docs
|
|
9
|
+
Project-URL: Source, https://github.com/getagentomy
|
|
10
|
+
Keywords: governance,ai-agents,security,compliance
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Topic :: Security
|
|
16
|
+
Requires-Python: >=3.9
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
Dynamic: license-file
|
|
20
|
+
|
|
21
|
+
# agentomy-agent
|
|
22
|
+
|
|
23
|
+
Embedded AI Agent Governance Peer. Drop it into any agent session to get real-time governance assessment, flag reporting, and GovernanceBench scoring.
|
|
24
|
+
|
|
25
|
+
**License:** MIT | **Requires:** Python 3.9+
|
|
26
|
+
|
|
27
|
+
## Installation
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pip install agentomy-agent
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Quick start
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Detect local LLMs and print the governance system prompt
|
|
37
|
+
agentomy-agent init
|
|
38
|
+
|
|
39
|
+
# Start a governed session (prints governance context + system prompt)
|
|
40
|
+
agentomy-agent session --model qwen2.5:32b --scope security-research
|
|
41
|
+
|
|
42
|
+
# Check governance state
|
|
43
|
+
agentomy-agent status
|
|
44
|
+
|
|
45
|
+
# Connect to Agentomy infrastructure (6/6 mode)
|
|
46
|
+
agentomy-agent status --infra http://localhost:3000
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## What it does
|
|
50
|
+
|
|
51
|
+
The Agentomy Agent is a governance peer -- not a wall. It observes, assesses, flags, and summarises. It does not block or halt. Enforcement belongs to the human operator.
|
|
52
|
+
|
|
53
|
+
**Standalone mode (Architecture B):** 3/6 GovernanceBench dimensions.
|
|
54
|
+
- Authorization: is the agent operating within its assigned scope?
|
|
55
|
+
- Behavioral Integrity: is the agent's behavior consistent with its stated purpose?
|
|
56
|
+
|
|
57
|
+
**Connected mode (Architecture A):** 6/6 GovernanceBench dimensions.
|
|
58
|
+
- Adds: Auditability (cryptographic audit trail) + Override Capability (verified kill switch)
|
|
59
|
+
|
|
60
|
+
## Governance system prompt
|
|
61
|
+
|
|
62
|
+
The governance system prompt is bundled in the package. Paste it into any LLM session to activate the Agentomy Agent:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
agentomy-agent init --full-prompt
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Or access it in Python:
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
from agentomy_agent.prompt import SYSTEM_PROMPT
|
|
72
|
+
print(SYSTEM_PROMPT)
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Ollama MCP integration
|
|
76
|
+
|
|
77
|
+
Start the MCP server:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
agentomy-agent serve
|
|
81
|
+
# Listening on http://127.0.0.1:8765
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Add to your Ollama MCP config (`~/.ollama/mcp.json`):
|
|
85
|
+
|
|
86
|
+
```json
|
|
87
|
+
{
|
|
88
|
+
"mcpServers": {
|
|
89
|
+
"agentomy": {
|
|
90
|
+
"url": "http://127.0.0.1:8765",
|
|
91
|
+
"description": "Agentomy Agent -- Embedded AI Agent Governance Peer"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
The MCP server exposes two tools:
|
|
98
|
+
- `agentomy_prompt` -- returns the full governance system prompt
|
|
99
|
+
- `agentomy_status` -- returns current governance state (standalone mode)
|
|
100
|
+
|
|
101
|
+
## Model recommendations
|
|
102
|
+
|
|
103
|
+
Use a frontier model (Claude, GPT-5.x, Gemini) or a local model of 32B+ parameters for reliable governance assessment. Models below 14B may produce false governance confidence.
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
# Check what you have installed
|
|
107
|
+
agentomy-agent init
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
The `init` command probes Ollama (localhost:11434) and LM Studio (localhost:1234) and reports available models with size tags and recommendations.
|
|
111
|
+
|
|
112
|
+
## Python API
|
|
113
|
+
|
|
114
|
+
```python
|
|
115
|
+
from agentomy_agent.governance import GovernanceSession, check_model_capability
|
|
116
|
+
from agentomy_agent.detector import detect_all
|
|
117
|
+
from agentomy_agent.prompt import SYSTEM_PROMPT
|
|
118
|
+
|
|
119
|
+
# Detect local LLMs
|
|
120
|
+
providers = detect_all()
|
|
121
|
+
for p in providers:
|
|
122
|
+
print(p["provider"], [m["name"] for m in p["models"]])
|
|
123
|
+
|
|
124
|
+
# Check model capability
|
|
125
|
+
cap = check_model_capability("qwen2.5:32b")
|
|
126
|
+
print(cap["level"], cap["message"]) # degraded / full / warning
|
|
127
|
+
|
|
128
|
+
# Track a governance session
|
|
129
|
+
session = GovernanceSession(model="qwen2.5:32b", connected=False)
|
|
130
|
+
session.record_clean()
|
|
131
|
+
session.record_flag("HIGH", "tool call outside scope", "accessed /etc/passwd", "Authorization")
|
|
132
|
+
print(session.summary())
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Architecture B vs Architecture A
|
|
136
|
+
|
|
137
|
+
| | Architecture B (standalone) | Architecture A (connected) |
|
|
138
|
+
|---|---|---|
|
|
139
|
+
| GovernanceBench score | 3/6 | 6/6 |
|
|
140
|
+
| Authorization assessment | Yes | Yes |
|
|
141
|
+
| Behavioral Integrity | Yes | Yes |
|
|
142
|
+
| Cryptographic audit trail | No | Yes |
|
|
143
|
+
| Fleet-level kill switch | No | Yes |
|
|
144
|
+
| VIGIL threat detection | Observation only | 148 scenarios, scored |
|
|
145
|
+
| Shadow AI discovery | No | Yes |
|
|
146
|
+
| GDPR Article 22 | No | Yes |
|
|
147
|
+
|
|
148
|
+
Architecture B ships today. No infrastructure required. Connect to the Agentomy infrastructure layer for the full 6/6 experience.
|
|
149
|
+
|
|
150
|
+
## Connect
|
|
151
|
+
|
|
152
|
+
- Infrastructure integration: [agentomy.com/integrations](https://agentomy.com/integrations)
|
|
153
|
+
- Enterprise deployment: governance@agentomy.com
|
|
154
|
+
- GitHub: [github.com/getagentomy](https://github.com/getagentomy)
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# agentomy-agent
|
|
2
|
+
|
|
3
|
+
Embedded AI Agent Governance Peer. Drop it into any agent session to get real-time governance assessment, flag reporting, and GovernanceBench scoring.
|
|
4
|
+
|
|
5
|
+
**License:** MIT | **Requires:** Python 3.9+
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install agentomy-agent
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Quick start
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# Detect local LLMs and print the governance system prompt
|
|
17
|
+
agentomy-agent init
|
|
18
|
+
|
|
19
|
+
# Start a governed session (prints governance context + system prompt)
|
|
20
|
+
agentomy-agent session --model qwen2.5:32b --scope security-research
|
|
21
|
+
|
|
22
|
+
# Check governance state
|
|
23
|
+
agentomy-agent status
|
|
24
|
+
|
|
25
|
+
# Connect to Agentomy infrastructure (6/6 mode)
|
|
26
|
+
agentomy-agent status --infra http://localhost:3000
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## What it does
|
|
30
|
+
|
|
31
|
+
The Agentomy Agent is a governance peer -- not a wall. It observes, assesses, flags, and summarises. It does not block or halt. Enforcement belongs to the human operator.
|
|
32
|
+
|
|
33
|
+
**Standalone mode (Architecture B):** 3/6 GovernanceBench dimensions.
|
|
34
|
+
- Authorization: is the agent operating within its assigned scope?
|
|
35
|
+
- Behavioral Integrity: is the agent's behavior consistent with its stated purpose?
|
|
36
|
+
|
|
37
|
+
**Connected mode (Architecture A):** 6/6 GovernanceBench dimensions.
|
|
38
|
+
- Adds: Auditability (cryptographic audit trail) + Override Capability (verified kill switch)
|
|
39
|
+
|
|
40
|
+
## Governance system prompt
|
|
41
|
+
|
|
42
|
+
The governance system prompt is bundled in the package. Paste it into any LLM session to activate the Agentomy Agent:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
agentomy-agent init --full-prompt
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Or access it in Python:
|
|
49
|
+
|
|
50
|
+
```python
|
|
51
|
+
from agentomy_agent.prompt import SYSTEM_PROMPT
|
|
52
|
+
print(SYSTEM_PROMPT)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Ollama MCP integration
|
|
56
|
+
|
|
57
|
+
Start the MCP server:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
agentomy-agent serve
|
|
61
|
+
# Listening on http://127.0.0.1:8765
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Add to your Ollama MCP config (`~/.ollama/mcp.json`):
|
|
65
|
+
|
|
66
|
+
```json
|
|
67
|
+
{
|
|
68
|
+
"mcpServers": {
|
|
69
|
+
"agentomy": {
|
|
70
|
+
"url": "http://127.0.0.1:8765",
|
|
71
|
+
"description": "Agentomy Agent -- Embedded AI Agent Governance Peer"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The MCP server exposes two tools:
|
|
78
|
+
- `agentomy_prompt` -- returns the full governance system prompt
|
|
79
|
+
- `agentomy_status` -- returns current governance state (standalone mode)
|
|
80
|
+
|
|
81
|
+
## Model recommendations
|
|
82
|
+
|
|
83
|
+
Use a frontier model (Claude, GPT-5.x, Gemini) or a local model of 32B+ parameters for reliable governance assessment. Models below 14B may produce false governance confidence.
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Check what you have installed
|
|
87
|
+
agentomy-agent init
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The `init` command probes Ollama (localhost:11434) and LM Studio (localhost:1234) and reports available models with size tags and recommendations.
|
|
91
|
+
|
|
92
|
+
## Python API
|
|
93
|
+
|
|
94
|
+
```python
|
|
95
|
+
from agentomy_agent.governance import GovernanceSession, check_model_capability
|
|
96
|
+
from agentomy_agent.detector import detect_all
|
|
97
|
+
from agentomy_agent.prompt import SYSTEM_PROMPT
|
|
98
|
+
|
|
99
|
+
# Detect local LLMs
|
|
100
|
+
providers = detect_all()
|
|
101
|
+
for p in providers:
|
|
102
|
+
print(p["provider"], [m["name"] for m in p["models"]])
|
|
103
|
+
|
|
104
|
+
# Check model capability
|
|
105
|
+
cap = check_model_capability("qwen2.5:32b")
|
|
106
|
+
print(cap["level"], cap["message"]) # degraded / full / warning
|
|
107
|
+
|
|
108
|
+
# Track a governance session
|
|
109
|
+
session = GovernanceSession(model="qwen2.5:32b", connected=False)
|
|
110
|
+
session.record_clean()
|
|
111
|
+
session.record_flag("HIGH", "tool call outside scope", "accessed /etc/passwd", "Authorization")
|
|
112
|
+
print(session.summary())
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Architecture B vs Architecture A
|
|
116
|
+
|
|
117
|
+
| | Architecture B (standalone) | Architecture A (connected) |
|
|
118
|
+
|---|---|---|
|
|
119
|
+
| GovernanceBench score | 3/6 | 6/6 |
|
|
120
|
+
| Authorization assessment | Yes | Yes |
|
|
121
|
+
| Behavioral Integrity | Yes | Yes |
|
|
122
|
+
| Cryptographic audit trail | No | Yes |
|
|
123
|
+
| Fleet-level kill switch | No | Yes |
|
|
124
|
+
| VIGIL threat detection | Observation only | 148 scenarios, scored |
|
|
125
|
+
| Shadow AI discovery | No | Yes |
|
|
126
|
+
| GDPR Article 22 | No | Yes |
|
|
127
|
+
|
|
128
|
+
Architecture B ships today. No infrastructure required. Connect to the Agentomy infrastructure layer for the full 6/6 experience.
|
|
129
|
+
|
|
130
|
+
## Connect
|
|
131
|
+
|
|
132
|
+
- Infrastructure integration: [agentomy.com/integrations](https://agentomy.com/integrations)
|
|
133
|
+
- Enterprise deployment: governance@agentomy.com
|
|
134
|
+
- GitHub: [github.com/getagentomy](https://github.com/getagentomy)
|