fibey-agent
Copilot instructions0 starsChanged 6 months agoMITView on GitHub
This repository is a fiber optics field operations demo built on Azure AI Foundry Hosted Agents and the Foundry Toolbox. The agent helps field technicians with four tool domains: - Inventory MCP — parts lookup, stock levels, and part details - Work Orders API — view, create, and update work orders - FoundryIQ — splicing procedures, safety protocols, troubleshooting docs - Browser automation / status dashboard — network and service status checks
- Reads credentials
In this repository4 other files it gives its agents.
- Agent DeveloperSkill
- Azure Search OpsSkill
- Foundry Toolbox OpsSkill
- UI DesignerSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 87
Keep agent prompts in src/fibey/agent/prompts/
- Distinctive: line 88
Keep gateway and agent logic separate deployable concerns
- Distinctive: line 89
Use Tailwind utilities in the UI.
- Very specific: line 90
Use .env / .env.example for local configuration
≈ “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 — Fibey Field Ops
Architecture
This repository is a fiber optics field operations demo built on Azure AI Foundry Hosted Agents and the Foundry Toolbox. The agent helps field technicians with four tool domains:
- Inventory MCP — parts lookup, stock levels, and part details
- Work Orders API — view, create, and update work orders
- FoundryIQ — splicing procedures, safety protocols, troubleshooting docs
- Browser automation / status dashboard — network and service status checks
React UI → FastAPI Gateway → Field Ops Agent → Foundry Toolbox → 4 operational tools- Backend: Python 3.12+, FastAPI, Microsoft Agent Framework
- Frontend: React + TypeScript + Vite + Tailwind CSS
- Infra: Azure Bicep + azd
Repository structure
src/fibey/gateway/ # FastAPI gateway and streaming API
src/fibey/agent/ # Agent definition, hosted entrypoint, system prompt
ui/ # React frontend
services/inventory-mcp/ # MCP inventory service
services/work-orders-api/ # FastAPI work order service
services/status-dashboard/ # Static HTML status dashboard
services/foundry-iq-docs/ # Markdown knowledge base content for FoundryIQ
infra/ # Azure infrastructure definitions
scripts/ # Setup and dev helpersBuild & run
# Setup root app + UI deps
./scripts/setup.sh
# Run gateway + UI
./scripts/start-dev.sh
# Gateway only
uv run uvicorn fibey.gateway.api_server:app --reload --port 8080
# Agent CLI only
uv run python -m fibey.agent.main
# Frontend only
cd ui && npm run dev
# Inventory MCP
cd services/inventory-mcp && uv sync && uv run python server.py
# Work Orders API
cd services/work-orders-api && uv sync && uv run python server.py
# Status dashboard (simple local serve)
cd services/status-dashboard/public && python -m http.server 8003
# Frontend production build
cd ui && npm run buildKey patterns
Streaming SSE protocol
The gateway streams chat responses from POST /api/chat and emits assistant text, activity updates, citations, errors, and done events.
Agent mode
AGENT_MODE controls execution:
local— agent runs in-process and connects to the toolbox directlyhosted— gateway proxies to the Foundry-hosted agent
Activity sidebar
The UI activity sidebar is a core demo feature. Keep tool names and status updates understandable for field operations scenarios.
Toolbox integration
The agent connects to the Foundry Toolbox via MCPStreamableHTTPTool (local) or FoundryChatClient.get_mcp_tool() (hosted). Auth uses Azure credentials and the Cognitive Services scope.
Service expectations
services/inventory-mcp/serves streamable HTTP MCP on port8001services/work-orders-api/serves FastAPI on port8002services/status-dashboard/serves static status content on port8003services/foundry-iq-docs/docs/contains markdown uploaded to blob storage separately for FoundryIQ ingestion
Coding conventions
- Keep agent prompts in
src/fibey/agent/prompts/ - Keep gateway and agent logic separate deployable concerns
- Use Tailwind utilities in the UI; avoid introducing separate component CSS files
- Use
.env/.env.examplefor local configuration
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.

