dsh-codex-app-server AGENTS.md

Repository instructions for a TypeScript service that manages agent sessions and communicates through the Codex App Server. They describe the project layout, required tools, commands, coding rules, and test expectations.

In plain words
What is it for?
Working on source files, running builds and tests, checking types and formatting, validating the App Server protocol, and keeping credentials out of recorded fixtures.
Why use it?
They give contributors a shared way to build, check, and test changes without guessing where code belongs or which commands to run.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/lylemi/dsh-codex-app-server/agents-md
Clone the repo
git clone --depth 1 https://github.com/LyleMi/dsh-codex-app-server

Made for: Codex, OpenCode.

Per session 684 This file is loaded in full into every session.
When invoked 684 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00684 $0.00684
Opus 5 $0.00342 $0.00342
Sonnet 5 $0.00137 $0.00137
Haiku 4.5 $0.00068 $0.00068

Measured 2d ago against content hash d6878fd1e00d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dsh-codex-app-server 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 2d 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.

AGENTS.md · 30 lines

How it starts

The opening of the file, as written. The whole thing — 30 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repository Guidelines

Project Structure & Module Organization

Production TypeScript lives in src/. Top-level modules cover agent lifecycle, configuration, process management, and DSH bindings; JSONL transport and App Server handling are under src/wire/, while session projection is under src/projection/. Tests are flat tests/*.spec.ts files, with the opt-in real Codex smoke test at tests/real-codex.e2e.ts. Protocol recordings belong in tests/fixtures/app-server/ and must be scrubbed of credentials, account data, tokens, and home paths. Design and security rationale live in docs/; maintenance scripts live in scripts/. Generated lib/ and coverage/ output must not be committed.

Build, Test, and Development Commands

Use Node.js 22.19+ and pnpm 10.15.0.

  • corepack enable && pnpm install --frozen-lockfile installs the locked toolchain.
  • pnpm build compiles src/ into lib/.
  • pnpm test runs the Vitest suite once; pnpm test:coverage enforces coverage.
  • pnpm typecheck, pnpm lint, and pnpm format:check run focused static checks.
  • pnpm protocol:check verifies the installed Codex App Server contract against the reviewed fixture.
  • pnpm check runs the complete merge/release gate, including Reforge and package validation.
  • RUN_REAL_CODEX=1 pnpm test:e2e runs the credential-isolated real CLI smoke test when Codex is available.

Coding Style & Naming Conventions

Follow Prettier output: two-space indentation, single quotes, and no semicolons. Keep TypeScript strict and use import type for type-only imports. Name files with lowercase descriptive nouns (for example, wire/transport.ts); use PascalCase for types/classes and camelCase for functions and variables. Preserve explicit ownership, bounded resources, and fail-closed protocol behavior.

Testing Guidelines

Use Vitest and name unit/integration tests tests/<area>.spec.ts. Add regression coverage beside the affected boundary. V8 thresholds are 80% for lines, functions, and statements, and 70% for branches. Protocol changes require pnpm protocol:check, sanitized fixtures, compatibility documentation, and the real smoke test when credentials are safely available.

Read the full file on GitHub · 30 lines

Changes

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.

  1. 2d ago First seen · 30 lines · 684 tokens per session scan A d6878fd1e00d

Subscribe to this mod's changes

dsh-codex-app-server AGENTS.md is an instructions file published in the GitHub repository LyleMi/dsh-codex-app-server (2 stars, last pushed 12d ago), licensed Apache-2.0. It adds 684 tokens to every session, about $0.0034 per session on Opus 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-31.

Related

Other instructions, from other repositories