Environment:42 evey Hermes plugins SQLite
| Knowledge Sources | |
|---|---|
| Domains | Infrastructure, Data_Storage, Task_Management |
| Last Updated | 2026-10-29 00:00 GMT |
Overview
SQLite database at $HERMES_HOME/claude-bridge/bridge.db for inter-agent task bridging, accessed via Python's built-in sqlite3 module.
Description
This environment provides the SQLite database backing the Claude Code bridge integration. The bridge.db file stores tasks with columns id, title, body, and status. The autonomy engine's bridge collector queries for tasks with status pending or in_progress, ordered by id descending, limited to 5 results. SQLite is accessed through Python's standard library sqlite3 module with a 2-second timeout to prevent blocking on locked databases.
Usage
Use this environment when the autonomous_decide tool's bridge signal collector needs to read pending tasks from the Claude Code bridge. The database is created and maintained by the evey-bridge plugin and the external Claude Code session. If bridge.db does not exist, the bridge collector silently skips it.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | Any (Python stdlib) | SQLite is bundled with Python |
| Hardware | Any CPU | Minimal disk for the DB file |
| Disk | < 1MB | Single SQLite file |
| Python | 3.10+ | sqlite3 module is always available
|
Dependencies
System Packages
- None —
sqlite3is bundled with Python
Python Packages
sqlite3(stdlib, always available)
Credentials
No credentials required. The database file path is derived from HERMES_HOME:
HERMES_HOME: Root directory (default~/.hermes); bridge DB at$HERMES_HOME/claude-bridge/bridge.db
Quick Install
# No installation needed — sqlite3 is part of Python's standard library.
# Ensure the bridge directory exists (created by evey-bridge plugin):
mkdir -p "$HERMES_HOME/claude-bridge"
Code Evidence
SQLite query from evey-autonomy/__init__.py:156-174:
if BRIDGE_DB.exists():
try:
conn = sqlite3.connect(str(BRIDGE_DB), timeout=2)
conn.row_factory = sqlite3.Row
rows = conn.execute(
"SELECT id, title, body, status FROM tasks "
"WHERE status IN ('pending','in_progress') ORDER BY id DESC LIMIT 5"
).fetchall()
for r in rows:
actions.append({
"source": "bridge", "action": "process_bridge_task",
"description": f"Bridge task: {r['title']}" if r['title'] else "Bridge task",
"detail": (r["body"] or "")[:500],
"urgency": 10, "importance": 10, "recency": 10,
"task_type": "bridge_check",
})
conn.close()
except Exception:
pass
Path definition from evey-autonomy/__init__.py:35:
BRIDGE_DB = HERMES_HOME / "claude-bridge" / "bridge.db"
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
database is locked |
Another process holds a write lock | The 2-second timeout handles this; if persistent, check for stale Claude Code sessions |
| Bridge tasks not found | bridge.db does not exist |
Ensure evey-bridge plugin is enabled and a Claude Code session has created the DB |
| Collector silently returns empty | BRIDGE_DB.exists() is False or query raised an exception wrapped in try/except |
Check $HERMES_HOME/claude-bridge/bridge.db exists
|
Compatibility Notes
- Concurrency: Uses a 2-second connection timeout to avoid blocking on locked databases. The collector wraps the entire query in
try/exceptso a locked DB degrades gracefully to zero bridge actions. - Schema: Expects a
taskstable withid,title,body,statuscolumns. Created by the external Claude Code bridge, not by this repo. - Read-only access: The autonomy plugin only reads from the DB; writes are handled by the evey-bridge plugin and Claude Code.