[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-92567":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":9,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":14,"starSnapshotCount":14,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},92567,"codex-hygiene","sunflower-of-parchman\u002Fcodex-hygiene","sunflower-of-parchman","Codex skill for auditing and tuning Codex Desktop context\u002Ftool surfaces",null,"Shell",235,7,147,0,88,51.51,"MIT License",false,"main",true,[22,23,24,25,26],"codex","codex-skill","developer-tools","mcp","token-usage","2026-07-22 04:02:06","# Codex Hygiene\n\nA small Codex skill for auditing and tuning Codex Desktop context and tool surfaces.\n\nUse it to measure recent Codex Desktop telemetry, review MCP\u002Fapp\u002Fskill availability, and keep long-running goal workflows scoped to the current work.\n\nCommunity skill for local Codex setup hygiene.\n\n## What It Does\n\n- Measures recent Codex Desktop tool-list and per-thread token telemetry with read-only SQLite queries.\n- Helps identify whether elevated usage correlates with app surface size, MCP\u002Fplugin state, snapshot reuse, stale project stanzas, long-thread replay, or background fan-out.\n- Distinguishes actual tool calls from tool availability, enabled state from cached inventory, and thread-local token changes from mixed-thread totals.\n- Suggests reversible hygiene steps instead of deleting logs, caches, or projects.\n- Keeps long-running goal work quality-aware: narrow replay and tool scope without blindly lowering reasoning, banning subagents, or avoiding real source evidence.\n\n## Install\n\nClone this repo into the current user-level Codex skills folder:\n\n```bash\nmkdir -p \"$HOME\u002F.agents\u002Fskills\"\ngit clone https:\u002F\u002Fgithub.com\u002Fsunflower-of-parchman\u002Fcodex-hygiene.git \\\n  \"$HOME\u002F.agents\u002Fskills\u002Fcodex-hygiene\"\n```\n\nThen invoke `$codex-hygiene`. Codex normally detects newly installed skills automatically; restart Codex only if it does not appear.\n\n## Quick Measurement\n\nFrom a shell:\n\n```bash\nSKILL_DIR=\"$HOME\u002F.agents\u002Fskills\u002Fcodex-hygiene\"\n\"$SKILL_DIR\u002Fscripts\u002Fmeasure_codex_context.sh\"\n```\n\nUse a specific window or thread id:\n\n```bash\n\"$SKILL_DIR\u002Fscripts\u002Fmeasure_codex_context.sh\" 5\n\"$SKILL_DIR\u002Fscripts\u002Fmeasure_codex_context.sh\" 30\n\"$SKILL_DIR\u002Fscripts\u002Fmeasure_codex_context.sh\" 5 \u003Cthread_id>\n```\n\nThe script prints compact counts only. It does not dump full logs, configs, tool schemas, secrets, or environment values.\n\n## Compatibility\n\n- Designed for macOS and Unix-like Codex Desktop environments with Bash, `sqlite3`, Perl, `awk`, and `sort`.\n- Uses `jq` and the `codex` CLI when available for app-cache and plugin state summaries.\n- Treats local telemetry databases and cache layouts as version-dependent diagnostic inputs, not stable APIs or billing records.\n- Supports custom Codex data locations through `CODEX_HOME`; use the skill's actual install path when it is not under `$HOME\u002F.agents\u002Fskills`.\n\n## Safety Defaults\n\n- Starts read-only.\n- Uses `sqlite3 -readonly`.\n- Avoids printing full config, full logs, app schemas, MCP schemas, or `.env` values.\n- Recommends backing up `~\u002F.codex\u002Fconfig.toml` before any config edit.\n- Treats delete\u002Frestart\u002Fdisable actions as explicit-user-approval work.\n\n## Contents\n\n```text\nSKILL.md\nagents\u002Fopenai.yaml\nscripts\u002Fmeasure_codex_context.sh\ntests\u002Fmeasure_codex_context_test.sh\nreferences\u002Fremediation.md\nreferences\u002Flong-thread-replay.md\n```\n\n## Codex References\n\n- [Agent Skills](https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\u002Fskills)\n- [Configuration reference](https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\u002Fconfig-reference)\n- [MCP configuration](https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\u002Fmcp)\n\n## License\n\nMIT\n","Codex Hygiene 是一个面向 Codex Desktop 的轻量级诊断技能，用于审计和优化本地开发环境中的上下文管理与工具表面（tool surfaces）。它通过只读 SQLite 查询分析近期工具调用列表、线程级 token 使用量，并评估 MCP 插件状态、快照复用率、项目配置陈旧度及长线程回放行为；支持按窗口或线程 ID 精准测量，提供可逆的清理建议而非强制删除。适用于需要持续维护 Codex 桌面端运行效率、排查推理开销异常、保障长期目标工作流质量的开发者场景。",2,"2026-07-09 02:30:21","CREATED_QUERY"]