Borrowing it
Nothing to install: this file belongs to foxy1402/qoder-proxy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/foxy1402/qoder-proxy/main/.github/copilot-instructions.mdgit clone --depth 1 https://github.com/foxy1402/qoder-proxyWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/foxy1402/qoder-proxy/copilot-instructions)<a href="https://agentmods.dev/instructions/foxy1402/qoder-proxy/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/foxy1402/qoder-proxy/copilot-instructions/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/foxy1402/qoder-proxy/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/foxy1402/qoder-proxy/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01899 | $0.01899 |
| Opus 5.5 | $0.00760 | $0.00760 |
| Sonnet 5.5 | $0.00380 | $0.00380 |
| Haiku 4.5 | $0.00190 | $0.00190 |
Grade A, and why
qoder-proxy copilot-instructions.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- **Windows compatibility**: All child_process spawns check process.platform === 'win32' and use cmd.exe wrapper. How it starts
The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Copilot Instructions - Qoder OpenAI Proxy
Project Overview
This is an OpenAI-compatible API proxy for Qoder CLI (qodercli). It translates OpenAI-format API requests into qodercli commands, enabling any OpenAI-compatible tool (Cursor, LangChain, Open WebUI) to use Qoder models.
Key responsibilities:
- Accept /v1/chat/completions and /v1/completions requests in OpenAI format
- Spawn qodercli child processes with appropriate model/prompt arguments
- Stream responses back to clients via Server-Sent Events (SSE)
- Provide a web dashboard for testing and monitoring at /dashboard/
Build, Test, and Run
Start server (development): npm run dev # Runs with --watch for auto-reload on file changes
Start server (production): npm start # Runs src/server.js directly
Docker: docker build -t qoder-proxy . docker run -p 3000:3000 -e QODER_PERSONAL_ACCESS_TOKEN="..." -e PROXY_API_KEY="..." qoder-proxy
No tests or linters are configured.
Architecture
Core Flow
Client → Express → Auth → Routes → spawn.js → qodercli (child process) → Parse stream-json output → SSE/JSON response
- Routes (src/routes/) receive OpenAI-format requests
- format.js translates OpenAI model names → Qoder tiers and converts messages[] → single prompt string
- spawn.js spawns qodercli -p -f stream-json --model as a child process
- Stream parsing reads line-delimited JSON from stdout, extracts text, and sends SSE chunks
- Logging (logStore.js) captures all requests/responses in RAM (circular buffer, max 500 entries)
Key Components
| Component | Purpose |
|---|---|
| src/server.js | Express app setup, route mounting, startup health checks |
| src/config.js | Central config from env vars (PORT, API keys, timeouts) |
| src/helpers/spawn.js | Spawns qodercli, handles stdout/stderr, implements timeout logic |
| src/helpers/format.js | Model mapping (OpenAI aliases → Qoder tiers), message→prompt conversion, response builders |
| src/store/logStore.js | In-memory circular log buffer for requests + system events |
| src/middleware/auth.js | Bearer token validation for /v1/* endpoints |
| src/middleware/dashboardAuth.js | Cookie-based HMAC auth for /dashboard/* |
| src/routes/chat.js | /v1/chat/completions endpoint (supports streaming + non-streaming) |
| src/routes/completions.js | /v1/completions (legacy text completion) |
| src/routes/dashboard.js | Dashboard UI + API endpoints for logs/playground |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 205 lines · 1,899 tokens per session scan A 6d53398fa11d
qoder-proxy copilot-instructions.md is an instructions file published in the GitHub repository foxy1402/qoder-proxy (58 stars, last pushed 5mo ago), licensed MIT. It adds 1,899 tokens to every session, about $0.0076 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
qoder-proxy copilot-instructions.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| qoder-proxy copilot-instructions.mdfoxy1402/qoder-proxy | Instructions file | 58 | 5mo ago | MIT | A | 1,899 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |