host-console AGENTS.md

host-console AGENTS.md is an instructions file for Codex, OpenCode from tuweihuasheng/host-console. It costs 673 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

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/tuweihuasheng/host-console/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 673 This file is loaded in full into every session.
When invoked 673 The same file — it is already loaded in full.
Security scan B 1 finding. 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.00673 $0.00673
Opus 5 $0.00336 $0.00336
Sonnet 5 $0.00135 $0.00135
Haiku 4.5 $0.00067 $0.00067

Measured 4d ago against content hash e180a723d14e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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 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
AGENTS.md · 22 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 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.
  • 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. 4d 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 13d ago), licensed MIT. It adds 673 tokens to every session, about $0.0034 per session on Opus 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.