updsts: Instructions file for Codex

AGENTS.md

updsts AGENTS.md is an instructions file for Codex, OpenCode from zv-louis/updsts. It costs 1,957 tokens per session, scanned C, original, MIT.

Project instructions for updsts, a command-line tool and local MCP server that obtains temporary AWS credentials from an existing profile and a multi-factor authentication code. It also explains how the project protects secret values from being returned to the AI client.

In plain words
What is it for?
They help maintain the AWS credential updater, its command-line and MCP interfaces, credential masking, and its Python tests.
Why use it?
They give an AI coding agent the project's security rules, structure, and test setup when modifying the credential tool.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions Claude Code.

This is zv-louis/updsts's own configuration. It tells Codex and OpenCode how to work on updsts 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 updsts configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zv-louis/updsts. 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/zv-louis/updsts/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/zv-louis/updsts

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 updsts AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zv-louis/updsts/agents-md"><img src="https://agentmods.dev/badge/instructions/zv-louis/updsts/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,957 This file is loaded in full into every session.
When invoked 1,957 The same file — it is already loaded in full.
Security scan C 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.01957 $0.01957
Opus 5.5 $0.00783 $0.00783
Sonnet 5.5 $0.00391 $0.00391
Haiku 4.5 $0.00196 $0.00196

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

Security

Grade C, and why

updsts AGENTS.md scanned grade C 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 13d 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- 既定の場所は `~/.aws/credentials`
AGENTS.md · 101 lines

How it starts

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

updsts project

既存の AWS プロファイルと MFA の TOTP トークンから一時的な STS 認証情報を取得し、AWS の credentials ファイルを更新する CUI ツール兼ローカル MCP サーバー。 MCP 経由で操作される前提のため、アクセスキーやシークレットキーなどの秘密情報をマスクせずに LLM 側へ返さないことを設計上の原則としている。

技術スタック

  • Python 3.12 以上、パッケージ管理は uv、ビルドは hatchling
  • 主な依存: boto3(STS の get_session_token)、fastmcp(MCP サーバー)、pydantic
  • テスト: pytest(マーカー: slow / integration / unit / aws。AWS 呼び出しはモック)

ディレクトリ構成

src/updsts/
  __main__.py     CLI エントリポイント(main)。引数解析と例外のメッセージ化
  cmdparam.py     argparse のサブコマンド定義(get / list / mcp)
  cmd_handler.py  サブコマンドのハンドラ
  awsutil.py      業務ロジック: credentials ファイルの読み込み、STS トークン取得、マスク処理
  upcred.py       CredentialUpdater: credentials ファイルの該当ブロックを書き換える
  logutil.py      ロガー(コンソール出力は stderr。MCP の stdio を汚さないため)
  mcp_server.py   FastMCP のツール定義(薄いラッパー)
  mcp_impl.py     MCP ツールの実装、例外を ValueError に揃える共通処理
src/updsts_main.py  ローカルのソースを MCP サーバーとして起動するスクリプト(PEP 723 のインライン依存を持つ)
test/             モジュールごとの pytest
.claude-plugin/   Claude Code プラグインのマニフェスト
.mcp.json         プラグイン用 MCP サーバー設定(uvx updsts@latest mcp --mcp-server。PyPI 公開版を起動する)
.vscode/mcp.json  ワークスペース用 MCP サーバー設定(uv run --script src/updsts_main.py mcp --mcp-server。手元のソースを起動する)
.github/workflows/publish.yml  タグ push で TestPyPI → PyPI へ公開する(Trusted Publishing)

処理の流れは、CLI なら __main__.py → cmd_handler.py → awsutil.py → upcred.py、MCP なら mcp_server.py → mcp_impl.py → awsutil.py → upcred.py となる。

CLI

updsts get -n <profile> -t <totp_token>              # STS 認証情報を取得して credentials ファイルを更新
updsts get -n <profile> -t <totp> -sn <sts_profile>  # 書き込み先のプロファイル名を指定(既定は <profile>_sts)
updsts get -n <profile> -t <totp> -d 7200            # 有効期間(秒)を指定(既定は 3600)
updsts list                                          # プロファイル一覧(秘密情報はマスク表示)
updsts mcp --mcp-server                              # MCP サーバーとして起動(オプションなしならツール一覧を表示)

共通オプションは -v, --verbose(0: 通常、1: 詳細、2: デバッグ)と -c, --credential_file。

MCP ツール

ツール 内容
updsts_update_sts_credential TOTP トークンで STS 認証情報を取得し、credentials ファイルを更新
updsts_get_credential_status 指定プロファイルの情報(秘密情報はマスク済み)
updsts_get_credential_status_list 全プロファイルの情報(秘密情報はマスク済み)

Read the full file on GitHub · 101 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. 13d ago Changed eafea1d2d0bb
  2. 18d ago Changed · +2 lines · +226 tokens per session 49dbe4ecd1e0
  3. 1mo ago Changed · +9 lines · +286 tokens per session 14e6cc3d3ab9
  4. 2mo ago First seen · 90 lines · 1,445 tokens per session scan C b9b21b3cb444

Subscribe to this mod's changes

updsts AGENTS.md is an instructions file published in the GitHub repository zv-louis/updsts (0 stars, last pushed 13d ago), licensed MIT. It adds 1,957 tokens to every session, about $0.0078 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-26.

Related

updsts AGENTS.md compared with instructions from other repositories

updsts AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
updsts AGENTS.mdzv-louis/updstsInstructions file013d agoMITC1,957Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot