Borrowing it
Nothing to install: this file belongs to ParthKapoor-dev/devex. 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/ParthKapoor-dev/devex/main/AGENTS.mdgit clone --depth 1 https://github.com/ParthKapoor-dev/devexWrote 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/parthkapoor-dev/devex/agents-md)<a href="https://agentmods.dev/instructions/parthkapoor-dev/devex/agents-md"><img src="https://agentmods.dev/badge/instructions/parthkapoor-dev/devex/agents-md/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/parthkapoor-dev/devex/agents-md"><img src="https://agentmods.dev/badge/instructions/parthkapoor-dev/devex/agents-md.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.02001 | $0.02001 |
| Opus 5.5 | $0.00800 | $0.00800 |
| Sonnet 5.5 | $0.00400 | $0.00400 |
| Haiku 4.5 | $0.00200 | $0.00200 |
Grade A, and why
devex AGENTS.md scanned grade A with 0 findings 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 1mo 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Devex Agent Guide
Summary Devex is a cloud development IDE with sandboxed “repl” sessions. The system is split into services. The core service handles auth and session orchestration, while the runner provides the interactive sandbox (WebSocket + PTY). Session data is persisted to S3-compatible storage when a repl is deactivated.
Architecture (High Level)
- Core service (
apps/core) is deployed to a VPS via Docker Swarm and is the control plane. - Runner service (
apps/runner) is the data plane sandbox image. Each repl is a Kubernetes Deployment with a single pod. - Pod layout:
initContainerpulls workspace files from S3.runnerContaineris the interactive sandbox (WebSocket + PTY).
- Deactivation flow:
- Core injects an ephemeral container into the pod to upload workspace data to S3.
- Core then deletes Deployment/Service/Ingress/Middleware.
- Routing:
- Base host:
repl.parthkapoor.me - Route pattern:
repl.parthkapoor.me/<repl-id>/<route> - Uses
hostNetwork: trueto avoid a load balancer and save cost.
- Base host:
Key Entry Points
- Core API:
apps/core/cmd/main.go - Runner API:
apps/runner/cmd/main.go - MCP service:
apps/mcp/cmd/main.go
Repo Layout
apps/core/: Control-plane service (auth + session orchestration + k8s + s3 + redis).apps/runner/: Sandbox service (WebSocket, PTY, file operations, shutdown manager).apps/mcp/: MCP server.apps/web/: Frontend web app.apps/agent/: Agent-related app (check README inside).packages/: Shared Go packages and generated protobufs.packages/logging: Shared logger wrapper.packages/proto+packages/pb: Proto sources and generated code.
infra/: Deployment and infrastructure.infra/core/: Swarm dockerfile + stack config.infra/runner/: Runner dockerfiles (base + language variants).infra/mcp/: MCP dockerfile.infra/k8s/: K8s manifests, cert-manager, ingress, traefik.
templates/: Repl templates synced to object storage.
Data Stores
- Redis: repl/session state.
- S3-compatible storage: workspace persistence on session end.
Build and Test (Local)
- Core build:
cd apps/corego build -o /tmp/core ./cmd/main.go
- Runner build:
cd apps/runnergo build -o /tmp/runner ./cmd/main.go
- Docker images:
docker build -f infra/core/dockerfile -t devex/core:local .docker build -f infra/runner/dockerfile -t devex/runner:local .
CI/CD
- Workflows live in
.github/workflows/. - Core pipeline builds/pushes and deploys via Docker Swarm.
- Runner pipeline builds runner + env images.
- Templates pipeline syncs
templates/to DigitalOcean Spaces.
Where to Look First
- Auth/session logic:
apps/core/services/auth/ - Repl lifecycle:
apps/core/services/repl/andapps/core/internal/k8s/ - Runner WS/PTY:
apps/runner/pkg/ws/,apps/runner/pkg/pty/ - Shared logging:
packages/logging/
Notes for Agents
- The system relies on
hostNetwork: truefor simplicity and cost. - The core service is the orchestrator; runner instances are ephemeral and created per repl session.
- If you change protobufs in
packages/proto/, regenerate viamake generate-proto.
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.
- 1mo ago Changed · +5 lines · +88 tokens per session 9e47419fcf21
- 1mo ago Changed · +73 lines · +1,078 tokens per session 81b5c2825196
- 2mo ago First seen · 72 lines · 835 tokens per session scan A b9c26ab971fc
devex AGENTS.md is an instructions file published in the GitHub repository ParthKapoor-dev/devex (79 stars, last pushed 1mo ago), licensed MIT. It adds 2,001 tokens to every session, about $0.0080 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
devex AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| devex AGENTS.mdParthKapoor-dev/devex | Instructions file | 79 | 1mo ago | MIT | A | 2,001 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | 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 |