How dharinish007/revathi works
REVATHI is a local trust layer for AI coding agents. A tool hook translates incoming events into a shared event format; the pipeline applies safety checks and snapshots before actions, records outcomes, and gates completion on proof. Approved memory is recalled into new sessions, while CLI commands let users install integrations, review memory, inspect logs, and undo changes. The README documents additional skills and subagents. Some subsystem links are based on documented capabilities or SOURCE INDEX references; unsampled implementation details are not assumed.
Main entry points: pipeline.py Hook pipeline · revathi.py REVATHI CLI · memory.py Approved memory · install.py Tool installer
Components 21
Tool integrations
- Claude Code
- Antigravity
- Claude hook
adapters/claude-code/hook.py - Antigravity hook
adapters/antigravity/hook.py - Skills and agents
core
Event runtime
- Common events
engine/event.py - Hook pipeline
engine/pipeline.py
Safety and evidence
- Action guard
engine/guard.py - Completion proof
engine/proof.py - Policy rules
engine/policy.py - Snapshots and undo
engine/undo.py - Canary credentials
engine/canary.py
Memory
- Approved memory
engine/memory.py - Memory learning
engine/learn.py - Memory graph
cli/graph.py - Claude memory import
adapters/claude-code/memory_import.py
User operations
- Mode config
engine/config.py - Tamper-evident log
engine/log.py - REVATHI CLI
cli/revathi.py - Tool installer
cli/install.py
Other components
- Developer
Connections 32
- Claude Code → Claude hook: sends hook events
adapters/claude-code/hook.py - Antigravity → Antigravity hook: sends hook events
adapters/antigravity/hook.py - Claude hook → Common events: translates events
adapters/claude-code/hook.py - Antigravity hook → Common events: translates events
adapters/antigravity/hook.py - Claude hook → Hook pipeline: dispatches events
adapters/claude-code/hook.py - Antigravity hook → Hook pipeline: dispatches events
adapters/antigravity/hook.py - Hook pipeline → Action guard: checks actions
engine/pipeline.py - Hook pipeline → Completion proof: checks completion
engine/pipeline.py - Hook pipeline → Snapshots and undo: takes snapshots
engine/pipeline.py - Hook pipeline → Canary credentials: checks canaries
engine/pipeline.py - Hook pipeline → Tamper-evident log: records events
engine/pipeline.py - Hook pipeline → Policy rules: loads rules
engine/pipeline.py - Hook pipeline → Mode config: loads mode
engine/pipeline.py - Action guard → Policy rules: uses rules
engine/guard.py - Completion proof → Common events: returns decisions
engine/proof.py - Canary credentials → Tamper-evident log: records findings
engine/canary.py - REVATHI CLI → Tool installer: runs install
cli/revathi.py - REVATHI CLI → Snapshots and undo: restores snapshots
cli/revathi.py - REVATHI CLI → Tamper-evident log: shows records
cli/revathi.py - REVATHI CLI → Mode config: sets mode
cli/revathi.py - REVATHI CLI → Approved memory: reviews notes
cli/revathi.py - REVATHI CLI → Memory learning: learns notes
cli/revathi.py - REVATHI CLI → Memory graph: shows graph
cli/revathi.py - REVATHI CLI → Claude memory import: imports notes
cli/revathi.py - Hook pipeline → Approved memory: recalls notes
engine/pipeline.py - Memory learning → Approved memory: proposes notes
engine/learn.py - Memory graph → Approved memory: reads notes
cli/graph.py - Claude memory import → Approved memory: proposes notes
- Developer → REVATHI CLI: runs commands
README.md - Tool installer → Claude Code: connects tool
README.md - Tool installer → Antigravity: connects tool
README.md - Tool installer → Skills and agents: installs skills
cli/install.py