Lexoire
Copilot instructions2 starsChanged 7 months agoMITView on GitHub
The file
We split this copilot-instructions.md into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Local-first: All data stored in SQLite, no cloud dependencies
- Distinctive: line 91
React hooks: Use functional components, prefer custom hooks
- Distinctive: line 92
Error handling: Always provide user feedback via Socket.IO or Toast
≈ “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
Copilot Instructions for Lexoire
Project Overview
Lexoire is a voice-driven AI automation system that orchestrates multiple GitHub Copilot CLI sessions through a web/Electron interface. The system uses a local SQLite database to track sessions, conversations, and task management.
Architecture Principles
- Multi-session orchestrator: Voice commands route to different Copilot sessions
- Local-first: All data stored in SQLite, no cloud dependencies
- Fleet mode: Sub-agents handle independent tasks in parallel
- Session-based workers: Each Copilot session is a resumable unit via
copilot --resume SESSION_ID
Key Technical Stack
- Frontend: React + TypeScript + Vite + Tailwind CSS
- Backend: Express + Socket.IO + SQLite + Copilot CLI
- Electron: Bundled desktop app with auto-backend launch
- Voice: Web Speech API (recognition) + system TTS (synthesis)
File Structure
lexoire/
├── frontend/src/
│ ├── App.tsx / AppClean.tsx # Main app entry
│ ├── components/ # React components
│ ├── hooks/ # Custom hooks (voice, socket, etc.)
│ └── styles/ # Tailwind config
├── backend/src/
│ ├── server.ts # Express + Socket.IO server
│ ├── services/
│ │ ├── session-manager.ts # Session CRUD + state management
│ │ └── copilot.ts # Copilot CLI interaction
│ └── db/ # SQLite database
├── electron/
│ ├── main.js # Electron entry, backend launcher
│ ├── preload.js # IPC bridge
│ └── assets/icon.png # App icon
└── shared/ # Shared typesDatabase Schema
- sessions: id, name, copilot_session_id, status, objective, last_summary, created_at
- conversations: id, session_id, messages (JSON), created_at
- memories: id, session_id, key, value, created_at
- tasks: id, session_id, title, status, created_at
Development Workflow
- Local Development:
npm run dev # Start frontend on http://localhost:5173 npm run backend:dev # Start backend on http://localhost:5003 npm run electron # Launch Electron with auto-backend - Building:
npm run build # Frontend + backend production build npm run electron:build:mac # Package macOS app - Fleet Mode (parallel sub-agents):
Use /fleet to dispatch 4 concurrent agents for: - Independent research/exploration - Feature implementation - Testing & validation - Documentation updates
Voice Command Patterns
- Session management: "create session [name]", "switch to [session]", "list sessions"
- Task execution: "tell [session] to [command]", "broadcast [command]"
- Query: "status", "list tasks", "what's my memory"
Important Behaviors
- Copilot sessions are durable - use
copilot --resume SESSION_IDto resume - Web Speech API is browser-limited - backend TTS fallback via macOS
saycommand - Socket.IO events must register before emission or frontend won't receive
- SQLite auto-creates schema on first run
- Port discovery scans 5000-5005 with fallback logic
Common Issues & Fixes
| Issue | Fix |
| Port 5000 occupied | Backend auto-discovers 5001-5005 |
| Voice not working | Check microphone permissions in browser |
| Backend not responding | Verify npm run backend:dev is running |
| Electron window blank | Check browser console (Cmd+Opt+I) for errors |
| Build fails | Run npm ci to reinstall dependencies |
Code Standards
- TypeScript strict mode: No
anytypes without justification - React hooks: Use functional components, prefer custom hooks
- Error handling: Always provide user feedback via Socket.IO or Toast
- Performance: Memoize expensive computations, avoid re-renders
- Testing: Unit tests for services, integration tests for Socket.IO events
Copilot CLI Integration
// Resumable sessions
const { spawn } = require('child_process');
const proc = spawn('copilot', ['--resume', SESSION_ID, '--output-format', 'json']);
// Parse JSON output to extract session ID and resultsSession Lifecycle
- Create: User voice command → emit
session:create→ backend saves to DB - Resume:
copilot --resume STORED_SESSION_ID→ agent continues work - Pause: Save current state to DB, keep session ID
- Archive: Mark session as complete, preserve for history
Deployment Checklist
- All TypeScript compiles without errors
- Frontend builds to
frontend/dist/ - Backend builds to
backend/dist/ - Electron app builds successfully
- Voice input/output tested
- Multi-session creation/switching works
- SQLite database persists across restarts
- GitHub Actions CI/CD passes
- Git history is clean with proper commit messages
When to Use Fleet Mode
- YES: Independent feature branches, parallel testing, documentation
- NO: Sequential dependent tasks, database migrations, critical path fixes
Last Updated: 2026-04-25
Maintained By: GitHub Copilot CLI
License: MIT
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.

