Imported from PRANAV05092003/Research-copilot (
AGENTS.md). Install upstream withnpx skills add PRANAV05092003/Research-copilot. Copyright stays with the author.
Agent Guidelines for Research Copilot
This document outlines how future coding agents should interact with this repository.
- Strict Type Checking: The backend enforces
mypywith strict checking. All functions must have type hints for arguments and return types. - Testing Constraints: Every unit test MUST execute fully offline. The default
LLM_PROVIDERandEMBEDDING_PROVIDERmust be set tomock. Any tests that hit an external provider must be explicitly marked and skipped in CI. - Database Usage: Do not use
Base.metadata.create_all()in production code. Use Alembic for all schema migrations. - Agent Workflow: The multi-agent capabilities are built using LangGraph. Adding a new agent requires modifying the graph definition in
backend/app/ai/agents/graph.pyand creating a new node in thenodes/directory. - Linting: The backend uses
ruffand the frontend useseslintandprettier. Runmake lintbefore pushing any code.