AnastasiyaW/codex-claude-code-config

218 stars · Last commit 2026-11-27

Claude Code, Codex, and multi-agent configuration system: principles, hooks, skills, and workflow patterns for AI-assisted development

README preview

# Claude Code + Codex Agent Configuration System

[![OKF v0.1 compliant](https://img.shields.io/badge/OKF-v0.1%20compliant-4285F4)](https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md)

A practical configuration kit for Claude Code, Codex, and other coding agents. It contains architectural principles, enforcement hooks, skills, drop-in rules, starter templates, and dynamic-workflow commands. Drop the relevant parts into a project so the agent starts from verified working patterns instead of rediscovering them every session.

This is not a collection of tips. It is a **system** that teaches your agent *how to work* - when to use one agent vs many, how to verify its own output, how to manage context across long sessions, how to not get poisoned by malicious packages.

## Notes

Write-ups of the incidents that produced a rule or a hook here. Each states what was measured,
what is inference, and what the fix does not cover.

| | |
|---|---|
| **New - [Crossweft: a guard on every hand-written seam](https://github.com/AnastasiyaW/crossweft)** | Our companion tool, now at [v0.4.0](https://github.com/AnastasiyaW/crossweft/releases/tag/v0.4.0). A product in several languages is held together by values copied by hand: a route, a header, an API version, DTO fields, env vars. Crossweft keeps a map of components and the links between them and checks both sides of each link. It fails the build when one side changes alone, and after an edit it tells the agent which file on the other side to re-read. Its Stop hook does not let the agent say "done" while a seam disagrees. 0.4.0 adds `report` (the map with what the check found on it), `signals` (an alarm rule for every seam: errors, queues, health, heartbeat) and `doctor`. Pure Python stdlib, works with Claude Code and Codex. We run it as a Stop gate in nine of our own repositories. Project page: [happyin.work/crossweft](https://happyin.work/crossweft/). |
| **New - [Token overspend: interim measures](docs/token-overspend-interim.md)** | Measured: each fresh general-purpose subagent reloads the whole `CLAUDE.md` and rules (99-164k tokens on its first request), and background agents in auto mode woke the main conversation until Claude Code 2.1.311. Until official fixes cover it, the plugin ships Benjamin-Plus and a hash-verified RTK hook. Also: the 1% skill-list ceiling, always-loaded rules, linked-chat reports that cost a main-chat turn, and the [`pult`](mods/pult/README.md) mod that offers "compact or new chat" and writes a handoff before compaction. Each measure names the fix that retires it. |
| **New - [Long waits and the 1-hour cache](rules/long-wait-cache-ttl.md)** | An agent waiting on CI, pipeline tests or training waits at most 50 minutes, then checks live progress. The 1-hour prompt cache never goes cold, and a hung job gets noticed as a side effect. Also sets `subagentPromptCacheTtl: "1h"`: subagents default to 5 minutes, and sessions that spawn dozens of agents burned usage on repeated cache writes. Source and cost trade-off included. |
| **New - [Evidence-backed visual workflow](docs/harness-improvement-pilot.md#candidate-evidence-backed-visual-workflow)** | What we take from [OpenVLHarness](https://github.com/uclanlp/OpenVLHarness) and what we leave. We take typed evidence with addressable crops and masks, degradation as a receipt rather than a silent fallback, and a run manifest. We leave host-side execution of model-written Python ("execution timeout is not a sandbox") and the GPU stack. Value gets proved through the bounded pilot, not taken from benchmark numbers. |
| **New - [Output legibility](docs/output-legibility.md)** | Karpathy's readability ladder (STE-style text, diagram, HTML, video) plus `scripts/term_drift_check.py`: a glossary-driven check for terminology drift and overlong sentences that works in Russian too, with three-state exit codes. Also a dead-code sweep method for agents in the `refactoring-safely` skill. |

View full repository on GitHub →