Hermit CRM is a local-first CRM for solopreneurs that stores companies, contacts, pipeline stages, tasks, and outreach drafts as plain text files on your laptop. No cloud sync, no API keys, no OAuth dance. The architecture choice matters because it exposes a different set of primitives for agent workflows: file-based state instead of webhook subscriptions, filesystem permissions instead of role-based access control, and direct data manipulation instead of rate-limited REST calls.
The project ships as a desktop app for Mac and Linux. Installation happens through an AI coding tool (Claude Code, Cursor, Gemini CLI) or by hand. The onboarding flow tells you to open the unpacked folder in your AI tool and send it a message: “Read INSTALL.md and set up Hermit CRM for me.” This is not a gimmick. The architecture assumes agents will read and write the same files the UI reads and writes.
Data Model and Storage Layer
Hermit CRM uses one file per company. Each file contains structured text with contact records, deal stages, task lists, message threads, and custom fields. The format is human-readable and diff-friendly, which means version control works without special tooling.
The storage contract:
- Companies: One file per company in a known directory
- Contacts: Nested inside company files with roles and history
- Pipeline: Deal stages and outcomes stored as enum-like fields
- Tasks: Inline task lists with due dates and custom types
- Messages: Outreach drafts and sent messages with reply tracking
This structure gives agents three access patterns:
- Direct file read/write: Parse the file, mutate fields, write back
- Append-only log: Add a new task or message without parsing the entire file
- Batch operations: Glob all company files and run aggregations
The UI and agent workflows share the same data layer. There is no API gateway, no cache invalidation, no eventual consistency. If an agent writes a task to a company file, the UI sees it immediately because it reads the same file.
Workflow Primitives for Agents
Hermit CRM exposes workflow hooks through its outreach and learning modules. The outreach bot researches a company’s website, drafts a first message or follow-up, and waits for approval. The learning module captures edits you make to drafts and replies you receive, then surfaces them as lessons you can accept or reject.
These primitives differ from enterprise CRM webhooks in three ways:
| Enterprise CRM Webhooks | Hermit CRM Workflow Primitives |
|---|---|
| Event-driven, async | File-based, synchronous |
| Requires webhook endpoint and auth | Requires filesystem access |
| Rate-limited, retries, dead-letter queues | No rate limits, no retries, immediate failure |
| Centralized audit log | Git history or filesystem snapshots |
| Multi-tenant permission model | Single-user filesystem permissions |
The outreach bot writes drafts to a staging area in the company file. You approve or edit them in the UI. If you edit, the learning module diffs your version against the bot’s version and extracts lessons like “use shorter subject lines” or “mention specific pain points from their website.” These lessons are stored as structured text in a separate file. The bot reads them before drafting the next message.
This is a feedback loop with no API calls. The agent writes a draft, you edit it, the agent learns from the diff, and the next draft incorporates the lesson. The state machine is:
draft → approval_pending → approved | edited
↓
edited → lesson_extracted → lesson_pending → accepted | rejected
↓
accepted → incorporated_in_next_draft
Security and Permission Boundaries
Local-first architecture collapses the permission model. There is no user table, no role hierarchy, no OAuth scopes. The security boundary is the filesystem. If an agent can read the directory where Hermit CRM stores company files, it can read all customer data. If it can write to that directory, it can mutate deals, add tasks, or delete contacts.
This works for solopreneurs because there is one user. It breaks for teams. You cannot grant an agent read-only access to pipeline data but write access to tasks. You cannot restrict an agent to companies in a specific deal stage. Filesystem permissions are too coarse.
The trade-off:
- Gain: No auth server, no token refresh, no permission checks in the hot path
- Lose: No fine-grained access control, no audit trail without external tooling
If you need multi-user access or agent-specific permissions, you must layer them on top. Options include:
- Run agents in separate containers with bind mounts to specific subdirectories
- Use filesystem ACLs to restrict read/write per agent
- Wrap file access in a thin API server that enforces custom rules
Hermit CRM does not provide these layers. It assumes you trust any process that can access the data directory.
Observability and State Inspection
Because state lives in files, observability is filesystem monitoring. You can:
- Watch file modification times to see when deals update
- Tail a log file if the app writes one (not documented)
- Diff company files to see what changed between agent runs
- Use
inotifyorfswatchto trigger actions on file writes
The UI includes a reports page with weekly activity, funnel conversion, time in stage, and message reply rates. These are computed on-demand by scanning all company files. There is no pre-aggregated metrics table. If you have 10,000 companies, report generation will be slow.
For agent workflows, this means:
- No built-in telemetry: You must instrument your own agents
- No distributed tracing: Agents do not emit spans or trace IDs
- No centralized logs: Each agent writes to its own log file or stdout
If you run multiple agents that read and write Hermit CRM data, you need external orchestration to coordinate them. The app does not provide a lock manager or transaction log.
Deployment Shape
Hermit CRM is a desktop app, not a service. You download a binary, unpack it, and run it. The UI is a local web server that opens in your browser. The data directory is wherever you point it during setup.
For agent workflows, this means:
- Agents run on the same machine: They access the data directory via filesystem paths
- No remote API: Agents cannot call Hermit CRM over HTTP unless you build a wrapper
- No horizontal scaling: One instance per user, one data directory per instance
If you want to run agents on a separate machine, you must sync the data directory (rsync, Syncthing, Dropbox) or mount it over a network filesystem (NFS, SSHFS). The app does not handle concurrent writes from multiple machines. You will corrupt data if two processes write to the same file simultaneously.
Likely Failure Modes
Concurrent writes: If an agent writes to a company file while the UI writes to the same file, one write will clobber the other. There is no file locking or conflict resolution.
Large datasets: Scanning 10,000 company files to generate a report is slow. The app does not index or cache aggregations.
Network filesystems: If you mount the data directory over NFS or SSHFS, latency will make the UI sluggish. File locking may not work correctly.
Agent bugs: If an agent writes malformed data to a company file, the UI may fail to parse it. There is no schema validation or rollback mechanism.
Backup gaps: If you do not configure backups, you lose data when your disk fails. The app includes a backup setting, but it is opt-in.
Code Example: Agent Reading and Writing a Task
import os
import re
from datetime import datetime
DATA_DIR = os.path.expanduser("~/hermit-crm-data/companies")
def add_task(company_name, task_description, due_date):
"""Add a task to a company file."""
company_file = os.path.join(DATA_DIR, f"{company_name}.txt")
if not os.path.exists(company_file):
raise FileNotFoundError(f"Company {company_name} not found")
with open(company_file, "r") as f:
content = f.read()
# Find the tasks section or create it
if "## Tasks" not in content:
content += "\n\n## Tasks\n"
# Append the new task
task_entry = f"- [ ] {task_description} (due: {due_date})\n"
content = re.sub(
r"(## Tasks\n)",
r"\1" + task_entry,
content
)
with open(company_file, "w") as f:
f.write(content)
# Usage
add_task(
"acme-corp",
"Follow up on pricing discussion",
datetime.now().strftime("%Y-%m-%d")
)
This code assumes a specific file format. If Hermit CRM changes the format, the agent breaks. There is no schema version or migration path.
Technical Verdict
Use Hermit CRM’s architecture when:
- You are a solo operator with no need for multi-user access
- You want agents to manipulate CRM data without API rate limits or auth complexity
- You trust all processes that can access your data directory
- You can tolerate manual conflict resolution if concurrent writes happen
- You prefer Git-based version control over application-level audit logs
Avoid it when:
- You need fine-grained permissions for different agents or users
- You run agents on separate machines without shared filesystem access
- You have more than a few thousand companies and need fast aggregations
- You require transactional writes or conflict resolution
- You need built-in observability or distributed tracing
The local-first pattern works well for solopreneur workflows where simplicity and agent access matter more than scale or multi-tenancy. It exposes a different set of trade-offs than SaaS CRMs: no API complexity, but also no guardrails. If you build agents on top of Hermit CRM, you own the coordination, locking, and error handling.