Skip to content

Commit 560ebf2

Browse files
authored
Add Anchor plugin (Community / Development & Workflow) (#144)
* Add Anchor plugin (Community / Development & Workflow) Anchor is a cross-CLI (Claude Code + Codex CLI) engineering-discipline pack that bundles a skill, 11 slash commands, and 4 safety hooks. Highlights: - task-scope anchoring on the user's exact phrasing - anti-drift braking when the model tries to go out of scope - optional autonomous mode (Stop hook keeps the model going while tasks remain) - end-to-end verification gate (refuses to declare done before a real E2E) - multi-pass vulnerability scanning + condition-based codex review on big diffs - pitfall writeback to the project's CLAUDE.md - PreToolUse hook blocking irreversible bash patterns (hard-reset, force-push, schema-level drops, mkfs, dd-to-device, recursive-777, curl-pipe-bash) with a shell-aware segment + safe-list parser so echo/grep literals don't false-trip Bundle: - plugins/biefan/anchor/.codex-plugin/plugin.json (name, version 1.3.1, license MIT, interface.composerIcon, keywords) - plugins/biefan/anchor/assets/icon.svg (711 bytes, 512x512) - plugins/biefan/anchor/LICENSE (MIT) - plugins/biefan/anchor/README.md (points at the full repo) README entry inserted alphabetically between AgentOps and Antigravity. Upstream: https://github.com/biefan/anchor Release: https://github.com/biefan/anchor/releases/tag/v1.3.1 License: MIT CI: green (shellcheck + jsonlint + install.sh smoke test) * anchor: bump bundle plugin.json to v1.3.2 (matches upstream release)
1 parent 0d30569 commit 560ebf2

5 files changed

Lines changed: 103 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ Third-party plugins built by the community. [PRs welcome](#contributing)!
123123
- [Aegis](https://github.com/GanyuanRan/Aegis) - An agentic skills framework & software development methodology that works: planning, TDD, debugging, and collaboration workflows.
124124
- [Agentizer](https://github.com/Humiris/wwa-transform) - Turn any website into an AI-powered agentfront with split-pane
125125
- [AgentOps](https://github.com/boshu2/agentops) - DevOps layer for coding agents with flow, feedback, and memory that compounds between sessions.
126+
- [Anchor](https://github.com/biefan/anchor) - Engineering discipline pack for Claude Code & Codex CLI with task-scope locking, anti-drift braking, condition-based codex review, project-CLAUDE.md pitfall writeback, and PreToolUse hooks that block irreversible bash patterns.
126127
- [Antigravity Workspace Template](https://github.com/study8677/antigravity-workspace-template) - Multi-agent codebase knowledge graph generator with context-aware planning and automatic scope management — turns codebases into coherent agent workspaces.
127128
- [Archcore](https://github.com/archcore-ai/plugin) - Gives coding agents the architecture, rules, and prior decisions of the repo via skills, hooks, and MCP — so new changes land where the project says they belong across Claude Code, Cursor, and Codex CLI.
128129
- [Bring Your AI Migration Auditor](https://github.com/unitedideas/bringyour-mcp) - Read-only Codex plugin for auditing Claude Code to Codex migrations before Codex edits code. Checks AGENTS.md/CLAUDE.md scope, hooks, MCP config, skills, secret references, and validation notes.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "anchor",
3+
"version": "1.3.2",
4+
"description": "Engineering discipline pack for Claude Code & Codex CLI: a skill + 11 slash commands + 4 safety hooks that keep AI on-task on long tasks, enforce E2E verification, multi-pass vulnerability scanning, condition-based codex review, and project-CLAUDE.md pitfall writeback. Cross-CLI by design.",
5+
"author": {
6+
"name": "biefan",
7+
"url": "https://github.com/biefan"
8+
},
9+
"homepage": "https://github.com/biefan/anchor",
10+
"repository": "https://github.com/biefan/anchor",
11+
"license": "MIT",
12+
"keywords": [
13+
"engineering-discipline",
14+
"skill",
15+
"hooks",
16+
"slash-commands",
17+
"claude-code",
18+
"codex-cli",
19+
"anti-drift",
20+
"autonomous-mode",
21+
"e2e-verification",
22+
"pitfall-writeback"
23+
],
24+
"interface": {
25+
"displayName": "Anchor",
26+
"shortDescription": "Engineering discipline for AI coding agents — anchor scope, run E2E, write pitfalls back.",
27+
"composerIcon": "./assets/icon.svg"
28+
}
29+
}

plugins/biefan/anchor/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 biefan
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

plugins/biefan/anchor/README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Anchor
2+
3+
Engineering discipline pack for Claude Code & Codex CLI: a skill + 11 slash commands + 4 safety hooks that keep AI on-task on long tasks, enforce E2E verification, multi-pass vulnerability scanning, condition-based codex review, and project-CLAUDE.md pitfall writeback.
4+
5+
- **Upstream repo**: https://github.com/biefan/anchor
6+
- **Release tag**: v1.3.1
7+
- **License**: MIT
8+
9+
## What's in the bundle
10+
11+
This is the mirror bundle for awesome-codex-plugins. For the full repo (including hook scripts, references, evals, and install.sh), see the upstream link above. To install:
12+
13+
```bash
14+
git clone https://github.com/biefan/anchor.git ~/anchor
15+
cd ~/anchor
16+
./install.sh
17+
```
18+
19+
`install.sh` is cross-CLI: it copies the skill + 7 commands to `~/.claude/` and (if codex CLI is on PATH) to `~/.codex/`, and auto-merges hooks into `~/.claude/settings.json` (idempotent, with backup, `--no-hooks` to skip).
20+
21+
## What it does
22+
23+
| Layer | Mechanism |
24+
|---|---|
25+
| **Skill (soft rules)** | `SKILL.md` — 7 core rules: clarify intent, lock task scope, read project contracts, smallest-correct-diff, parallelize agents, condition-based codex review, pitfall writeback. |
26+
| **11 slash commands** | `/ec /lock /pit /scan /done /next /recap /init-claude-md /status /ship /diff /cleanup` |
27+
| **4 hooks (hard enforcement)** | `SessionStart` injects project state; `Stop` blocks "stop" in autonomous mode while tasks remain; `PreToolUse` blocks irreversible bash patterns (force-push, hard-reset, drop, mkfs, dd-to-device, recursive-777, curl-pipe-bash); `PostToolUse` runs the language-appropriate linter after Edit/Write. |
28+
29+
## Validation
30+
31+
- CI: green (`shellcheck` + `jsonlint` + `install.sh` smoke test on clean Ubuntu)
32+
- Stress tests: `evals/stress/03-debug-failing-tests` scored 6/1/1 (pass/fail/N/A) via codex-as-judge
33+
- See [CHANGELOG.md](https://github.com/biefan/anchor/blob/main/CHANGELOG.md) for release notes across v1.0 - v1.3.1
34+
35+
## License
36+
37+
MIT
Lines changed: 15 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)