How unfettered-one/well-tell works
Well Tell is a well-operations copilot: users ask questions through an HTTP API, which routes a conversation through OpenCode and MCP tools to dataset-derived SQLite views and supporting documents. Dataset ingestion builds the database and derived views; the query path supports citations and visual specifications, while MCP also provides user-bound recall and audited corrections and rule updates. The graph preserves README-documented capabilities; links from sampled files use the excerpts or SOURCE INDEX, so unsampled implementation details are not inferred.
Main entry points: server.py Well MCP tools · ingest.py Dataset loader · api.py Chat API · documents.py Document resolver
Components 16
Dataset ingestion
- Dataset loader
ingest/ingest.py - Database schema
ingest/create.py - Derived views
ingest/views.py - Ingest verification
ingest/verify.py - Dataset files
Conversation serving
- Chat API
backend/api.py - OpenCode bridge
backend/opencode.py - Copilot agent
Well knowledge tools
- Well MCP tools
mcp/server.py - Tool guidance
mcp/prompts.py - Document resolver
mcp/documents.py - SQLite access
mcp/db.py - Manuals and reports
Data and sessions
- Well Copilot SQLite
- Conversation mappings
backend/api.py
Other components
- Questioner
Connections 22
- Questioner → Chat API: asks via HTTP
README.md - Chat API → OpenCode bridge: routes turns
backend/api.py - OpenCode bridge → Copilot agent: starts conversation
README.md - Copilot agent → Well MCP tools: calls tools
README.md - Chat API → Conversation mappings: binds sessions
backend/api.py - Chat API → Well Copilot SQLite: checks datasets
backend/api.py - Dataset loader → Dataset files: reads dataset
README.md - Dataset loader → Database schema: uses schema
ingest/ingest.py - Dataset loader → Derived views: creates views
ingest/ingest.py - Dataset loader → Ingest verification: runs verification
ingest/ingest.py - Dataset loader → Well Copilot SQLite: loads records
README.md - Database schema → Well Copilot SQLite: creates tables
ingest/create.py - Derived views → Well Copilot SQLite: defines derived views
ingest/views.py - Ingest verification → Well Copilot SQLite: checks database
ingest/verify.py - Well MCP tools → SQLite access: uses connections
mcp/server.py - Well MCP tools → Document resolver: resolves documents
mcp/server.py - Well MCP tools → Tool guidance: exposes prompts
mcp/server.py - SQLite access → Well Copilot SQLite: reads and writes
mcp/db.py - Document resolver → SQLite access: looks up catalog
mcp/documents.py - Document resolver → Manuals and reports: reads files
mcp/documents.py - Well MCP tools → Well Copilot SQLite: queries and records
README.md - Well MCP tools → Conversation mappings: binds user context
README.md