oneshot
Copilot instructions4 starsChanged 10 months agoMITView on GitHub
OneShot is a multi-agent AI platform for professional services, demonstrating coordinated AI agents that mirror a consulting firm's operating model.
- Reads credentials
- Installs packages
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/vercel-composition-patterns/AGENTS.mdAGENTS.md
- .agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- .agents/skills/vercel-react-native-skills/AGENTS.mdAGENTS.md
- vercel-composition-patternsSkill
- vercel-react-best-practicesSkill
- vercel-react-native-skillsSkill
- web-design-guidelinesSkill
- agent-creationSkill
- agent-debuggingSkill
- agent-deploymentSkill
- migration-guideSkill
- workflow-orchestrationSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
12 rules. About 0 are common, 3 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 59
Async everywhere: Use async/await for all I/O operations (FastAPI, aiosqlite, Azure OpenAI)
- Very specific: line 60
Structured outputs: Use llm_service.structured_output() for reliable JSON from GPT
- Very specific: line 61
Agent communication: Use AgentContext for passing state between agents, not direct calls
- Very specific: line 64
Compound components: Follow patterns in .github/skills/vercel-composition-patterns/AGENTS.md
- Very specific: line 66
React 19: Use use() instead of useContext(), ref as regular prop (no forwardRef)
- Very specific: line 78
Create backend/app/agents/{name}.py inheriting from Agent
- Very specific: line 82
Add prompts to backend/app/agents/prompts.py
- Distinctive: line 122
Don't add boolean props to components (use composition/variants)
- Distinctive: line 123
Don't call agents directly—go through Orchestrator
- Very specific: line 124
Don't use sync database calls (always async with aiosqlite)
- Very specific: line 125
Don't hardcode API keys (use .env)
- Distinctive: line 126
Don't create production security features (this is a demo/POC)
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OneShot - AI Coding Agent Instructions
Project Overview
OneShot is a multi-agent AI platform for professional services, demonstrating coordinated AI agents that mirror a consulting firm's operating model.
Architecture (Dual-Stack)
Frontend (Next.js 14) Backend (Python FastAPI)
↓ ↓
Shadcn/ui + Tailwind Microsoft Agent Framework
Vercel Agent Skills 7 Specialized Agents
Zustand state Azure OpenAI GPT-5.x
↓ ↓
└──── REST API / WebSocket ────┘
↓
SQLite (aiosqlite)Agent Roles
| Agent | Purpose | Key File |
| Orchestrator | Task decomposition, coordination | backend/app/agents/orchestrator.py |
| Strategist | Proposals, engagement scoping | backend/app/agents/strategist.py |
| Researcher | Web search, news, company intel | backend/app/agents/researcher.py |
| Analyst | Data viz, financial modeling | backend/app/agents/analyst.py |
| Scribe | Document generation, branding | backend/app/agents/scribe.py |
| Advisor | Client comms, exec summaries | backend/app/agents/advisor.py |
| Memory | Knowledge retrieval, RAG | backend/app/agents/memory.py |
Developer Workflows
Running Locally
# Backend (Terminal 1)
cd backend && python -m venv venv && source venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000
# Frontend (Terminal 2)
cd frontend && npm install && npm run devEnvironment Setup
Copy .env.example to .env and configure:
AZURE_OPENAI_ENDPOINT,AZURE_OPENAI_KEY,AZURE_OPENAI_DEPLOYMENTDATABASE_URL=sqlite+aiosqlite:///./data/oneshot.db
Docker Alternative
cp .env.example .env && docker-compose upCode Conventions
Backend (Python)
- Agent pattern: Inherit from
Agentbase class inbackend/app/agents/base.py - Async everywhere: Use
async/awaitfor all I/O operations (FastAPI, aiosqlite, Azure OpenAI) - Structured outputs: Use
llm_service.structured_output()for reliable JSON from GPT - Agent communication: Use
AgentContextfor passing state between agents, not direct calls
Frontend (React/Next.js)
- Compound components: Follow patterns in
.github/skills/vercel-composition-patterns/AGENTS.md - State: Zustand for global state, lift component state into Providers
- React 19: Use
use()instead ofuseContext(), ref as regular prop (noforwardRef) - Components: Shadcn/ui in
frontend/components/ui/, compose explicit variants (no boolean prop sprawl) - Agent Skills: Integrate via
@vercel-labs/agent-skillsinfrontend/lib/agentSkills.ts
Database
- SQLite with SQLAlchemy 2.x + aiosqlite for async access
- Models in
backend/app/models/database.py - Key tables:
conversations,messages,agent_traces,documents,knowledge_items,engagements
Key Patterns
Adding a New Agent
- Create
backend/app/agents/{name}.pyinheriting fromAgent - Define
name,description,capabilities - Implement
async def process(self, ctx: AgentContext, message: Message) - Register in agent registry used by Orchestrator
- Add prompts to
backend/app/agents/prompts.py
Real-time Agent Updates
WebSocket at /ws/agents/{conversation_id} streams events:
agent.started,agent.thinking,agent.completed,agent.handoffstream.tokenfor streaming LLM responsesdocument.generatedwhen Scribe produces output
Knowledge/RAG Flow
- User query → Orchestrator dispatches to Memory Agent
- Memory Agent embeds query via
llm_service.embed() - Semantic search over
knowledge_itemstable - Results passed via
AgentContextto other agents
Important Files
| Path | Purpose |
docs/PRD.md | Product requirements, demo scenarios |
docs/TRD.md | Full technical architecture, API specs |
backend/app/main.py | FastAPI entry point |
backend/app/services/llm_service.py | Azure OpenAI wrapper |
frontend/app/page.tsx | Main chat page |
frontend/lib/store.ts | Zustand state management |
frontend/lib/websocket.ts | WebSocket handler for agent updates |
Testing
# Backend
cd backend && pytest
# Frontend
cd frontend && npm testDemo validation: proposals < 5 min, research accuracy > 95%, real-time agent status streaming.
What NOT to Do
- Don't add boolean props to components (use composition/variants)
- Don't call agents directly—go through Orchestrator
- Don't use sync database calls (always
asyncwith aiosqlite) - Don't hardcode API keys (use
.env) - Don't create production security features (this is a demo/POC)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

