agentwell
Agents that work with humans, not around them.
agentwell is an open source behavioral health layer for AI agents. It sits as a transparent proxy between your agent code and any LLM upstream — detecting drift, quality degradation, and emergent coordination before they affect your system.
Privacy first: agentwell sees patterns, not content. No prompt is ever stored or transmitted.
Upstream-agnostic: Works with any OpenAI-compatible endpoint — Claude, GPT, Gemini, Ollama, Groq, or any internal proxy.
Install
pip install agentwell
agentwell init # scaffold .env
agentwell start # proxy on localhost:3001
Quick Start
# change this one line in your agent code
base_url = "http://localhost:3001/v1"
agentwell status # live health score
agentwell report # daily health report
Architecture
Your Agent Code
↓
agentwell proxy (localhost:3001) ← behavioral health + security guard
↓
AGENTWELL_UPSTREAM (any OpenAI-compatible endpoint)
↓
Claude / GPT / Gemini / Ollama
agentwell intercepts every LLM call, scores behavioral health using metadata only, and returns responses unmodified with health headers attached.
What agentwell Monitors (Metadata Only)
| Signal | Method | Privacy |
|---|---|---|
| Prompt repetition ratio | Cosine similarity on embeddings — no text stored | Safe |
| Sentiment drift | Polarity score delta across session | Safe |
| Response quality trend | Token count + finish_reason tracking | Safe |
| Agent-to-agent coordination | Role pattern + keyword detection | Safe |
| Call frequency / timing | Timestamps only | Safe |
What we never store: prompt text, response text, embeddings (unless AGENTWELL_STORE_EMBEDDINGS=true).
Health Score
Every request returns X-Agentwell-Health: <0-100> in the response header.
| Score | Status | Action |
|---|---|---|
| 80–100 | Healthy | Normal operation |
| 60–79 | Watch | Early drift signals — monitor closely |
| 40–59 | Warning | Degradation detected — human review recommended |
| 0–39 | Critical | Significant behavioral shift — escalate to human now |
CLI
agentwell init # scaffold .env
agentwell start # start proxy on port 3001
agentwell start --port 8080 # custom port
agentwell start --host 0.0.0.0 # bind all interfaces
agentwell status # live health from running proxy
agentwell report # today's health report from DB
agentwell --version # show version
Configuration
| Variable | Default | Description |
|---|---|---|
AGENTWELL_UPSTREAM |
http://localhost:3030 |
Upstream LLM proxy URL |
AGENTWELL_PORT |
3001 |
agentwell proxy port |
AGENTWELL_API_KEY |
(none) | Optional auth key |
AGENTWELL_HEALTH_THRESHOLD |
70 |
Alert threshold (0-100) |
AGENTWELL_WINDOW_SIZE |
20 |
Rolling window for drift calculation |
AGENTWELL_DB_PATH |
./agentwell.db |
SQLite storage path |
AGENTWELL_STORE_EMBEDDINGS |
false |
Store embeddings for offline analysis |
License
MIT — Free forever, no vendor lock, no paid tiers.
Release files for agentwell 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agentwell-0.1.7.tar.gz | 30.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentwell-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 60.8 kB
Release files / agentwell-0.1.7.tar.gz
| Download URL | agentwell-0.1.7.tar.gz |
|---|---|
| Size | 30.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2bdceb13a897d5004a944a7cc7ec28d86cef2a51251aa2d3f6157e2225a88934
|
|
BLAKE2b-256 checksum How to use checksums |
37c56483d944547985f6f3fb02da21c712f17ecc40e733b426b68207e4bfbf73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 26, 2026.
Transparency logRelease files / agentwell-0.1.7-py3-none-any.whl
| Download URL | agentwell-0.1.7-py3-none-any.whl |
|---|---|
| Size | 29.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15ad238280f55a643811c5df3556b3139075433621b43c5f0c9f9d9a13e7bb0a
|
|
BLAKE2b-256 checksum How to use checksums |
304bafdb197d445c6ffa6f4b829b2a59a7789810a37915bdc73e3ddb15666911
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 26, 2026.
Transparency log