| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
The essence of AI Coding is Context Management. This project establishes a balance between the probability of LLMs and the certainty of software engineering through standards, Harness, and Skills.
A complete AI behavior governance framework with four-layer synergy:
Tool-agnostic: single AGENTS.md + harness/ work with any coding agent (Claude Code, Gemini CLI, Codex CLI, pi, Cursor, …). No per-tool config directories.
# Execute in the project root directory
curl -sSL https://raw.githubusercontent.com/rayjun/ai-coding-context/main/install.sh | bash
# Preview files to be written (dry run)
curl -sSL .../install.sh | bash -s -- --dry-runAutomatic .bak backup before overwriting; automatic rollback on download failure.
Reasoning framework, task complexity levels, coding philosophy, loop engineering discipline, 9-step development process, security rules, and documentation maintenance. The process is scaled via a trivial/moderate/complex × 9-step matrix to avoid a one-size-fits-all approach. Tool-agnostic: no per-tool config dirs; hooks are executed by the agent on its own per §7 (see harness/hooks/).
---
paths:
- "harness/hooks/**/*.sh"
---
# Hook Development Rules
- All hook scripts must start with `set -euo pipefail`
- ...Referenced by AGENTS.md §8; paths frontmatter is documentation only (no platform auto-injection).
Kept as reference implementations. Slash-command auto-registration is platform-specific; any agent can run these as documented procedures instead.
6 project-level skills (workflow-management / plan-review / code-review / investigate / careful-ops / obsidian-writer) + 1 eval-runner tool. Each SKILL.md contains EVAL 1..N quality assessment blocks, which can be automatically scored using eval-runner.py. code-review enforces tool-evidence: every review must cite actual compiler / lint / test output, not just code reading.
obsidian-writer is a demo skill showcasing the per-vault AGENTS.md rule pattern; this repo itself does not use it. Forks can drop it from install.sh if not needed.
Independent context windows for tasks that would otherwise pollute the main thread:
Skills define rules; agents execute them. complex tasks recommend Agent(subagent_type="plan-reviewer") / Agent(subagent_type="code-reviewer") (platform subagent API, or read the files directly); trivial / moderate use the skills directly.
Inspired by Kiro / spec-kit. The requirements.md (EARS) → design.md → tasks.md triplet is an optional alternative to docs/plans/ for cross-PR / multi-week features. AGENTS.md §6 is unchanged. See docs/specs/README.md for when to use spec vs plan.
| Event | Script | Function |
|---|---|---|
| SessionStart | orient-session.sh | Inject git log / STATUS.md / tasks summary |
| UserPromptSubmit | prompt-context.sh | Inject tasks briefing before each conversation (with mtime caching) |
| PreToolUse Bash | careful-ops-check.sh | Block dangerous commands (hookSpecificOutput format) |
| PreToolUse Bash | pre-commit-check.sh | Prohibit commit if no test evidence or passive source code changes |
| PostToolUse Bash | record-test-evidence.sh | Record only when test/build output appears successful |
| PostToolUse Edit|Write | post-edit-dispatch.sh | Merge and dispatch status-reminder / format-check / tasks-validate |
| PostToolUse Edit|Write | credential-sniff.sh | Scan for AKIA / sk- / ghp_ / PEM / JWT |
| PostToolUse Edit|Write | large-file-warn.sh | Remind to split files > 1500 lines |
| PostToolUse Edit|Write | migration-safety.sh | Detect NOT NULL without default / DROP / non-CONCURRENTLY |
| PreCompact | pre-compact.sh | Preserve current target / plan / resume point before compaction |
| Notification | notify.sh | macOS / Linux desktop notifications |
| Stop | session-end.sh | Session end check for STATUS / tasks / uncommitted changes |
| Stop | assertion-audit.sh | Scan for "test passed" assertions and compare with evidence files |
Shared Libraries: lib/json-extract.sh, lib/session-dir.sh, lib/task-summary.py, lib/danger-patterns.sh (+ 25 unit tests), lib/pretool-response.sh.
| Step | trivial | moderate | complex |
|---|---|---|---|
| 1. Brainstorming | ➖ | ◯ | ✅ |
| 2. Planning + Review | ➖ | ✅ | ✅ |
| 3. Git worktree | ➖ | ➖ | ◯ |
| 4. TDD (Production Logic) | ➖ | ✅ | ✅ |
| 5. Execution (Parallel agents) | Direct | ✅ | ✅ |
| 6. Code Review | ➖ | ✅ | ✅ |
| 7. Verification (Evidence > Assertions) | ✅ | ✅ | ✅ |
| 8. Documentation Maintenance | ➖ | ✅ | ✅ |
| 9. Finishing Branch | ➖ | ◯ | ✅ |
✅ Required · ◯ Optional · ➖ Skippable
See AGENTS.md §2 §6 for details.
| Back | FazBrowse Home | New Git URL |