@ryuenn3123/agentic-senior-core 3.0.47 → 3.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent-context/prompts/init-project.md +2 -2
- package/.agent-context/rules/architecture.md +2 -2
- package/.agent-context/state/architecture-map.md +3 -3
- package/.agent-context/state/dependency-map.md +2 -2
- package/AGENTS.md +170 -35
- package/CLAUDE.md +1 -44
- package/CONTRIBUTING.md +2 -3
- package/GEMINI.md +1 -44
- package/README.md +24 -22
- package/lib/cli/commands/init.mjs +10 -28
- package/lib/cli/commands/optimize.mjs +2 -48
- package/lib/cli/commands/upgrade.mjs +9 -51
- package/lib/cli/compiler.mjs +8 -93
- package/lib/cli/constants.mjs +1 -9
- package/lib/cli/detector.mjs +0 -1
- package/lib/cli/init-options.mjs +1 -1
- package/lib/cli/utils/filesystem.mjs +2 -0
- package/lib/cli/utils/managed-surface.mjs +45 -2
- package/lib/cli/utils.mjs +19 -4
- package/package.json +1 -10
- package/scripts/bump-version.mjs +1 -16
- package/scripts/docs-quality-drift-report.mjs +0 -6
- package/scripts/frontend-usability-audit.mjs +2 -2
- package/scripts/governance-weekly-report.mjs +2 -2
- package/scripts/single-source-lazy-loading-audit.mjs +13 -126
- package/scripts/sync-thin-adapters.mjs +13 -121
- package/scripts/validate/config.mjs +14 -25
- package/scripts/validate/coverage-checks.mjs +9 -76
- package/scripts/validate.mjs +12 -97
- package/.agent-override.md +0 -36
- package/.agents/workflows/init-project.md +0 -12
- package/.agents/workflows/refactor.md +0 -12
- package/.agents/workflows/review-code.md +0 -11
- package/.cursor/mcp.json +0 -10
- package/.cursor/rules/agentic-senior-core.mdc +0 -49
- package/.cursorrules +0 -26
- package/.gemini/instructions.md +0 -44
- package/.github/copilot-instructions.md +0 -44
- package/.github/instructions/agentic-senior-core.instructions.md +0 -48
- package/.github/workflows/benchmark-detection.yml +0 -45
- package/.github/workflows/benchmark-intelligence.yml +0 -50
- package/.github/workflows/docs-quality-drift-report.yml +0 -37
- package/.github/workflows/frontend-usability-gate.yml +0 -36
- package/.github/workflows/governance-weekly-report.yml +0 -43
- package/.github/workflows/publish.yml +0 -32
- package/.github/workflows/release-gate.yml +0 -32
- package/.github/workflows/sbom-compliance.yml +0 -32
- package/.instructions.md +0 -187
- package/.windsurf/rules/agentic-senior-core.md +0 -44
- package/.windsurfrules +0 -26
|
@@ -40,7 +40,7 @@ The agent must:
|
|
|
40
40
|
If the user specifies a framework, runtime, or architecture constraint, the agent must:
|
|
41
41
|
1. Read [AGENTS.md](../../AGENTS.md) for role context.
|
|
42
42
|
2. Resolve only the rules required by the explicit constraint and scope. Do not read unrelated backend, frontend, or DevOps rules by habit.
|
|
43
|
-
3. Reference [.agent-context/state/onboarding-report.json](../state/onboarding-report.json), [.
|
|
43
|
+
3. Reference [.agent-context/state/onboarding-report.json](../state/onboarding-report.json), [AGENTS.md](../../AGENTS.md), and the relevant `.agent-context/` files for runtime evidence and any explicit constraints already applied to this project.
|
|
44
44
|
4. Scaffold the initial project structure only after runtime and architecture decisions are explicit:
|
|
45
45
|
- Create only the directories and files justified by the approved structure.
|
|
46
46
|
- Set up configuration, validation, error handling, observability, health checks, and persistence only when they fit the approved runtime and project scope.
|
|
@@ -53,7 +53,7 @@ If the user specifies a framework, runtime, or architecture constraint, the agen
|
|
|
53
53
|
|
|
54
54
|
## Runtime and Architecture Reference
|
|
55
55
|
|
|
56
|
-
See [.agent-context/state/onboarding-report.json](../state/onboarding-report.json), [.
|
|
56
|
+
See [.agent-context/state/onboarding-report.json](../state/onboarding-report.json), [AGENTS.md](../../AGENTS.md), and the relevant `.agent-context/` files for the latest shipped runtime evidence, explicit constraints, and agent-decision status.
|
|
57
57
|
|
|
58
58
|
## UI/UX Bootstrap
|
|
59
59
|
|
|
@@ -78,8 +78,8 @@ Use `README.md` for human orientation, then use `docs/doc-index.md` to choose th
|
|
|
78
78
|
|
|
79
79
|
## Single Source of Truth and Lazy Rule Loading
|
|
80
80
|
|
|
81
|
-
- Canonical rule source is .
|
|
82
|
-
-
|
|
81
|
+
- Canonical rule source is AGENTS.md.
|
|
82
|
+
- Native adapter entry files stay thin and must import the canonical source.
|
|
83
83
|
- Load global domain rules lazily based on touched scope.
|
|
84
84
|
- Do not create or load stack-specific governance adapters as the baseline.
|
|
85
85
|
- Runtime or framework evidence can clarify implementation details, but it must not replace the global architecture, security, data, API, error, event, and testing boundaries.
|
|
@@ -6,10 +6,10 @@ Use this file as repo-local agent context. It records the current governance arc
|
|
|
6
6
|
|
|
7
7
|
| Surface | Criticality | Change Policy | Required Checks |
|
|
8
8
|
| --- | --- | --- | --- |
|
|
9
|
-
|
|
|
9
|
+
| `AGENTS.md`, `CLAUDE.md`, `GEMINI.md` | critical | Keep `AGENTS.md` canonical and native bridges minimal | `npm run sync:adapters`, `npm run check:adapters`, `npm run validate` |
|
|
10
10
|
| `.agent-context/rules/**`, `.agent-context/prompts/**`, `.agent-context/review-checklists/**` | critical | Keep rules imperative, compact, scope-resolved, and non-duplicative | adapter sync, validation, targeted smoke tests |
|
|
11
11
|
| `.agent-context/state/**` | high | Track only seed/config and current operational state; keep generated reports local-only | `npm pack --dry-run`, state README review |
|
|
12
|
-
| `
|
|
12
|
+
| `scripts/sync-thin-adapters.mjs` | critical | Preserve minimal import bridge compatibility for Claude and Gemini | adapter tests, smoke tests, validation |
|
|
13
13
|
| `lib/cli/commands/init.mjs`, `lib/cli/commands/upgrade.mjs` | high | Preserve fresh-project and existing-project behavior without silent stack/style decisions | CLI smoke tests, onboarding report checks |
|
|
14
14
|
| `lib/cli/project-scaffolder/**` | high | Preserve docs-first and design-contract behavior without hardcoded house style | design/detection smoke tests, validation |
|
|
15
15
|
| `scripts/validate*.mjs`, `scripts/validate/**` | high | Keep validation mechanical and aligned with current shipped surfaces | `node ./scripts/validate.mjs`, targeted script checks |
|
|
@@ -35,6 +35,6 @@ Use this file as repo-local agent context. It records the current governance arc
|
|
|
35
35
|
|
|
36
36
|
1. Load the smallest relevant rule set.
|
|
37
37
|
2. Use README only for public and developer overview, setup, usage, and user-facing context when governance files conflict.
|
|
38
|
-
3. Preserve
|
|
38
|
+
3. Preserve native import bridge sync before release.
|
|
39
39
|
4. Treat stale generated state, dual lockfiles, and obsolete V2/V3 transition files as cleanup findings.
|
|
40
40
|
5. Before claiming done, run the relevant validation gate and report any skipped checks.
|
|
@@ -21,7 +21,7 @@ Use this map to keep Agentic-Senior-Core's CLI, governance, and validation layer
|
|
|
21
21
|
| `lib/cli/commands/upgrade.mjs` | detector, compiler, scaffolder seeds, backup/rollback, shared setup helpers | duplicated setup-policy helpers, silent stack migration |
|
|
22
22
|
| `lib/cli/project-scaffolder.mjs` | stable public scaffolder exports | private validation helpers that do not need public API exposure |
|
|
23
23
|
| `lib/cli/project-scaffolder/design-contract.mjs` | validation submodule, constants, utilities | hardcoded final palettes, fixed layouts, external design memory |
|
|
24
|
-
| `scripts/sync-thin-adapters.mjs` |
|
|
24
|
+
| `scripts/sync-thin-adapters.mjs` | `AGENTS.md` and native import bridge targets | hand-maintained duplicate policy blocks |
|
|
25
25
|
| `scripts/validate*.mjs` | config, coverage checks, file evidence | stale V2 skill-marketplace artifacts |
|
|
26
26
|
| `.agent-context/prompts/bootstrap-design.md` | current repo evidence and frontend rule | prior-chat visuals, unrelated screenshots, template style presets |
|
|
27
27
|
|
|
@@ -30,7 +30,7 @@ Use this map to keep Agentic-Senior-Core's CLI, governance, and validation layer
|
|
|
30
30
|
- Reject `commands -> project-scaffolder -> commands`.
|
|
31
31
|
- Reject `compiler -> commands`.
|
|
32
32
|
- Reject `scripts/validate -> tests`.
|
|
33
|
-
- Reject generated adapters becoming inputs for
|
|
33
|
+
- Reject generated adapters becoming inputs for `AGENTS.md` or `.agent-context/`.
|
|
34
34
|
- Move repeated command setup policy into shared helper modules instead of copying local functions.
|
|
35
35
|
|
|
36
36
|
## Package Hygiene
|
package/AGENTS.md
CHANGED
|
@@ -1,44 +1,179 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Agentic-Senior-Core: Unified AI Agent Instructions
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
Adapter Source: .instructions.md
|
|
5
|
-
Canonical Snapshot SHA256: 728c7ecaa49ea69a3e9b03c1c88d25f310a1827f2cebb72de102b5ae5005ff0e
|
|
3
|
+
Canonical project instructions. Resolve the smallest relevant layer set for the current request.
|
|
6
4
|
|
|
5
|
+
## Role
|
|
6
|
+
Act as a Principal Engineer. Ship maintainable, validated, production-ready work. Use clear plain language in formal artifacts. Do not use emoji.
|
|
7
|
+
|
|
8
|
+
## Authority
|
|
7
9
|
This repository is governed by a strict instruction contract.
|
|
8
|
-
|
|
9
|
-
Use .agent-context
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- For UI, UX, layout, screen, tailwind, frontend, or redesign requests, load [bootstrap-design.md](.agent-context/prompts/bootstrap-design.md) and [frontend-architecture.md](.agent-context/rules/frontend-architecture.md) before code edits.
|
|
18
|
-
- For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
|
|
19
|
-
- For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
|
|
20
|
-
- For documentation-first requests, create or refine required project docs in English by default and do not write application, firmware, or UI code until the user asks or approves.
|
|
21
|
-
- Create or refine root README.md as the public and developer entrypoint before implementation.
|
|
22
|
-
- For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
23
|
-
- For ecosystem, framework, dependency, or Docker claims, perform live web research.
|
|
24
|
-
- Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
|
|
25
|
-
|
|
26
|
-
## Mandatory Bootstrap Chain
|
|
27
|
-
|
|
28
|
-
1. Load [.instructions.md](.instructions.md).
|
|
29
|
-
2. Load `.agent-instructions.md` when present.
|
|
30
|
-
3. Load only relevant files from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
31
|
-
4. Apply matching prompts from .agent-context/prompts/ ([link](.agent-context/prompts)).
|
|
32
|
-
5. Enforce .agent-context/review-checklists/ ([link](.agent-context/review-checklists/pr-checklist.md)).
|
|
33
|
-
6. Use .agent-context/state/ ([link](.agent-context/state)) and .agent-context/policies/ ([link](.agent-context/policies)) only when relevant.
|
|
34
|
-
7. Use project docs and live evidence for runtime, dependency, and architecture claims.
|
|
10
|
+
|
|
11
|
+
Use `AGENTS.md` as the canonical baseline. Use `.agent-context/` as technical authority for rules, prompts, checklists, state, and policies. Use `README.md` only for public and developer overview, setup, usage, and user-facing context when stricter governance files conflict.
|
|
12
|
+
|
|
13
|
+
Write instructions as imperative gates:
|
|
14
|
+
- Use direct commands.
|
|
15
|
+
- Prefer short mechanical checks over descriptive prose.
|
|
16
|
+
- Keep root adapters thin.
|
|
17
|
+
- Move detailed policy into `.agent-context/`.
|
|
18
|
+
- Add validation when a rule can drift.
|
|
35
19
|
|
|
36
20
|
## Bootstrap Receipt
|
|
21
|
+
For non-trivial coding, review, planning, or governance work, emit a concise Bootstrap Receipt before implementation output or file edits:
|
|
22
|
+
- `loaded_files`: files actually read
|
|
23
|
+
- `selected_rules`: files selected for this scope and why
|
|
24
|
+
- `skipped_rules`: out-of-scope categories left unloaded
|
|
25
|
+
- `unreachable_files`: required files that could not be read
|
|
26
|
+
- `validation_plan`: expected checks before completion
|
|
27
|
+
|
|
28
|
+
Keep it short. Do not load every rule just to fill it out.
|
|
29
|
+
|
|
30
|
+
## Command Economy
|
|
31
|
+
Avoid repeated command output. Do not rerun broad inspections unless edits changed the result. Prefer targeted reads, targeted searches, concise diffs, and final validation gates.
|
|
32
|
+
|
|
33
|
+
## Layer Index
|
|
34
|
+
### Layer 1: Rules (15 Files) [SCOPE-RESOLVED]
|
|
35
|
+
Location: `.agent-context/rules/`.
|
|
36
|
+
|
|
37
|
+
Load only relevant rule files. Do not read the entire rule directory by default.
|
|
38
|
+
|
|
39
|
+
Available rules: `naming-conv.md`, `architecture.md`, `security.md`, `performance.md`, `error-handling.md`, `testing.md`, `git-workflow.md`, `efficiency-vs-hype.md`, `api-docs.md`, `microservices.md`, `event-driven.md`, `database-design.md`, `realtime.md`, `frontend-architecture.md`, `docker-runtime.md`.
|
|
40
|
+
|
|
41
|
+
For Docker or Compose work, load `docker-runtime.md` and verify the latest official Docker docs before authoring container assets. Also perform live web research for Docker and framework/package setup claims. For framework or package setup work, use the latest stable compatible dependency set and official setup flow unless a documented compatibility constraint blocks it. Prefer official framework scaffolders when they create the supported project shape; manual file assembly needs a repo, prototype, learning, or architecture reason. New dependencies are allowed when they improve efficiency, delivery time, correctness, accessibility, UX, or maintainability. Do not treat dependency avoidance or vague performance fear as a default reason to skip a modern maintained library.
|
|
42
|
+
|
|
43
|
+
Backend/API routing:
|
|
44
|
+
- Data/schema/persistence: `architecture.md`, `database-design.md`, `performance.md`, `testing.md`.
|
|
45
|
+
- Endpoint/API/error contracts: `architecture.md`, `api-docs.md`, `error-handling.md`, `security.md`, `testing.md`.
|
|
46
|
+
- Auth/secrets/uploads/permissions: `security.md`, `error-handling.md`, `testing.md`.
|
|
47
|
+
- Queue/worker/cron/events/retry: `event-driven.md`, `database-design.md`, `error-handling.md`, `performance.md`, `testing.md`.
|
|
48
|
+
- Multi-service/distributed boundaries: `microservices.md`, `event-driven.md`, `database-design.md`, `api-docs.md`, `architecture.md`.
|
|
49
|
+
|
|
50
|
+
Use the union once when scopes overlap. Do not create framework-specific governance adapters.
|
|
51
|
+
|
|
52
|
+
### Layer 2: Runtime Decision Signals
|
|
53
|
+
|
|
54
|
+
Runtime Decision Signals come from project context, repo evidence, and live research. Runtime signals are evidence gates, not style cues or popularity rankings.
|
|
55
|
+
|
|
56
|
+
For fresh projects, recommend runtime/framework from the brief, constraints, and live official docs before coding. For existing projects, treat detected markers as evidence only. Ignore pattern frequency, external rankings, and remembered defaults. Do not default web projects to Next.js, Tailwind-only styling, shadcn/ui, Vite, or any familiar web stack by habit, and do not avoid them because of this guard when they are the strongest project fit.
|
|
57
|
+
|
|
58
|
+
### Layer 3: Structural Planning Signals
|
|
59
|
+
|
|
60
|
+
Structural Planning Signals use dynamic structural planning from repo context, docs, runtime constraints, and live research. Structural planning signals are not a hard whitelist.
|
|
61
|
+
|
|
62
|
+
For new projects or modules, extract constraints, boundaries, and required docs first. Do not silently choose frameworks or architecture from offline heuristics. If runtime or architecture is unresolved, produce a short recommendation from evidence and live official documentation before coding. Compare at least one plausible alternative when the strongest-looking option is a familiar web default and the user did not explicitly choose it.
|
|
63
|
+
|
|
64
|
+
### Layer 4: Execution Contracts
|
|
65
|
+
|
|
66
|
+
Execution Contracts are dynamic execution contracts from prompts, review checklists, and policy thresholds. Resolve the active contract, then enforce mandatory checks before declaring completion.
|
|
67
|
+
|
|
68
|
+
### Layer 5: Prompts
|
|
69
|
+
|
|
70
|
+
Location: `.agent-context/prompts/`.
|
|
71
|
+
|
|
72
|
+
Load the matching prompt only:
|
|
73
|
+
- `init-project.md` -> create, build, new project, scaffold
|
|
74
|
+
- `refactor.md` -> refactor, improve, clean up, fix
|
|
75
|
+
- `review-code.md` -> review, audit, check, analyze
|
|
76
|
+
- `bootstrap-design.md` -> ui, ux, layout, screen, tailwind, frontend, redesign
|
|
77
|
+
|
|
78
|
+
For UI-only work, load `bootstrap-design.md` and `frontend-architecture.md` first; do not eagerly load unrelated backend-only rules unless the request crosses that boundary. The valid style context is current repo evidence, current brief, and current project docs. External references, prior-chat memory, unrelated-project visuals, and remembered screenshots are tainted unless the user makes them current-task constraints. Treat WCAG 2.2 AA as the hard compliance floor and APCA as advisory perceptual tuning only. Do not require screenshot capture as a baseline dependency.
|
|
79
|
+
|
|
80
|
+
### Layer 6: Governance Modes
|
|
81
|
+
|
|
82
|
+
Governance Modes use dynamic governance context from state files, policies, and repo norms. Apply matching defaults only when relevant.
|
|
83
|
+
|
|
84
|
+
### Layer 7: State and Benchmarks
|
|
85
|
+
|
|
86
|
+
Use `.agent-context/state/` only when the task needs risk zones, dependency boundaries, benchmarks, or continuity metadata. For initialized projects, `.agent-context/state/onboarding-report.json` records selected profile, runtime evidence, architecture decision status, token optimization, and memory continuity.
|
|
87
|
+
|
|
88
|
+
### Layer 8: Policies and Thresholds
|
|
89
|
+
|
|
90
|
+
Use `.agent-context/policies/` for quality gates, release thresholds, and audit posture.
|
|
91
|
+
|
|
92
|
+
### Layer 9: Project Context
|
|
93
|
+
|
|
94
|
+
Use root `README.md` as the public and developer entrypoint for every fresh or existing project. Use `docs/doc-index.md` as the compact routing map when `docs/` exists. Use `docs/` when present: `project-brief.md`, `architecture-decision-record.md`, `database-schema.md`, `api-contract.md`, `flow-overview.md`, `DESIGN.md`, `design-intent.json`.
|
|
95
|
+
|
|
96
|
+
## Mandatory Triggers
|
|
97
|
+
|
|
98
|
+
### 1. Documentation-First Mode
|
|
99
|
+
|
|
100
|
+
Trigger: docs, documentation, dokumen, `docs/*`, architecture docs, flow docs, API docs, or "lengkapkan docs".
|
|
101
|
+
|
|
102
|
+
1. Load `architecture.md`, `api-docs.md`, and only additional rules required by scope.
|
|
103
|
+
2. Create or refine required docs first: root `README.md` for every fresh or existing project; `docs/doc-index.md` whenever `docs/` exists; `docs/project-brief.md`; `docs/architecture-decision-record.md`; `docs/flow-overview.md`; `docs/api-contract.md` for APIs, firmware endpoints, CLI commands, or web application flows; `docs/database-schema.md` for persistent data; and `docs/DESIGN.md` plus `docs/design-intent.json` for UI scope.
|
|
104
|
+
3. Use `docs/doc-index.md` as the compact read-routing map. Add PRD, SRS, technical-design, or separate ERD only when project evidence justifies them.
|
|
105
|
+
4. Write formal project docs in English by default unless the user asks otherwise.
|
|
106
|
+
5. Stop after documentation when the user only asked for docs. Do not write application, firmware, or UI code until the user asks or approves implementation; do not write application, firmware, or UI code before approval.
|
|
107
|
+
|
|
108
|
+
### 2. New Project Planning
|
|
109
|
+
|
|
110
|
+
Trigger: create, build, new project, scaffold.
|
|
111
|
+
|
|
112
|
+
1. Resolve relevant rules.
|
|
113
|
+
2. Read `init-project.md`.
|
|
114
|
+
3. Infer constraints, required docs, and boundaries from requirements, repo evidence, docs, and live research.
|
|
115
|
+
4. Recommend runtime/architecture when unresolved.
|
|
116
|
+
5. WAIT for user approval before generating code.
|
|
117
|
+
|
|
118
|
+
### 3. Refactor Mode
|
|
119
|
+
|
|
120
|
+
Trigger: refactor, improve, fix, clean up.
|
|
121
|
+
|
|
122
|
+
1. Resolve relevant rules.
|
|
123
|
+
2. Read `refactor.md`.
|
|
124
|
+
3. Apply active prompt/checklist contracts.
|
|
125
|
+
4. Propose a plan before edits.
|
|
126
|
+
5. WAIT for approval.
|
|
127
|
+
|
|
128
|
+
### 4. Code Review Mode
|
|
129
|
+
|
|
130
|
+
Trigger: review, audit, check, analyze.
|
|
131
|
+
|
|
132
|
+
Load `pr-checklist.md` and `architecture-review.md`, then report defects, risks, regressions, and missing tests first.
|
|
133
|
+
|
|
134
|
+
### 5. UI Design Mode
|
|
135
|
+
|
|
136
|
+
Trigger: ui, ux, layout, screen, tailwind, frontend, redesign.
|
|
137
|
+
|
|
138
|
+
1. Read `bootstrap-design.md` and `frontend-architecture.md`.
|
|
139
|
+
2. Read UI-relevant repo evidence from state, current UI code, and `docs/*`.
|
|
140
|
+
3. Include a one-line Motion/Palette Decision before UI code; product categories are heuristics, not style presets.
|
|
141
|
+
4. Before UI code, record one real-world anchor, one signature motion behavior, and one typographic role contrast.
|
|
142
|
+
5. Ensure `docs/design-intent.json` includes `conceptualAnchor.anchorReference`, top-level `derivedTokenLogic`, `libraryResearchStatus`, `libraryDecisions[]`, and motion/palette decisions.
|
|
143
|
+
6. Generate or refine `docs/DESIGN.md` plus `docs/design-intent.json` before UI implementation.
|
|
144
|
+
7. Keep context isolated; do not eagerly load unrelated backend-only rules.
|
|
145
|
+
8. In UI Design Mode, choose the ambition level proactively. For broad screens or redesigns, treat expressive motion, spatial hierarchy, distinctive composition, and product-specific interaction as the baseline even when the user did not say "rich"; quiet or static surfaces require a concrete product, performance, accessibility, device, or dependency reason.
|
|
146
|
+
9. Do not let conceptual anchors collapse into room, darkroom, counting room, control room, war room, studio, lab, cockpit, or command center by habit. Prefer artifacts, workflows, custody chains, instruments, data behaviors, material systems, editorial systems, service rituals, or interaction mechanisms unless a physical place model is core to the product.
|
|
147
|
+
10. External websites and benchmark examples are candidate evidence for constraints, mechanics, and quality bars only. Do not copy their layout rhythm, palette, component skin, visual metaphor, or brand posture without explicit user approval and product-fit rationale.
|
|
148
|
+
|
|
149
|
+
## Reasoning Chain
|
|
150
|
+
|
|
151
|
+
When rejecting an approach or enforcing a rule, use:
|
|
152
|
+
|
|
153
|
+
```text
|
|
154
|
+
REASONING CHAIN
|
|
155
|
+
Problem: [risk]
|
|
156
|
+
Required Action: [boundary]
|
|
157
|
+
Why Required: [project protection]
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Definition of Done
|
|
161
|
+
|
|
162
|
+
Never claim done without:
|
|
163
|
+
1. Relevant rules applied.
|
|
164
|
+
2. PR and architecture checklists considered.
|
|
165
|
+
3. Universal SOP gates satisfied: public and developer root `README.md`; `docs/architecture-decision-record.md`; plus `docs/DESIGN.md` and `docs/design-intent.json` for UI scope.
|
|
166
|
+
4. If `.agent-context/state/active-memory.json` exists and material project progress happened, refresh it while preserving privacy rules and user-owned entries.
|
|
167
|
+
5. MCP validation passed through `npm run validate`.
|
|
37
168
|
|
|
38
|
-
|
|
169
|
+
## Knowledge Inventory Checklist
|
|
39
170
|
|
|
40
|
-
|
|
171
|
+
Verify reachability when relevant: Layer 1 Rules, Layer 2 Runtime Decision Signals, Layer 3 Structural Planning Signals, Layer 4 Execution Contracts, Layer 5 Prompts, Layer 6 Governance Modes, Layer 7 State, Layer 8 Policies, Layer 9 Project Context.
|
|
41
172
|
|
|
42
|
-
|
|
173
|
+
## Operating Gates
|
|
43
174
|
|
|
44
|
-
|
|
175
|
+
- Before code: resolve active rules and contract.
|
|
176
|
+
- Before PR: run review checklists.
|
|
177
|
+
- Before deploy: check policy thresholds.
|
|
178
|
+
- Before major refactor: read `architecture-map.md`.
|
|
179
|
+
- Before UI implementation: confirm valid style context, design contract, and required docs.
|
package/CLAUDE.md
CHANGED
|
@@ -1,44 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Adapter Mode: thin
|
|
4
|
-
Adapter Source: .instructions.md
|
|
5
|
-
Canonical Snapshot SHA256: 728c7ecaa49ea69a3e9b03c1c88d25f310a1827f2cebb72de102b5ae5005ff0e
|
|
6
|
-
|
|
7
|
-
This repository is governed by a strict instruction contract.
|
|
8
|
-
Use [.instructions.md](.instructions.md) as the canonical policy source.
|
|
9
|
-
Use .agent-context/ for technical rules, prompts, checklists, policies, and state.
|
|
10
|
-
Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.
|
|
11
|
-
|
|
12
|
-
## Critical Bootstrap Floor
|
|
13
|
-
|
|
14
|
-
- If your host stops at this file, continue the chain manually before coding.
|
|
15
|
-
- Read `.agent-instructions.md` next when it exists.
|
|
16
|
-
- Memory continuity does not replace bootstrap loading.
|
|
17
|
-
- For UI, UX, layout, screen, tailwind, frontend, or redesign requests, load [bootstrap-design.md](.agent-context/prompts/bootstrap-design.md) and [frontend-architecture.md](.agent-context/rules/frontend-architecture.md) before code edits.
|
|
18
|
-
- For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
|
|
19
|
-
- For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
|
|
20
|
-
- For documentation-first requests, create or refine required project docs in English by default and do not write application, firmware, or UI code until the user asks or approves.
|
|
21
|
-
- Create or refine root README.md as the public and developer entrypoint before implementation.
|
|
22
|
-
- For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
23
|
-
- For ecosystem, framework, dependency, or Docker claims, perform live web research.
|
|
24
|
-
- Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
|
|
25
|
-
|
|
26
|
-
## Mandatory Bootstrap Chain
|
|
27
|
-
|
|
28
|
-
1. Load [.instructions.md](.instructions.md).
|
|
29
|
-
2. Load `.agent-instructions.md` when present.
|
|
30
|
-
3. Load only relevant files from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
31
|
-
4. Apply matching prompts from .agent-context/prompts/ ([link](.agent-context/prompts)).
|
|
32
|
-
5. Enforce .agent-context/review-checklists/ ([link](.agent-context/review-checklists/pr-checklist.md)).
|
|
33
|
-
6. Use .agent-context/state/ ([link](.agent-context/state)) and .agent-context/policies/ ([link](.agent-context/policies)) only when relevant.
|
|
34
|
-
7. Use project docs and live evidence for runtime, dependency, and architecture claims.
|
|
35
|
-
|
|
36
|
-
## Bootstrap Receipt
|
|
37
|
-
|
|
38
|
-
For non-trivial coding, review, planning, or governance work, produce a short Bootstrap Receipt before implementation output: `loaded_files`, `selected_rules`, `skipped_rules`, `unreachable_files`, and `validation_plan`.
|
|
39
|
-
|
|
40
|
-
## Completion Gate
|
|
41
|
-
|
|
42
|
-
Run [pr-checklist.md](.agent-context/review-checklists/pr-checklist.md) before declaring work complete.
|
|
43
|
-
|
|
44
|
-
If this adapter drifts from canonical behavior, refresh from [.instructions.md](.instructions.md) and update the hash metadata.
|
|
1
|
+
@AGENTS.md
|
package/CONTRIBUTING.md
CHANGED
|
@@ -13,7 +13,6 @@ Thanks for wanting to make AI agents write better code. Here's how to contribute
|
|
|
13
13
|
| Structural planning guidance update | `.agent-context/prompts/`, `lib/cli/compiler.mjs` | Scope planning, docs bootstrap, and project-context guidance |
|
|
14
14
|
| New checklist | `.agent-context/review-checklists/` | Self-audit guide |
|
|
15
15
|
| State intelligence update | `.agent-context/state/` | Architecture boundaries and dependency map |
|
|
16
|
-
| Override policy update | `.agent-override.md` | Scoped rule exceptions |
|
|
17
16
|
| MCP workflow update | `mcp.json` | Self-healing automation flow |
|
|
18
17
|
| Bug fix | Any file | Typos, broken links, incorrect rules |
|
|
19
18
|
| Improvement | Any file | Sharper wording, stricter boundaries |
|
|
@@ -63,7 +62,7 @@ If all three are "yes", it belongs here.
|
|
|
63
62
|
- Core principle (1-2 sentences)
|
|
64
63
|
- BANNED / REQUIRED sections with enforceable boundaries
|
|
65
64
|
- Decision tree or quick ruleset when it reduces ambiguity
|
|
66
|
-
3. Update
|
|
65
|
+
3. Update `AGENTS.md` or `.agent-context/` as the source, then verify thin adapters with `npm run check:adapters`
|
|
67
66
|
4. Update `review-checklists/pr-checklist.md` when the rule is part of review scope
|
|
68
67
|
5. Validate and PR
|
|
69
68
|
|
|
@@ -88,7 +87,7 @@ If all three are "yes", it belongs here.
|
|
|
88
87
|
- Generic content that reads like it was auto-generated without thought
|
|
89
88
|
- Rules without concrete enforcement boundaries
|
|
90
89
|
- Stack profiles for languages the author doesn't actually use in production
|
|
91
|
-
- PRs that don't update the relevant source files,
|
|
90
|
+
- PRs that don't update the relevant source files, docs, validators, and checklists
|
|
92
91
|
|
|
93
92
|
---
|
|
94
93
|
|
package/GEMINI.md
CHANGED
|
@@ -1,44 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Adapter Mode: thin
|
|
4
|
-
Adapter Source: .instructions.md
|
|
5
|
-
Canonical Snapshot SHA256: 728c7ecaa49ea69a3e9b03c1c88d25f310a1827f2cebb72de102b5ae5005ff0e
|
|
6
|
-
|
|
7
|
-
This repository is governed by a strict instruction contract.
|
|
8
|
-
Use [.instructions.md](.instructions.md) as the canonical policy source.
|
|
9
|
-
Use .agent-context/ for technical rules, prompts, checklists, policies, and state.
|
|
10
|
-
Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.
|
|
11
|
-
|
|
12
|
-
## Critical Bootstrap Floor
|
|
13
|
-
|
|
14
|
-
- If your host stops at this file, continue the chain manually before coding.
|
|
15
|
-
- Read `.agent-instructions.md` next when it exists.
|
|
16
|
-
- Memory continuity does not replace bootstrap loading.
|
|
17
|
-
- For UI, UX, layout, screen, tailwind, frontend, or redesign requests, load [bootstrap-design.md](.agent-context/prompts/bootstrap-design.md) and [frontend-architecture.md](.agent-context/rules/frontend-architecture.md) before code edits.
|
|
18
|
-
- For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
|
|
19
|
-
- For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
|
|
20
|
-
- For documentation-first requests, create or refine required project docs in English by default and do not write application, firmware, or UI code until the user asks or approves.
|
|
21
|
-
- Create or refine root README.md as the public and developer entrypoint before implementation.
|
|
22
|
-
- For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
23
|
-
- For ecosystem, framework, dependency, or Docker claims, perform live web research.
|
|
24
|
-
- Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
|
|
25
|
-
|
|
26
|
-
## Mandatory Bootstrap Chain
|
|
27
|
-
|
|
28
|
-
1. Load [.instructions.md](.instructions.md).
|
|
29
|
-
2. Load `.agent-instructions.md` when present.
|
|
30
|
-
3. Load only relevant files from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
31
|
-
4. Apply matching prompts from .agent-context/prompts/ ([link](.agent-context/prompts)).
|
|
32
|
-
5. Enforce .agent-context/review-checklists/ ([link](.agent-context/review-checklists/pr-checklist.md)).
|
|
33
|
-
6. Use .agent-context/state/ ([link](.agent-context/state)) and .agent-context/policies/ ([link](.agent-context/policies)) only when relevant.
|
|
34
|
-
7. Use project docs and live evidence for runtime, dependency, and architecture claims.
|
|
35
|
-
|
|
36
|
-
## Bootstrap Receipt
|
|
37
|
-
|
|
38
|
-
For non-trivial coding, review, planning, or governance work, produce a short Bootstrap Receipt before implementation output: `loaded_files`, `selected_rules`, `skipped_rules`, `unreachable_files`, and `validation_plan`.
|
|
39
|
-
|
|
40
|
-
## Completion Gate
|
|
41
|
-
|
|
42
|
-
Run [pr-checklist.md](.agent-context/review-checklists/pr-checklist.md) before declaring work complete.
|
|
43
|
-
|
|
44
|
-
If this adapter drifts from canonical behavior, refresh from [.instructions.md](.instructions.md) and update the hash metadata.
|
|
1
|
+
@AGENTS.md
|
package/README.md
CHANGED
|
@@ -10,12 +10,13 @@
|
|
|
10
10
|
**Production-grade Rules Engine (Governance Engine) for AI coding agents.**
|
|
11
11
|
Works with Cursor, Windsurf, GitHub Copilot, Claude Code, Gemini, and other LLM-powered IDE workflows.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Current package version: 3.0.48.
|
|
14
14
|
|
|
15
|
-
Highlights
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
15
|
+
Highlights:
|
|
16
|
+
- Uses `AGENTS.md` as the canonical instruction entrypoint.
|
|
17
|
+
- Keeps Claude Code and Gemini bridges as native `@AGENTS.md` imports.
|
|
18
|
+
- Loads detailed rules lazily from `.agent-context/` by task scope.
|
|
19
|
+
- Keeps MCP workspace files opt-in through `--mcp-template`.
|
|
19
20
|
|
|
20
21
|
</div>
|
|
21
22
|
|
|
@@ -29,11 +30,12 @@ Highlights in 3.0.40:
|
|
|
29
30
|
npx @ryuenn3123/agentic-senior-core init
|
|
30
31
|
```
|
|
31
32
|
|
|
32
|
-
One command to initialize
|
|
33
|
+
One command to initialize `AGENTS.md`, native import bridges, checklists, policies, state files, and the lazy `.agent-context/` rule library for your project.
|
|
33
34
|
|
|
34
|
-
> **See [docs/deep-dive.md](docs/deep-dive.md) and [docs/roadmap.md](docs/roadmap.md) for
|
|
35
|
+
> **See [docs/doc-index.md](docs/doc-index.md), [docs/deep-dive.md](docs/deep-dive.md), and [docs/roadmap.md](docs/roadmap.md) for deeper CLI, architecture, integration, and roadmap context.**
|
|
35
36
|
|
|
36
|
-
-
|
|
37
|
+
- Default init copies the compact instruction surface and writes onboarding, selected policy, token optimization, and memory continuity state.
|
|
38
|
+
- MCP workspace files are disabled by default. Add `--mcp-template` when you want starter IDE MCP configuration files.
|
|
37
39
|
- When project docs are scaffolded, `docs/doc-index.md` is used as the compact map for deeper docs so agents can read the right files without scanning every Markdown file.
|
|
38
40
|
- Local backup snapshots are written under `.agentic-backup/`; init and upgrade ensure that folder is ignored by the target repository.
|
|
39
41
|
- Package scope is `@ryuenn3123`; the GitHub repository owner is `fatidaprilian`.
|
|
@@ -76,8 +78,8 @@ If you see `Property $schema is not allowed`, keep `.vscode/mcp.json` without `$
|
|
|
76
78
|
|
|
77
79
|
| Command | Purpose |
|
|
78
80
|
|---------|---------|
|
|
79
|
-
| `agentic-senior-core init` | Initialize the project guidance pack
|
|
80
|
-
| `agentic-senior-core upgrade --dry-run` | Preview
|
|
81
|
+
| `agentic-senior-core init` | Initialize the compact project guidance pack and native agent entrypoints |
|
|
82
|
+
| `agentic-senior-core upgrade --dry-run` | Preview managed-surface upgrades |
|
|
81
83
|
| `agentic-senior-core optimize --show` | Show token optimization state |
|
|
82
84
|
| `npm run audit:v3-purge` | Run deep purge readiness audit (no deletion) |
|
|
83
85
|
| `npm run clean:local` | Remove ignored local reports, backups, benchmarks, and active-memory state |
|
|
@@ -94,26 +96,24 @@ npx @ryuenn3123/agentic-senior-core upgrade --yes
|
|
|
94
96
|
|
|
95
97
|
Use `--dry-run` first to preview changes safely, then apply with `--yes`.
|
|
96
98
|
|
|
97
|
-
Upgrade now performs managed-surface synchronization by default: obsolete
|
|
99
|
+
Upgrade now performs managed-surface synchronization by default: obsolete Agentic-managed instruction files are pruned so the pack stays aligned with the latest release.
|
|
98
100
|
Use `--no-prune` if you want to keep legacy managed files.
|
|
99
101
|
|
|
100
102
|
When upgrade creates `.agentic-backup/`, it also keeps the target root `.gitignore` aligned with that local-only backup folder. The backup is for rollback safety, not a source of truth and not a file to commit.
|
|
101
103
|
|
|
102
104
|
## Instruction Entrypoints
|
|
103
105
|
|
|
104
|
-
The canonical source is
|
|
106
|
+
The canonical installed source is `AGENTS.md`.
|
|
105
107
|
|
|
106
|
-
|
|
108
|
+
Default init and upgrade now keep the project root compact:
|
|
107
109
|
- `AGENTS.md`
|
|
108
110
|
- `CLAUDE.md`
|
|
109
111
|
- `GEMINI.md`
|
|
110
|
-
- `.
|
|
111
|
-
- `.windsurf/rules/agentic-senior-core.md`
|
|
112
|
-
- `.github/copilot-instructions.md`
|
|
113
|
-
- `.github/instructions/agentic-senior-core.instructions.md`
|
|
114
|
-
- `.gemini/instructions.md`
|
|
112
|
+
- `.agent-context/`
|
|
115
113
|
|
|
116
|
-
|
|
114
|
+
`CLAUDE.md` and `GEMINI.md` are native import bridges that load `AGENTS.md`. Detailed rules, prompts, checklists, policies, and state stay under `.agent-context/` and load by task scope.
|
|
115
|
+
|
|
116
|
+
Deprecated legacy files such as `.instructions.md`, `.agent-instructions.md`, `.cursorrules`, `.windsurfrules`, `.agent-override.md`, tool-specific rule directories, and copied Copilot/Gemini instruction folders are no longer generated by default. Upgrade prunes Agentic-managed copies while preserving user-owned files without Agentic markers.
|
|
117
117
|
|
|
118
118
|
---
|
|
119
119
|
|
|
@@ -159,9 +159,11 @@ This repository publishes to npm automatically through GitHub Actions on every p
|
|
|
159
159
|
|
|
160
160
|
Release checklist:
|
|
161
161
|
|
|
162
|
-
1.
|
|
163
|
-
2.
|
|
164
|
-
3.
|
|
162
|
+
1. Run `node scripts/bump-version.mjs <version>`.
|
|
163
|
+
2. Fill the matching release notes in `CHANGELOG.md`.
|
|
164
|
+
3. Run `npm run check:adapters`, `npm run validate`, `npm test`, `npm run gate:release`, and `git diff --check`.
|
|
165
|
+
4. Commit with a Conventional Commit message.
|
|
166
|
+
5. Push to `origin/main`.
|
|
165
167
|
|
|
166
168
|
Important notes:
|
|
167
169
|
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
formatDetectionCandidates,
|
|
35
35
|
detectUiScopeSignals,
|
|
36
36
|
} from '../detector.mjs';
|
|
37
|
-
import {
|
|
37
|
+
import { writeSelectedPolicy, writeOnboardingReport } from '../compiler.mjs';
|
|
38
38
|
import {
|
|
39
39
|
normalizeAdditionalStackSelection,
|
|
40
40
|
normalizeAdditionalBlueprintSelection,
|
|
@@ -153,7 +153,7 @@ export async function runInitCommand(targetDirectoryArgument, initOptions = {})
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
console.log(`\nAgentic-Senior-Core CLI v${CLI_VERSION}`);
|
|
156
|
-
console.log('I will copy the project guidance pack into your target folder and
|
|
156
|
+
console.log('I will copy the project guidance pack into your target folder with AGENTS.md and native import bridges for your AI tools.');
|
|
157
157
|
|
|
158
158
|
if (selectedPreset) {
|
|
159
159
|
console.log(`Using preset: ${initOptions.preset} (${selectedPreset.description}).`);
|
|
@@ -198,19 +198,10 @@ export async function runInitCommand(targetDirectoryArgument, initOptions = {})
|
|
|
198
198
|
? buildDetectionSummary(projectDetection)
|
|
199
199
|
: 'No existing project markers were detected.',
|
|
200
200
|
activeRulesSummary: {
|
|
201
|
-
canonicalSource: '.
|
|
202
|
-
compiledRulebook:
|
|
203
|
-
legacyThinAdapters: [
|
|
204
|
-
generatedBridgeAdapters: [
|
|
205
|
-
'AGENTS.md',
|
|
206
|
-
'CLAUDE.md',
|
|
207
|
-
'GEMINI.md',
|
|
208
|
-
'.cursor/rules/agentic-senior-core.mdc',
|
|
209
|
-
'.windsurf/rules/agentic-senior-core.md',
|
|
210
|
-
'.github/copilot-instructions.md',
|
|
211
|
-
'.github/instructions/agentic-senior-core.instructions.md',
|
|
212
|
-
'.gemini/instructions.md',
|
|
213
|
-
],
|
|
201
|
+
canonicalSource: 'AGENTS.md',
|
|
202
|
+
compiledRulebook: null,
|
|
203
|
+
legacyThinAdapters: [],
|
|
204
|
+
generatedBridgeAdapters: ['CLAUDE.md', 'GEMINI.md'],
|
|
214
205
|
stackLoadingMode: 'lazy',
|
|
215
206
|
domainRuleLoadingMode: 'lazy',
|
|
216
207
|
selectedProfile: selectedPolicyProfileName,
|
|
@@ -249,7 +240,7 @@ export async function runInitCommand(targetDirectoryArgument, initOptions = {})
|
|
|
249
240
|
console.log('- Detected stack: unresolved (insufficient markers).');
|
|
250
241
|
}
|
|
251
242
|
|
|
252
|
-
console.log('- Active rules baseline: canonical .
|
|
243
|
+
console.log('- Active rules baseline: canonical AGENTS.md + .agent-context/ lazy rule library');
|
|
253
244
|
console.log(
|
|
254
245
|
`- Active review thresholds: ${formatBlockingSeverities(selectedPolicyProfile.blockingSeverities)}`
|
|
255
246
|
);
|
|
@@ -493,15 +484,6 @@ export async function runInitCommand(targetDirectoryArgument, initOptions = {})
|
|
|
493
484
|
console.log('\nExisting UI/frontend scope detected. Seeded docs/design-intent.json so the machine-readable design contract exists before UI implementation work continues.');
|
|
494
485
|
}
|
|
495
486
|
|
|
496
|
-
await compileDynamicContext({
|
|
497
|
-
targetDirectoryPath: resolvedTargetDirectoryPath,
|
|
498
|
-
selectedStackFileName: selectedResolvedStackFileName,
|
|
499
|
-
selectedAdditionalStackFileNames,
|
|
500
|
-
selectedBlueprintFileName: selectedResolvedBlueprintFileName,
|
|
501
|
-
selectedAdditionalBlueprintFileNames,
|
|
502
|
-
includeCiGuardrails,
|
|
503
|
-
});
|
|
504
|
-
|
|
505
487
|
await writeSelectedPolicy(resolvedTargetDirectoryPath, selectedPolicyProfileName);
|
|
506
488
|
|
|
507
489
|
const setupDurationMs = Date.now() - setupStartedAt;
|
|
@@ -570,7 +552,7 @@ export async function runInitCommand(targetDirectoryArgument, initOptions = {})
|
|
|
570
552
|
console.log(`- CI/CD quality checks (guardrails): ${includeCiGuardrails ? 'enabled' : 'disabled'}`);
|
|
571
553
|
console.log(`- Review thresholds: ${formatBlockingSeverities(selectedPolicyProfile.blockingSeverities)}`);
|
|
572
554
|
console.log(`- Setup time: ${formatDuration(setupDurationMs)}`);
|
|
573
|
-
console.log('- Generated files: .
|
|
555
|
+
console.log('- Generated files: AGENTS.md, CLAUDE.md, GEMINI.md, .agent-context/, and .agent-context/state/onboarding-report.json');
|
|
574
556
|
if (scaffoldingResult?.bootstrapMode === 'ai-synthesis') {
|
|
575
557
|
console.log(`- Bootstrap prompts: ${(scaffoldingResult.generatedPromptFileNames || []).length} files generated in .agent-context/prompts/`);
|
|
576
558
|
if ((scaffoldingResult.materializedFileNames || []).length > 0) {
|
|
@@ -586,7 +568,7 @@ export async function runInitCommand(targetDirectoryArgument, initOptions = {})
|
|
|
586
568
|
console.log(`- Design seed docs: ${supplementalMaterializedDocFileNames.length} files generated in docs/`);
|
|
587
569
|
}
|
|
588
570
|
console.log(`- Repository workflows copied: no (workflows remain source-repo assets)`);
|
|
589
|
-
console.log(`- MCP configuration: ${shouldIncludeMcpTemplate ? 'auto-configured for your IDEs (VS Code, Cursor, Zed, Gemini)' : 'disabled (--
|
|
571
|
+
console.log(`- MCP configuration: ${shouldIncludeMcpTemplate ? 'auto-configured for your IDEs (VS Code, Cursor, Zed, Gemini)' : 'disabled (use --mcp-template to enable)'}`);
|
|
590
572
|
if (isMemoryContinuityEnabled) {
|
|
591
573
|
console.log('- Memory continuity policy: enabled (index + selective hydration; host support required)');
|
|
592
574
|
} else {
|
|
@@ -634,7 +616,7 @@ export async function runInitCommand(targetDirectoryArgument, initOptions = {})
|
|
|
634
616
|
console.log('- If docs/DESIGN.md is missing, execute .agent-context/prompts/bootstrap-design.md now and refine docs/design-intent.json into a complete design contract before building UI components.');
|
|
635
617
|
console.log('- Keep docs/design-intent.json and docs/DESIGN.md synchronized whenever the UI direction changes.');
|
|
636
618
|
}
|
|
637
|
-
console.log('Your AI tools will now receive
|
|
619
|
+
console.log('Your AI tools will now receive AGENTS.md, native import bridges, and the lazy-loaded .agent-context rule library. Your review threshold is stored in .agent-context/policies/llm-judge-threshold.json.');
|
|
638
620
|
console.log('MCP server registration is manual inside your IDE settings, even when mcp.json exists.');
|
|
639
621
|
} catch (error) {
|
|
640
622
|
console.error('\n[FATAL] An error occurred during initialization. Attempting automatic rollback...');
|