How pranavagarwal2101-byte/company-brain works
Company Brain answers engineering-organization questions by having an agent choose graph traversals, running them against FalkorDB, and returning both findings and the traversal path for explanation. Its query capabilities cover formal ownership, inferred expertise, decision provenance, dependency blast radius, and finding people to ask. Separately, ingestion loads or updates company.json as graph nodes and relationships. The excerpts show the agent-to-tool dispatch and shared database connection; individual tools are grouped by capability, but their internal query details are only partially sampled.
Main entry points: agent.py Agent loop · graph.py Graph connection · tools.py Find owner · ingest.py Graph ingestion
Components 12
Question answering
- Agent loop
agent.py - Gemini model
Graph queries
- Find owner
tools.py - Find experts
tools.py - Trace decision
tools.py - Blast radius
tools.py - Who to ask
tools.py
Knowledge graph
- Graph ingestion
ingest.py - Company dataset
company.json - Graph connection
graph.py - FalkorDB graph
Other components
- Engineer
Connections 16
- Engineer → Agent loop: asks
README.md - Agent loop → Gemini model: sends question
agent.py - Gemini model → Agent loop: requests tool
agent.py - Agent loop → Find owner: dispatches
agent.py - Agent loop → Find experts: dispatches
agent.py - Agent loop → Trace decision: dispatches
agent.py - Agent loop → Blast radius: dispatches
agent.py - Agent loop → Who to ask: dispatches
agent.py - Find owner → Graph connection: queries via
tools.py - Find experts → Graph connection: queries via
tools.py - Trace decision → Graph connection: queries via
tools.py - Blast radius → Graph connection: queries via
tools.py - Who to ask → Graph connection: queries via
tools.py - Company dataset → Graph ingestion: loads
ingest.py - Graph ingestion → Graph connection: gets graph
ingest.py - Graph connection → FalkorDB graph: connects to
graph.py