host-console: Instructions file for Codex

AGENTS.md

host-console AGENTS.md is an instructions file for Codex, OpenCode from tuweihuasheng/host-console. It costs 787 tokens per session, scanned B, original, MIT.

Project instructions for an AI coding agent working on a web prototype. They define how to run previews, apply design decisions, preserve required files, and prepare the project for handoff.

In plain words
What is it for?
They are for building the app in the specified source folder, running the local server and preview, using approved designs, recording durable feedback, building the project, and running site tests.
Why use it?
They reduce inconsistent agent behavior by recording project rules and the files and checks that must remain intact. They also make the result easier to verify before delivery.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex; mentions OpenCode.

This is tuweihuasheng/host-console's own configuration. It tells Codex and OpenCode how to work on host-console itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything host-console configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tuweihuasheng/host-console. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tuweihuasheng/host-console/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/tuweihuasheng/host-console

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for host-console AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tuweihuasheng/host-console/agents-md/github.svg)](https://agentmods.dev/instructions/tuweihuasheng/host-console/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/tuweihuasheng/host-console/agents-md"><img src="https://agentmods.dev/badge/instructions/tuweihuasheng/host-console/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.

agentmods 80×15 button for host-console AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tuweihuasheng/host-console/agents-md"><img src="https://agentmods.dev/badge/instructions/tuweihuasheng/host-console/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 787 This file is loaded in full into every session.
When invoked 787 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00787 $0.00787
Opus 5.5 $0.00315 $0.00315
Sonnet 5.5 $0.00157 $0.00157
Haiku 4.5 $0.00079 $0.00079

Measured 1mo ago against content hash 1a445e5f54cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

host-console AGENTS.md scanned grade B 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 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Each SSH host may persistently allow multi-Agent terminal writes. Default stays single-writer lease (others wait or force-takeover only after the user explicitly says so); enabling multi-write lets several Agents hold
AGENTS.md · 24 lines

What it actually says

Prototype Instructions

Run the local server yourself and open the preview in the browser available to this environment. Do not give the user server-start instructions when you can run it.

Before making substantial visual changes, use the Product Design plugin's get-context skill when the visual source is unclear or no longer matches the current goal. When the user gives durable prototype-specific design feedback, preferences, or decisions, record them in AGENTS.md.

When implementing from a selected generated mock, treat that image as the source of truth for layout, component anatomy, density, spacing, color, typography, visible content, and hierarchy.

Build app UI in src/. Keep .openai/hosting.json, worker/index.js, scripts/prepare-sites-build.mjs, and tests/sites-worker.test.mjs intact so the same local prototype can be handed to Sites. Before a Sites handoff, run npm run build and npm run test:sites; the build must leave dist/client/index.html, dist/server/index.js, and dist/.openai/hosting.json.

Durable product decisions:

  • Agent access is a persistent, data-driven registry. Never hard-code supported Agent names into the UI; live MCP clients auto-register and remain visible while offline.
  • Keep task/client identity separate from Agent installation identity: each task retains its own control lease, while a stable registry ID groups active tasks under one Agent row. Show the active task/connection count, and allow users to remove only offline, unconfigured discovered records.
  • Each SSH host may persistently allow multi-Agent terminal writes. Default stays single-writer lease (others wait or force-takeover only after the user explicitly says so); enabling multi-write lets several Agents hold write rights at once. Turning the switch off immediately clears every writer and temporary sudo grant on that session.
  • Each registered Agent has a persistent, independent connection switch. Turning it off must make the Agent appear disabled, reject every MCP bridge operation except registration/heartbeat cleanup, release its SSH leases, cancel pending sudo approvals, and revoke its sudo grants without affecting other Agents or disconnecting SSH.
  • Each SSH host may persistently enable sudo auto-approval. It only bypasses the per-command sudo prompt while the session is in full mode and an enabled Agent owns the lease; passwords remain encrypted locally and disabling the switch immediately clears temporary sudo grants.
  • Adding an Agent uses a local config-file wizard with preview, same-directory backup, and explicit restart guidance. Configuration paths stay in the desktop renderer and are never exposed through MCP snapshots.
  • Native config-wizard formats include Codex TOML, OpenCode JSONC, ZCode ~/.zcode/cli/config.json under mcp.servers, WorkBuddy ~/.codebuddy/.mcp.json under mcpServers, and generic mcpServers; keep each Agent's registry kind and label distinct in the access center.
  • Every SSH action is bound to a session ID. When more than one session is authorized, control acquisition also verifies the exact alias; Agents must ask rather than infer an ambiguous target.
  • Saved SSH connections can be edited only while disconnected. Replacing authentication never reveals the old secret; the new encrypted credential overwrites it, and changing the endpoint resets pinned host trust.
  • On desktop, the Agent access center expands to consume all vertical space between the terminal and permission controls; permission controls stay near the bottom so the session pane has no unused lower void. Compact layouts fall back to natural document flow.
  • sudo approval defaults to a user-adjustable 30-minute no-prompt window (0 means one command, maximum 240 minutes). A grant is bound to the current SSH session and controlling Agent task, is visible and manually revocable in the UI, and is cleared by pause, mode downgrade, Agent handoff/disconnect, SSH disconnect, or expiry.
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. 1mo ago Changed · +2 lines · +114 tokens per session 1a445e5f54cc
  2. 2mo ago First seen · 22 lines · 673 tokens per session scan B e180a723d14e

Subscribe to this mod's changes

host-console AGENTS.md is an instructions file published in the GitHub repository tuweihuasheng/host-console (1 stars, last pushed 1mo ago), licensed MIT. It adds 787 tokens to every session, about $0.0031 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

host-console AGENTS.md compared with instructions from other repositories

host-console AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
host-console AGENTS.mdtuweihuasheng/host-consoleInstructions file11mo agoMITB787Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode