Quick Start
Start with a single native plugin install or single-host setup—no global multi-editor writes required unless you ask for them:
Claude Code (Native Plugin Marketplace)
/plugin marketplace add fatidaprilian/Agentic-Senior-Core
/plugin install agentic-senior-core@agentic-senior-core
Single Host CLI or Single Project
# Install CLI globally
npm install -g @ryuenn3123/agentic-senior-core@latest
# Configure one host (zero per-project files)
asc global --antigravity # or --claude, --codex, --copilot, --opencode, --roo
# Or generate project-local rules for an instruction-tier editor in one repo
npx @ryuenn3123/agentic-senior-core adapter --cursor # or --windsurf, --cline, --zed, --roo
Configure All Supported Hosts + Optional Git Hook
asc global --all
asc global --with-git-hook # opt-in global pre-commit hook (~/.asc/global-hooks/pre-commit)
Full Installation Guide for Windows, macOS/Linux, Trust Review in Codex CLI, and per-host details.
Why Hooks Instead of Prompts Alone
Prompt instructions fade across long coding sessions and never physically stop an agent from running a bad command. ASC pairs concise engineering rules with deterministic Node.js lifecycle hooks that intercept tool calls before execution, inspect actual file edits afterward, and hold turn completion until changes are verified.
What Mechanical Hooks Catch
| Stage | Trigger | Enforced Guardrails |
|---|
Pre-Tool (PreToolUse) | Shell commands & file edits/writes | Hard-blocks pipe-to-shell (curl | bash, irm | iex), hardcoded secrets/private keys before disk writes, unverified git clone (HalluSquatting), AI commit/PR writing boilerplate/emojis/vague subjects, and redundant dependencies across package.json, requirements.txt, pyproject.toml, go.mod, Cargo.toml, and Gemfile. Requires explicit user confirmation (force_ask / ask) for git commit/push, destructive POSIX/PowerShell commands (git reset --hard, root/wildcard rm -rf or Remove-Item, DROP/TRUNCATE), and creating .asc/, .agents/, or CONVENTIONS.md files in team-guest repos. |
Post-Edit (PostInvocation / PostToolUse) | Diff-scoped Edit & full Write | Checks 46 AI slop, accessibility, and code-hygiene patterns (catch {} swallowing / CWE-390, TypeScript as any / @ts-ignore, min-h-screen, raw hex colors, mixed neutral Tailwind palettes, unwrapped <table> elements, missing <img> alt, clickable <div>), OWASP XSS/SQLi/command-injection/eval sinks, UI Card Soup (>= 2 bordered card grids), layout shell collisions, test-integrity tampering, blind bug edits without reproduction, and jscpd clone detection. Forces continuation on critical security, test-integrity, and structural UI findings. |
Turn Completion (Stop) | Normal agent finish (NO_TOOL_CALL / model_stop) | Blocks turn completion if source code was modified without running a fresh passing verification command afterward, if the last test/build failed (Self-Healing Gate), or when unrequested sensitive files (lockfile, CI workflows, migrations, .env) or wide blast radius trigger the Scope Drift gate, guarded by continuationActive and retry caps. |
| Git Pre-Commit (Opt-In) | asc global --with-git-hook or asc adapter | Blocks staged secrets, .env files, merge conflict markers, oversized files (> 500 KB), untracked ASC-STUB:/TODO markers, and duplicated source blocks (jscpd). |
The Decision Ladder
Every active session loads the universal rule file and applies a 6-step filter before writing new code:
- Does this need to be built at all?
- Does the codebase already have this? Reuse it.
- Does the stdlib or native platform cover it? Use it—unless a house component already exists.
- Does an already-installed dependency solve it?
- Can this be one straightforward function?
- Only then: write the minimum code that works.
Before / After