agent-personalizer 0.9.1 → 0.10.0
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/CHANGELOG.md +23 -1
- package/CONTRIBUTING.md +3 -3
- package/README.md +12 -10
- package/RELEASING.md +2 -2
- package/SECURITY.md +1 -1
- package/bin/agent-personalizer.js +21 -32
- package/bin/cli-util.cjs +28 -0
- package/bin/global.cjs +4 -4
- package/bin/install-plan.cjs +4 -3
- package/bin/learn.cjs +10 -3
- package/bin/sessions.cjs +195 -35
- package/bin/uninstall.cjs +3 -3
- package/check/gate.cjs +46 -6
- package/docs/guarantees.md +1 -1
- package/docs/install.md +6 -6
- package/docs/learning.md +7 -7
- package/docs/paste-guide.md +8 -6
- package/docs/tiers.md +1 -1
- package/hooks/README.md +17 -1
- package/hooks/gemini-cli/session-start.sh +15 -0
- package/llms.txt +6 -4
- package/package.json +6 -3
- package/render/onboarding.cjs +30 -47
- package/render/render.cjs +24 -15
- package/rules/00-read-the-profile-first.md +3 -0
- package/rules/20-one-owner-per-rule.md +3 -0
- package/rules/30-folder-index-is-part-of-the-change.md +3 -0
- package/rules/40-sign-every-edit.md +4 -1
- package/skills/agent-personalizer/SKILL.md +104 -0
- package/templates/GEMINI.md +30 -0
- package/examples/freelance-illustrator/.agent-personalizer.json +0 -57
- package/examples/freelance-illustrator/AGENTS.md +0 -244
- package/examples/freelance-illustrator/AGENT_ONBOARDING.md +0 -67
- package/examples/freelance-illustrator/CLAUDE.md +0 -248
- package/examples/freelance-illustrator/LEARNED.md +0 -14
- package/examples/freelance-illustrator/USER.md +0 -54
- package/examples/freelance-illustrator/notes/README.md +0 -39
- package/examples/freelance-illustrator/notes/decisions.md +0 -18
- package/examples/freelance-illustrator/notes/inbox/2026-09-03-shot-list-for-six-prints.md +0 -14
- package/examples/freelance-illustrator/notes/inbox/README.md +0 -19
- package/examples/freelance-illustrator/notes/sessions/2026-W36.md +0 -41
- package/examples/freelance-illustrator/rules/00-read-the-profile-first.md +0 -24
- package/examples/freelance-illustrator/rules/10-evidence-before-assertion.md +0 -24
- package/examples/freelance-illustrator/rules/20-one-owner-per-rule.md +0 -24
- package/examples/freelance-illustrator/rules/30-folder-index-is-part-of-the-change.md +0 -26
- package/examples/freelance-illustrator/rules/40-sign-every-edit.md +0 -25
- package/examples/freelance-illustrator/rules/50-output-style.md +0 -21
- package/examples/freelance-illustrator/rules/60-act-or-ask.md +0 -30
- package/examples/freelance-illustrator/rules/65-ask-before-it-repeats.md +0 -18
- package/examples/freelance-illustrator/rules/70-their-words-point-at-the-thing.md +0 -15
- package/examples/freelance-illustrator/rules/80-symptoms-are-not-causes.md +0 -15
- package/examples/freelance-illustrator/rules/90-surface-what-they-cant-see.md +0 -15
- package/examples/freelance-illustrator/rules/README.md +0 -61
- package/examples/lab-technician/.agent-personalizer.json +0 -38
- package/examples/lab-technician/AGENTS.md +0 -243
- package/examples/lab-technician/AGENT_ONBOARDING.md +0 -64
- package/examples/lab-technician/CLAUDE.md +0 -247
- package/examples/lab-technician/LEARNED.md +0 -14
- package/examples/lab-technician/USER.md +0 -53
- package/examples/lab-technician/notes/README.md +0 -26
- package/examples/lab-technician/notes/decisions.md +0 -4
- package/examples/lab-technician/notes/inbox/2026-10-06-observation-table.md +0 -3
- package/examples/lab-technician/notes/inbox/README.md +0 -7
- package/examples/lab-technician/notes/sessions/2026-W41.md +0 -7
- package/examples/lab-technician/rules/00-read-the-profile-first.md +0 -24
- package/examples/lab-technician/rules/10-evidence-before-assertion.md +0 -24
- package/examples/lab-technician/rules/20-one-owner-per-rule.md +0 -24
- package/examples/lab-technician/rules/30-folder-index-is-part-of-the-change.md +0 -26
- package/examples/lab-technician/rules/40-sign-every-edit.md +0 -25
- package/examples/lab-technician/rules/50-output-style.md +0 -21
- package/examples/lab-technician/rules/60-act-or-ask.md +0 -30
- package/examples/lab-technician/rules/65-ask-before-it-repeats.md +0 -18
- package/examples/lab-technician/rules/70-their-words-point-at-the-thing.md +0 -15
- package/examples/lab-technician/rules/80-symptoms-are-not-causes.md +0 -15
- package/examples/lab-technician/rules/90-surface-what-they-cant-see.md +0 -15
- package/examples/lab-technician/rules/README.md +0 -61
- package/examples/product-designer/.agent-personalizer.json +0 -38
- package/examples/product-designer/AGENTS.md +0 -243
- package/examples/product-designer/AGENT_ONBOARDING.md +0 -63
- package/examples/product-designer/CLAUDE.md +0 -247
- package/examples/product-designer/LEARNED.md +0 -14
- package/examples/product-designer/USER.md +0 -53
- package/examples/product-designer/notes/README.md +0 -26
- package/examples/product-designer/notes/decisions.md +0 -4
- package/examples/product-designer/notes/inbox/2026-10-06-cancellation-wording.md +0 -8
- package/examples/product-designer/notes/inbox/README.md +0 -7
- package/examples/product-designer/notes/sessions/2026-W41.md +0 -7
- package/examples/product-designer/rules/00-read-the-profile-first.md +0 -24
- package/examples/product-designer/rules/10-evidence-before-assertion.md +0 -24
- package/examples/product-designer/rules/20-one-owner-per-rule.md +0 -24
- package/examples/product-designer/rules/30-folder-index-is-part-of-the-change.md +0 -26
- package/examples/product-designer/rules/40-sign-every-edit.md +0 -25
- package/examples/product-designer/rules/50-output-style.md +0 -21
- package/examples/product-designer/rules/60-act-or-ask.md +0 -30
- package/examples/product-designer/rules/65-ask-before-it-repeats.md +0 -18
- package/examples/product-designer/rules/70-their-words-point-at-the-thing.md +0 -15
- package/examples/product-designer/rules/80-symptoms-are-not-causes.md +0 -15
- package/examples/product-designer/rules/90-surface-what-they-cant-see.md +0 -15
- package/examples/product-designer/rules/README.md +0 -61
package/llms.txt
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# agent-personalizer
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> AI custom instructions from approved entries: a profile and rules for Claude Code, Codex, Cursor, Gemini CLI, Hermes Agent and ChatGPT, rendered from one source and kept in sync.
|
|
4
4
|
|
|
5
|
-
Install with `npx agent-personalizer`. Node
|
|
5
|
+
Install with `npx agent-personalizer`. Node 24 or 26 (active LTS) is recommended; 22 or later runs. Headless setup: `npx agent-personalizer --dir . --ai claude,agents --level 1 --yes --defaults`.
|
|
6
6
|
|
|
7
7
|
The installer asks which AIs you use and whether it may learn from your recent sessions, with No as the default. It writes USER.md, LEARNED.md, AGENT_ONBOARDING.md and each selected AI's instruction files. With a yes, it reads up to 20 recent sessions from Claude Code, Codex and Gemini CLI, plus Codex memory notes, and saves a local digest. The user's AI asks up to five evidence-backed questions; confirmed entries reach every selected personal target and declined entries are never asked again. Level 2 adds local notes scaffolds for local and fallback notes tools. Level 3 adds editable rules, a renderer, a session-start hook, a drift check and a forbidden-string gate.
|
|
8
8
|
|
|
9
9
|
Re-runs ask nothing, keep saved answers and update untouched installed files and pointer lines. Edited copies stay and are named, old notes folders stay in place, and upgrades refresh untouched tools. USER.md supplies every profile export, including ChatGPT; LEARNED.md owns the shared entries. `npx agent-personalizer learn --dir .` asks for consent before collecting new evidence. `learn --forget` deletes the digest. Uninstall keeps a LEARNED.md with entries, removes the digest and restores untouched files byte for byte; neither touches the AI apps' history. Preview removal with `npx agent-personalizer --uninstall --dir . --dry`.
|
|
10
10
|
|
|
11
|
-
Session data stays local until the user's AI reads it and sends it to its provider again. Only reuse history you may share, filter other people's details with check/forbidden.local.txt and check agreements for work accounts. The tool makes no network calls. It is not affiliated with Anthropic, OpenAI or
|
|
11
|
+
Session data stays local until the user's AI reads it and sends it to its provider again. Only reuse history you may share, filter other people's details with check/forbidden.local.txt and check agreements for work accounts. The tool makes no network calls. It is not affiliated with Anthropic, OpenAI, Google, Anysphere or Nous Research, and their saved formats can change.
|
|
12
12
|
|
|
13
13
|
## Docs
|
|
14
14
|
|
|
@@ -26,8 +26,10 @@ Session data stays local until the user's AI reads it and sends it to its provid
|
|
|
26
26
|
- [model-orchestrator](https://github.com/aunysillyme/model-orchestrator): Model router for AI coding agents: routes routine work to cheaper models with routing rules, 8 subagents, hooks and a CLI runner
|
|
27
27
|
- [repo-build-skill](https://github.com/aunysillyme/repo-build-skill): Skill pack that teaches your AI to build, release and launch a GitHub repo: stack pick, README, AGENTS.md, llms.txt, repo SEO and AEO, trusted publishing.
|
|
28
28
|
- [website-build-skill](https://github.com/aunysillyme/website-build-skill): A skill pack that turns your AI into an expert website builder: current research, design, code, accessibility, speed, SEO and security, alone or as a team.
|
|
29
|
-
- [lean-browser-use](https://github.com/aunysillyme/lean-browser-use): Cut browser use cost
|
|
29
|
+
- [lean-browser-use](https://github.com/aunysillyme/lean-browser-use): Cut Claude Code browser use cost 3% to 25% (about 14% in 2 runs): fresh runner subagent, bulk reads, 3 guards and a token meter. One npx command.
|
|
30
30
|
- [lean-computer-use](https://github.com/aunysillyme/lean-computer-use): Background Mac computer control for AI agents: desk tools, a fresh runner subagent, retry guards and a transcript token meter, installed with one command
|
|
31
|
+
- [decompose](https://github.com/aunysillyme-dev/aunx-decompose): Task planner and wave checker for AI coding agents: splits prompts into checkable units and parallel waves, rejecting cycles and overlapping writes
|
|
32
|
+
- [aunx-skills](https://github.com/aunysillyme-dev/aunx-skills): Ten standalone agent skills for Claude Code, Codex, Cursor and Gemini CLI: full output keeper, number guard, docs fetch ladder, rename sweep and more
|
|
31
33
|
<!-- set:end -->
|
|
32
34
|
|
|
33
35
|
## Optional
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-personalizer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "AI custom instructions from approved entries: a profile and rules for Claude Code, Codex, Cursor, Gemini CLI, Hermes Agent and ChatGPT, kept in sync from one source.",
|
|
5
5
|
"author": "aunysillyme (https://github.com/aunysillyme)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"codex",
|
|
19
19
|
"cursor",
|
|
20
20
|
"gemini-cli",
|
|
21
|
+
"google-antigravity",
|
|
22
|
+
"hermes-agent",
|
|
21
23
|
"chatgpt",
|
|
22
24
|
"personalization",
|
|
23
25
|
"agent-onboarding",
|
|
@@ -42,7 +44,7 @@
|
|
|
42
44
|
"test": "sh test/run.sh"
|
|
43
45
|
},
|
|
44
46
|
"engines": {
|
|
45
|
-
"node": ">=
|
|
47
|
+
"node": ">=22"
|
|
46
48
|
},
|
|
47
49
|
"files": [
|
|
48
50
|
"bin",
|
|
@@ -50,11 +52,12 @@
|
|
|
50
52
|
"rules",
|
|
51
53
|
"templates",
|
|
52
54
|
"hooks",
|
|
55
|
+
"skills",
|
|
53
56
|
"check/gate.cjs",
|
|
54
57
|
"check/forbidden.example.txt",
|
|
55
58
|
"docs",
|
|
56
59
|
"!docs/*.gif",
|
|
57
|
-
"examples",
|
|
60
|
+
"examples/answers.json",
|
|
58
61
|
"README.md",
|
|
59
62
|
"LICENSE",
|
|
60
63
|
"CLA.md",
|
package/render/onboarding.cjs
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
DOCS points at the matching tag on GitHub so an installed copy never links to a file the
|
|
18
18
|
destination does not have.
|
|
19
19
|
*/
|
|
20
|
-
const VERSION = '0.
|
|
20
|
+
const VERSION = '0.10.0';
|
|
21
21
|
const DOCS = `https://github.com/aunysillyme/agent-personalizer/blob/v${VERSION}/docs`;
|
|
22
22
|
|
|
23
23
|
/* THE single source for notes tools. Add a tool here and nowhere else: the saved choice option, the
|
|
@@ -72,52 +72,49 @@ const NOTES_PENDING_MARK = 'no local notes folder yet, so no folder rules yet';
|
|
|
72
72
|
const notesLater = (base) => `\`--level 2\` creates \`${base}/\``;
|
|
73
73
|
|
|
74
74
|
const LEGACY = [
|
|
75
|
-
{ id: 'name',
|
|
76
|
-
{ id: 'pronouns',
|
|
77
|
-
{ id: 'work',
|
|
78
|
-
{ id: 'focus',
|
|
75
|
+
{ id: 'name', type: 'text', default: 'the user' },
|
|
76
|
+
{ id: 'pronouns', type: 'text', default: '' },
|
|
77
|
+
{ id: 'work', type: 'text', default: '' },
|
|
78
|
+
{ id: 'focus', type: 'text', default: '' },
|
|
79
79
|
];
|
|
80
80
|
const QUESTIONS = [
|
|
81
|
-
{ id: 'tone',
|
|
81
|
+
{ id: 'tone', type: 'choice', default: 'direct',
|
|
82
82
|
options: [['direct', 'direct answers, no hedging, say what you think'], ['balanced', 'direct but soften disagreement'], ['gentle', 'lead with what works before what does not']] },
|
|
83
|
-
{ id: 'length',
|
|
83
|
+
{ id: 'length', type: 'choice', default: 'short',
|
|
84
84
|
options: [['short', 'short by default, detail on request'], ['adaptive', 'as long as the question needs'], ['thorough', 'complete every time']] },
|
|
85
|
-
{ id: 'mistakes',
|
|
85
|
+
{ id: 'mistakes', type: 'choice', default: 'one-line',
|
|
86
86
|
options: [['one-line', 'state the correction in one line and move on'], ['brief', 'correction plus one line on the cause'], ['full', 'correction plus the full cause']] },
|
|
87
|
-
{ id: 'unsure',
|
|
87
|
+
{ id: 'unsure', type: 'choice', default: 'ask-when-it-changes-the-build',
|
|
88
88
|
options: [['ask-when-it-changes-the-build', 'settle facts itself; ask only when the answer changes what gets built', 'settle facts yourself; ask only when the answer changes what gets built'], ['ask-first', 'ask before doing anything uncertain'], ['assume-and-say', 'proceed on a stated assumption, never ask']] },
|
|
89
|
-
{ id: 'lead_with',
|
|
89
|
+
{ id: 'lead_with', type: 'choice', default: 'verdict',
|
|
90
90
|
options: [['verdict', 'the answer or the verdict'], ['summary', 'a one-paragraph summary'], ['context', 'the context, then the answer']] },
|
|
91
|
-
{ id: 'structure',
|
|
91
|
+
{ id: 'structure', type: 'choice', default: 'bullets',
|
|
92
92
|
options: [['bullets', 'lead-in line, then bullets, one item per line'], ['prose', 'short paragraphs'], ['tables-when-comparing', 'bullets by default, a table when comparing three or more things']] },
|
|
93
|
-
{ id: 'evidence',
|
|
93
|
+
{ id: 'evidence', type: 'choice', default: 'inline',
|
|
94
94
|
options: [['inline', 'in the reply: paths, counts, dates'], ['linked', 'a link to where it lives'], ['none', 'not needed']] },
|
|
95
|
-
{ id: 'never',
|
|
96
|
-
{ id: 'read_first',
|
|
97
|
-
{ id: 'notes_tool',
|
|
95
|
+
{ id: 'never', type: 'list', default: [] },
|
|
96
|
+
{ id: 'read_first', type: 'list', default: ['USER.md', 'AGENT_ONBOARDING.md'] },
|
|
97
|
+
{ id: 'notes_tool', type: 'choice', default: 'folder',
|
|
98
98
|
options: Object.entries(TOOL).map(([k, t]) => [k, t.label]) },
|
|
99
|
-
{ id: 'obsidian_tc',
|
|
99
|
+
{ id: 'obsidian_tc', type: 'choice', default: 'no',
|
|
100
100
|
options: [['no', 'not installed; the AI works on the vault folder directly'], ['yes', 'installed and connected; the AI reaches the vault through it']] },
|
|
101
|
-
{ id: 'notes_tool_name',
|
|
102
|
-
{ id: 'notes_path',
|
|
103
|
-
{ id: 'tracker',
|
|
104
|
-
{ id: 'write_policy',
|
|
101
|
+
{ id: 'notes_tool_name', type: 'text', default: '' },
|
|
102
|
+
{ id: 'notes_path', type: 'text', default: 'notes' },
|
|
103
|
+
{ id: 'tracker', type: 'text', default: 'none' },
|
|
104
|
+
{ id: 'write_policy', type: 'choice', default: 'notes-freely',
|
|
105
105
|
options: [['notes-freely', 'anywhere under the notes folder, under the folder rules'], ['logs-and-inbox-only', 'only the session log, decisions log and inbox'], ['ask-before-every-write', 'ask before every write']] },
|
|
106
|
-
{ id: 'file_naming',
|
|
106
|
+
{ id: 'file_naming', type: 'choice', default: 'kebab-case',
|
|
107
107
|
options: [['kebab-case', 'my-note-title.md'], ['snake_case', 'my_note_title.md'], ['any', 'no rule']] },
|
|
108
|
-
{ id: 'signature',
|
|
108
|
+
{ id: 'signature', type: 'choice', default: 'yes',
|
|
109
109
|
options: [['yes', 'one line, overwritten each edit'], ['no', 'no signature']] },
|
|
110
|
-
{ id: 'off_limits',
|
|
111
|
-
{ id: 'always_ask',
|
|
110
|
+
{ id: 'off_limits', type: 'list', default: [] },
|
|
111
|
+
{ id: 'always_ask', type: 'multi',
|
|
112
112
|
default: ['delete', 'publish', 'send', 'spend', 'settings', 'standing-rules'],
|
|
113
113
|
options: [['delete', 'deleting or overwriting anything'], ['publish', 'publishing or posting anything public'], ['send', 'sending a message on your behalf'], ['spend', 'spending money'], ['settings', 'changing account or system settings'], ['standing-rules', 'creating a standing rule, schedule or automation']] },
|
|
114
114
|
];
|
|
115
115
|
|
|
116
116
|
const SETTINGS = [...LEGACY, ...QUESTIONS];
|
|
117
117
|
const IDS = new Set(SETTINGS.map(q => q.id));
|
|
118
|
-
// The installer asks only which AIs and whether it may read sessions.
|
|
119
|
-
const QUICK = [];
|
|
120
|
-
function asks() { return false; }
|
|
121
118
|
/* only the answers that differ from the defaults: what the installer stores, so the config reads as
|
|
122
119
|
"what this person chose" and a future default applies to everyone who never chose otherwise */
|
|
123
120
|
/* PINNED answers are always stored, default or not: they govern what the AI may touch, so a future
|
|
@@ -131,15 +128,6 @@ function defaults() {
|
|
|
131
128
|
return a;
|
|
132
129
|
}
|
|
133
130
|
|
|
134
|
-
/* Interview defaults preserve even an empty saved answer. Asked answers override saved values;
|
|
135
|
-
package defaults fill only missing keys. Validation remains the caller's final step. */
|
|
136
|
-
function interviewDefault(q, saved) {
|
|
137
|
-
return saved && Object.hasOwn(saved, q.id) ? saved[q.id] : q.default;
|
|
138
|
-
}
|
|
139
|
-
function interviewAnswers(saved, asked = {}) {
|
|
140
|
-
return { ...defaults(), ...saved, ...asked };
|
|
141
|
-
}
|
|
142
|
-
|
|
143
131
|
/* Strict validation: unknown keys, wrong types and unknown choices are errors, never defaults.
|
|
144
132
|
Returns the completed answer set (missing keys take their default). */
|
|
145
133
|
const RESERVED = /<!--\s*agent-personalizer/i;
|
|
@@ -176,22 +164,13 @@ function validate(input) {
|
|
|
176
164
|
const reserved = out.notes_path.split('/').find(segment => ['.git', '.github', 'node_modules'].includes(segment.toLowerCase()));
|
|
177
165
|
if (kindOf(out) === 'disk' && reserved)
|
|
178
166
|
throw new Error(`"notes_path" must not contain the reserved segment "${reserved}"`);
|
|
179
|
-
const owned = ['.agent-personalizer', '.agent-personalizer.json', '.claude', 'render', 'rules', 'check', 'hooks', 'USER.md', 'LEARNED.md', 'CLAUDE.md', 'AGENTS.md', 'GEMINI.md', 'AGENT_ONBOARDING.md', 'system-prompt.md', 'chatgpt-custom-instructions.md', 'chatgpt-box1.txt', 'chatgpt-box2.txt'];
|
|
167
|
+
const owned = ['.agent-personalizer', '.agent-personalizer.json', '.claude', '.gemini', 'render', 'rules', 'check', 'hooks', 'USER.md', 'LEARNED.md', 'CLAUDE.md', 'AGENTS.md', 'GEMINI.md', 'AGENT_ONBOARDING.md', 'system-prompt.md', 'chatgpt-custom-instructions.md', 'chatgpt-box1.txt', 'chatgpt-box2.txt'];
|
|
180
168
|
if (kindOf(out) === 'disk' && owned.some(p => out.notes_path.toLowerCase() === p.toLowerCase() || out.notes_path.toLowerCase().startsWith(p.toLowerCase() + '/')))
|
|
181
169
|
throw new Error('"notes_path" must be outside agent-personalizer tool-owned paths, including .agent-personalizer/');
|
|
182
170
|
return out;
|
|
183
171
|
}
|
|
184
172
|
const SAFE_REL = /^(?!\.\.?(?:\/|$))[A-Za-z0-9._ -]+(?:\/(?!\.\.?(?:\/|$))[A-Za-z0-9._ -]+)*$/;
|
|
185
173
|
|
|
186
|
-
/* Parse one typed interview answer (a string) for a question; '' means the default. */
|
|
187
|
-
function parseAnswer(q, raw) {
|
|
188
|
-
const s = String(raw).trim();
|
|
189
|
-
if (s === '') return Array.isArray(q.default) ? [...q.default] : q.default;
|
|
190
|
-
if (q.type === 'text') return s;
|
|
191
|
-
if (q.type === 'choice') return s;
|
|
192
|
-
return s.split(',').map(x => x.trim()).filter(Boolean);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
174
|
const label = (q, v) => { const o = q.options && q.options.find(x => x[0] === v); return o ? o[1] : v; };
|
|
196
175
|
/* The interview asks the HUMAN about the AI, so an option's label is third person ("settle facts
|
|
197
176
|
itself"). USER.md, AGENT_ONBOARDING.md and the session-start contract all address the AI
|
|
@@ -552,4 +531,8 @@ After the questions are answered (or no real patterns exist), add the full diges
|
|
|
552
531
|
As you work, on the second correction of the same thing, ask once, naming both moments, "Make it a rule?" Save a yes or no with the same status and re-render. Check confirmed and declined entries before asking.`;
|
|
553
532
|
}
|
|
554
533
|
|
|
555
|
-
|
|
534
|
+
function geminiPersonalizeToml() {
|
|
535
|
+
return `description = "Review the session learning digest and ask up to 5 preference questions."\nprompt = '''\n${learningProcedure()}\n'''\n`;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
module.exports = { parseLearned, entriesBlock, learningProcedure, geminiPersonalizeToml, LEGACY, QUESTIONS, PINNED, TOOL, VERSION, DOCS, FALLBACK, notesPending, defaults, sparse, validate, renderUser, renderOnboarding, contractBlock, compactProfile, compactProfileFromUser, kindOf, baseFor };
|
package/render/render.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
render.cjs: USER.md + rules/*.md -> per-AI instruction files.
|
|
5
5
|
|
|
6
6
|
usage:
|
|
7
|
-
node render/render.cjs [--dir <project>] [--targets claude,agents,gemini,chatgpt,prompt] [--check] [--strict] [--rules <dir>]
|
|
7
|
+
node render/render.cjs [--dir <project>] [--targets claude,agents,gemini,hermes,chatgpt,prompt,onboarding] [--compact] [--check] [--strict] [--rules <dir>]
|
|
8
8
|
node render/render.cjs [--dir <project>] --contract [--contract-target claude] [--no-personal]
|
|
9
9
|
node render/render.cjs --help | -h · --version | -v
|
|
10
10
|
|
|
@@ -270,6 +270,9 @@ function rulesDir(root, explicit) {
|
|
|
270
270
|
}
|
|
271
271
|
function loadRules(root, explicit) {
|
|
272
272
|
const rdir = rulesDir(root, explicit || null);
|
|
273
|
+
const pkgRules = (() => { try { return fs.realpathSync(path.resolve(__dirname, '..', 'rules')); } catch (_) { return ''; } })();
|
|
274
|
+
const realRdir = (() => { try { return fs.realpathSync(rdir); } catch (_) { return rdir; } })();
|
|
275
|
+
const packageOwned = realRdir === pkgRules;
|
|
273
276
|
const out = [];
|
|
274
277
|
for (const f of fs.readdirSync(rdir).sort()) {
|
|
275
278
|
if (f === 'README.md') continue;
|
|
@@ -280,7 +283,7 @@ function loadRules(root, explicit) {
|
|
|
280
283
|
const { meta, body } = parseFrontmatter(text, where);
|
|
281
284
|
const sections = parseSections(body, where);
|
|
282
285
|
if (!sections.universal) die(`${where}: missing "## universal" block`);
|
|
283
|
-
out.push({ file: f, meta, sections });
|
|
286
|
+
out.push({ file: f, meta, sections, packageOwned });
|
|
284
287
|
}
|
|
285
288
|
return out;
|
|
286
289
|
}
|
|
@@ -369,14 +372,14 @@ function pendingDigest(root, entries) {
|
|
|
369
372
|
} finally { if (fd !== undefined) fs.closeSync(fd); }
|
|
370
373
|
}
|
|
371
374
|
|
|
372
|
-
function renderTarget(key, target, profile, rules, cfg, root, learned) {
|
|
375
|
+
function renderTarget(key, target, profile, rules, cfg, root, learned, boilerplate = text => text) {
|
|
373
376
|
if (target.source === 'onboarding') {
|
|
374
377
|
if (!cfg || !cfg.onboarding) die(`target "${key}": no onboarding answers in .agent-personalizer.json. Run the installer, or pass --answers <file>`);
|
|
375
|
-
return onboarding.renderOnboarding(cfg.onboarding, { notesScaffolded: notesScaffolded(root, cfg.onboarding) });
|
|
378
|
+
return boilerplate(onboarding.renderOnboarding(cfg.onboarding, { notesScaffolded: notesScaffolded(root, cfg.onboarding) }));
|
|
376
379
|
}
|
|
377
380
|
rules = rulesAtLevel(rules, cfg);
|
|
378
381
|
const answers = answersOf(cfg);
|
|
379
|
-
const lines = [`## ${target.header}
|
|
382
|
+
const lines = [boilerplate(`## ${target.header}`), '', boilerplate('_Generated by agent-personalizer from `USER.md`, `LEARNED.md`, `rules/` and your saved preferences. Edit those, then re-render. Do not edit between the markers._'), ''];
|
|
380
383
|
if (target.boxes) {
|
|
381
384
|
// The profile's own bytes win over stored answers. A generated profile can still be compact,
|
|
382
385
|
// but custom structure or prose stays in full. Box 2 uses the contract and inject:true rules
|
|
@@ -406,26 +409,27 @@ function renderTarget(key, target, profile, rules, cfg, root, learned) {
|
|
|
406
409
|
const fenceFor = (text) => { let n = 3; for (const m of text.matchAll(/(`{3,}|~{3,})/g)) n = Math.max(n, m[1].length + 1); return '`'.repeat(n); };
|
|
407
410
|
const f1 = fenceFor(box1), f2 = fenceFor(box2);
|
|
408
411
|
renderTarget.boxes = { box1: box1 + '\n', box2: box2 + '\n' }; // plain paste files, written beside the markdown
|
|
409
|
-
lines.push('### Box 1: "What would you like ChatGPT to know about you?"', '', '_Copy only the text inside the fence below (or paste the whole of `chatgpt-box1.txt`, the same text as a plain file)._', '', f1, box1, f1, warn('Box 1', box1), '');
|
|
410
|
-
lines.push('### Box 2: "How would you like ChatGPT to respond?"', '', '_Copy only the text inside the fence below (or paste the whole of `chatgpt-box2.txt`)._', '', f2, box2, f2, warn('Box 2', box2));
|
|
411
|
-
if (!answers) lines.push('', '> No onboarding answers in `.agent-personalizer.json`, so this is the full profile and every rule. Run the installer
|
|
412
|
-
else lines.push('', `> ChatGPT has no file access, so only the rules marked \`inject: true\` are here (${picked.length}). The rest live in \`rules/\`; for a ChatGPT Project, upload \`AGENT_ONBOARDING.md\` and \`rules/\` as project files instead of pasting.`);
|
|
412
|
+
lines.push('### Box 1: Profile ("More about you" / "What would you like ChatGPT to know about you?")', '', '_Copy only the text inside the fence below (or paste the whole of `chatgpt-box1.txt`, the same text as a plain file)._', '', f1, box1, f1, warn('Box 1', box1), '');
|
|
413
|
+
lines.push('### Box 2: Response instructions ("Custom instructions" / "How would you like ChatGPT to respond?")', '', '_Copy only the text inside the fence below (or paste the whole of `chatgpt-box2.txt`)._', '', f2, box2, f2, warn('Box 2', box2));
|
|
414
|
+
if (!answers) lines.push('', '> No onboarding answers in `.agent-personalizer.json`, so this is the full profile and every rule. Run the installer for the compact, budgeted form.');
|
|
415
|
+
else lines.push('', `> ChatGPT has no file access, so only the rules marked \`inject: true\` are here (${picked.length}). Free and Go accounts allow 1,500 characters per field; Plus, Pro, Business, Enterprise and Education allow up to 5,000 characters. The rest live in \`rules/\`; for a ChatGPT Project, upload \`AGENT_ONBOARDING.md\` and \`rules/\` as project files instead of pasting.`);
|
|
413
416
|
renderTarget.overBudget = (renderTarget.overBudget || []).concat(over.map(l => `${target.file}: ${l}`));
|
|
414
417
|
return lines.join('\n');
|
|
415
418
|
}
|
|
416
419
|
if (target.profile && profile) lines.push('## Profile', '', profile.body, '');
|
|
417
420
|
if (target.personal && target.profile) {
|
|
418
|
-
lines.push(onboarding.entriesBlock(learned), '', `_LEARNED.md source: ${learned.hash}_
|
|
419
|
-
if (['claude', 'agents', 'gemini', 'hermes'].includes(key)) lines.push(onboarding.learningProcedure(), '');
|
|
421
|
+
lines.push(onboarding.entriesBlock(learned), '', boilerplate(`_LEARNED.md source: ${learned.hash}_`), '');
|
|
422
|
+
if (['claude', 'agents', 'gemini', 'hermes'].includes(key)) lines.push(boilerplate(onboarding.learningProcedure()), '');
|
|
420
423
|
}
|
|
421
424
|
lines.push('## Rules', '');
|
|
422
425
|
for (const r of rulesFor(rules, key, answers)) {
|
|
426
|
+
const qualifyRule = r.packageOwned ? boilerplate : text => text;
|
|
423
427
|
if (cfg && cfg.compact && FILE_TARGETS.has(key) && r.meta.inject !== true) {
|
|
424
428
|
const practice = r.sections.universal.split('\n').find(line => line.startsWith('In practice:'));
|
|
425
429
|
if (!practice) die(`${r.file}: compact mode needs an In practice: line in the universal block`);
|
|
426
430
|
const link = cfg.level === 1 || cfg.level === 2 ? `https://github.com/aunysillyme/agent-personalizer/blob/v${onboarding.VERSION}/rules/${r.file}` : `rules/${r.file}`;
|
|
427
|
-
lines.push(`- **${r.meta.title || r.meta.id || r.file}**: ${practice} [Full rule](${link})
|
|
428
|
-
} else lines.push(renderRule(r, target), '');
|
|
431
|
+
lines.push(qualifyRule(`- **${r.meta.title || r.meta.id || r.file}**: ${practice} [Full rule](${link})`), '');
|
|
432
|
+
} else lines.push(qualifyRule(renderRule(r, target)), '');
|
|
429
433
|
}
|
|
430
434
|
return lines.join('\n').trimEnd();
|
|
431
435
|
}
|
|
@@ -512,7 +516,11 @@ function main() {
|
|
|
512
516
|
}
|
|
513
517
|
if (withPersonal) {
|
|
514
518
|
out.push(onboarding.entriesBlock(learned), '');
|
|
515
|
-
if (['claude', 'agents', 'gemini'].includes(key) && pendingDigest(root, learned))
|
|
519
|
+
if (['claude', 'agents', 'gemini'].includes(key) && pendingDigest(root, learned)) {
|
|
520
|
+
out.push(key === 'agents'
|
|
521
|
+
? '[agent-personalizer] New session digest: follow "Learn from my sessions" in AGENTS.md to review up to 5 questions.'
|
|
522
|
+
: '[agent-personalizer] New session digest: run /personalize to review up to 5 questions.');
|
|
523
|
+
}
|
|
516
524
|
}
|
|
517
525
|
process.stdout.write(out.join('\n'));
|
|
518
526
|
return;
|
|
@@ -708,6 +716,7 @@ function renderedContents(root, cfg, options = {}) {
|
|
|
708
716
|
const rules = loadRules(root, null);
|
|
709
717
|
const profile = Object.hasOwn(options, 'profileSource') ? profileFromSource(options.profileSource) : loadProfile(root);
|
|
710
718
|
const learned = options.learned || readLearned(root);
|
|
719
|
+
const boilerplate = typeof options.boilerplate === 'function' ? options.boilerplate : text => text;
|
|
711
720
|
renderTarget.boxes = null;
|
|
712
721
|
renderTarget.overBudget = [];
|
|
713
722
|
renderTarget.fileBudget = [];
|
|
@@ -715,7 +724,7 @@ function renderedContents(root, cfg, options = {}) {
|
|
|
715
724
|
const target = TARGETS[key];
|
|
716
725
|
if (!target) die(`unknown target "${key}"`);
|
|
717
726
|
safeTargetPath(root, target.file, key);
|
|
718
|
-
const block = renderTarget(key, target, profile, rules, cfg, root, learned);
|
|
727
|
+
const block = renderTarget(key, target, profile, rules, cfg, root, learned, boilerplate);
|
|
719
728
|
const out = [{ key, rel: target.file, block }];
|
|
720
729
|
if (target.boxes) for (const [which, rel] of Object.entries(target.boxFiles || {})) {
|
|
721
730
|
safeTargetPath(root, rel, `${key}:${which}`);
|
|
@@ -19,6 +19,9 @@ For learned entries, `LEARNED.md` owns the current status; a summary in the prof
|
|
|
19
19
|
## binding:agents
|
|
20
20
|
`USER.md` sits next to `AGENTS.md`. Read it before the first tool call.
|
|
21
21
|
|
|
22
|
+
## binding:gemini
|
|
23
|
+
`USER.md` sits next to `GEMINI.md`. In Gemini CLI and Google Antigravity, `GEMINI.md` loads automatically; read `USER.md` before the first tool call.
|
|
24
|
+
|
|
22
25
|
## origin
|
|
23
26
|
Written after: an AI produced a week of correctly formatted, well-reasoned work in the wrong voice, for the wrong audience, because the profile lived in a file nothing told it to open. A second week went to an AI that knew the person well and still wrote into the wrong folder, because nothing told it where writes were allowed.
|
|
24
27
|
Prevents: fluent output aimed at nobody in particular.
|
|
@@ -19,6 +19,9 @@ Pointer form in `CLAUDE.md`: a one-line rule followed by `[owner: rules/<file>.m
|
|
|
19
19
|
## binding:agents
|
|
20
20
|
Pointer form in `AGENTS.md`: a one-line rule followed by `[owner: rules/<file>.md]`.
|
|
21
21
|
|
|
22
|
+
## binding:gemini
|
|
23
|
+
Pointer form in `GEMINI.md`: a one-line rule followed by `[owner: rules/<file>.md]`.
|
|
24
|
+
|
|
22
25
|
## origin
|
|
23
26
|
Written after: a routing rule was corrected in its owning document and, four days later, four other surfaces still carried the old version. One of them was quoted back to the user as if her own decision had been the reverse. The drift detector was green throughout, because it checked each surface against the rule as last recorded, not against the owner.
|
|
24
27
|
Prevents: the same rule disagreeing with itself in five places.
|
|
@@ -21,6 +21,9 @@ Restate this rule in each folder's README so the folder carries its own contract
|
|
|
21
21
|
## binding:agents
|
|
22
22
|
Check the folder's README before reporting a write as done.
|
|
23
23
|
|
|
24
|
+
## binding:gemini
|
|
25
|
+
Check the folder's README before reporting a write as done.
|
|
26
|
+
|
|
24
27
|
## origin
|
|
25
28
|
Written after: an AI trusted a folder index that described a file deleted two weeks earlier, and built a plan on it. Agents read a notes folder by trusting the index over the files, because that is what an index is for.
|
|
26
29
|
Prevents: a stale index, which is worse than a missing one because it is believed.
|
|
@@ -18,7 +18,10 @@ The ten-word summary is the audit trail a human reads first. Say what changed, n
|
|
|
18
18
|
Name and model as the platform reports them, e.g. `Claude <model-id>`.
|
|
19
19
|
|
|
20
20
|
## binding:agents
|
|
21
|
-
Name and model as the platform reports them, e.g. `Codex <model-id>`.
|
|
21
|
+
Name and model as the platform reports them, e.g. `Codex <model-id>`, `Cursor <model-id>` or `Hermes <model-id>`.
|
|
22
|
+
|
|
23
|
+
## binding:gemini
|
|
24
|
+
Name and model as the platform reports them, e.g. `Gemini <model-id>`.
|
|
22
25
|
|
|
23
26
|
## origin
|
|
24
27
|
Written after: three AIs and one human edited the same file over a month and nobody could say which change came from whom, or which model had written the paragraph that turned out to be wrong.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-personalizer
|
|
3
|
+
description: Install and run agent-personalizer to create AI custom instructions from approved entries, a profile and rules for Claude Code, Codex, Cursor, Gemini CLI, Hermes Agent and ChatGPT. Use when a user wants shared instructions kept in sync from one source.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## When to use
|
|
7
|
+
|
|
8
|
+
Use when the user wants to set up, update or remove shared AI instructions, or turn repeated corrections into entries they approve. One profile and one rule source produce the instructions each selected AI can carry.
|
|
9
|
+
|
|
10
|
+
## Steps
|
|
11
|
+
|
|
12
|
+
1. Ask the user which folder, which AIs and which level. Do not install until they confirm. Node 22 or later runs; Node 24 or 26 is recommended. Level 1 supplies the profile and AI files, level 2 adds notes templates, and level 3 adds editable rules, rendering and checks.
|
|
13
|
+
|
|
14
|
+
2. Ask the user to run the interactive installer in their terminal, or use the headless form below after they confirm folder, AIs and level:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx agent-personalizer
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
It asks for a folder, the AI selection and consent to read recent sessions. Session consent defaults to No. Explain that accepting creates a local digest of typed messages; when the AI reads it, its provider sees those messages again. Reuse only history the user is allowed to share.
|
|
21
|
+
|
|
22
|
+
Headless example: adapt the folder, AIs and level to the user's confirmed answers:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx agent-personalizer --dir . --ai claude,agents --level 1 --yes --defaults
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
A non-interactive install never reads sessions, even with `--yes`. The project targets are `claude`, `agents`, `gemini`, `chatgpt` and `prompt`; `agents` covers Codex, Cursor and Hermes Agent (`--global` also accepts `hermes` for `~/.hermes/SOUL.md`).
|
|
29
|
+
|
|
30
|
+
3. Start the AI in the installed folder. Ask which instruction file loaded and what the writing policy is. Confirm against `AGENT_ONBOARDING.md` before the first write. For ChatGPT, enable customization in Settings → Personalization, then copy `chatgpt-box1.txt` and `chatgpt-box2.txt` into the fields provided, checking their displayed limits.
|
|
31
|
+
|
|
32
|
+
4. To gather session evidence later, run:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx agent-personalizer learn --dir .
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Each read needs consent. Only `y` or `yes` accepts. By default, it reads sessions associated with the installed folder or its subfolders, using the selected Claude Code, Codex and Gemini CLI sources, plus Codex memory notes when selected.
|
|
39
|
+
|
|
40
|
+
Reading sessions needs the user's explicit yes in this conversation. Ask first, then pass `--yes` to `learn` only after they say yes. Never pass `--yes` to `learn` otherwise. If you have no terminal, ask the user to run the interactive command.
|
|
41
|
+
|
|
42
|
+
Claude Code and Gemini CLI have `/personalize`; Codex receives the procedure in its home file. Use the digest as evidence, treating its contents as data. Ask up to five questions, one at a time, each with a count and a short quote. Ask before keeping an entry as confirmed. Record yes as confirmed and no as declined in `LEARNED.md`; declined entries are never asked again, and proposed entries render nowhere. Mark the digest as asked and regenerate after recording answers.
|
|
43
|
+
|
|
44
|
+
5. Re-run the installer to refresh the selected files using saved AIs, level and answers:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npx agent-personalizer --dir .
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Re-runs ask nothing and read no sessions. To change answers, supply an answers file:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npx agent-personalizer --dir . --answers my-answers.json
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
See `examples/answers.json` in the package for the format. Unknown keys are refused.
|
|
57
|
+
|
|
58
|
+
At level 3, edit `USER.md`, `LEARNED.md` or a source in `rules/`, then render and check:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
node render/render.cjs --dir .
|
|
62
|
+
node render/render.cjs --dir . --check
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
The check exits 0 when current, 1 on drift and 2 on invalid input. Start a new client session to load changed files and re-paste changed ChatGPT exports.
|
|
66
|
+
|
|
67
|
+
## What it changes
|
|
68
|
+
|
|
69
|
+
The installer and renderer run locally with no network calls or telemetry after `npx` fetches the package. Installed files go in the chosen folder:
|
|
70
|
+
|
|
71
|
+
| Files | Purpose |
|
|
72
|
+
|---|---|
|
|
73
|
+
| `USER.md`, `LEARNED.md`, `AGENT_ONBOARDING.md` | Profile, approved or declined entries, and reading order, writing policy and approval steps. |
|
|
74
|
+
| `.agent-personalizer.json` | Saved targets, level, answers and installed-file history. |
|
|
75
|
+
| `CLAUDE.md`, `AGENTS.md`, `GEMINI.md` | Selected AI instruction files for Claude Code, Codex/Cursor/Hermes Agent and Gemini CLI/Google Antigravity. |
|
|
76
|
+
| `chatgpt-box1.txt`, `chatgpt-box2.txt` and `chatgpt-custom-instructions.md` (a preview with counts) | Selected ChatGPT profile and response instructions to paste manually. |
|
|
77
|
+
| `system-prompt.md` | Selected shareable universal rules, without learned entries. |
|
|
78
|
+
| `.claude/commands/personalize.md`, `.gemini/commands/personalize.toml` | Claude Code and Gemini CLI `/personalize` commands. |
|
|
79
|
+
| Notes folder at level 2 | `README.md`, `sessions/TEMPLATE-week.md`, `decisions.md` and `inbox/README.md`; local tools use `notes_path`, with `notes/` as the fallback. |
|
|
80
|
+
| `rules/`, `render/`, session-start hook and forbidden-string gate at level 3 | Editable rule sources, renderer, drift check and local mechanisms. Hook registration and gate configuration are separate setup steps. |
|
|
81
|
+
| `.agent-personalizer/digest.md` and its `.gitignore` | With consent, local session evidence ignored by git. |
|
|
82
|
+
|
|
83
|
+
Inside a git work tree, the installer also adds a block to the repo's `.git/info/exclude` for the profile, entries, config and ChatGPT paste files. Instruction and onboarding files remain committable for review.
|
|
84
|
+
|
|
85
|
+
Edited and pre-existing profiles, notes, rules and tools are kept and named. Untouched installer files refresh on re-runs. `LEARNED.md` stays user-owned after installation. Rendering preserves bytes outside generated markers; re-runs update unchanged installer pointer lines outside those markers and keep edited lines for review.
|
|
86
|
+
|
|
87
|
+
## Undo
|
|
88
|
+
|
|
89
|
+
Ask before `learn --forget`. To delete the digest while keeping learned entries and the AI apps' own history:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
npx agent-personalizer learn --forget --dir .
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Run the `--dry` preview, show the user its output, and run the real uninstall only after they confirm.
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
npx agent-personalizer --uninstall --dir . --dry
|
|
99
|
+
npx agent-personalizer --uninstall --dir .
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Removal compares recorded install hashes. Unchanged installed files are removed; edited files, user-written notes and a `LEARNED.md` with entries stay. Existing home files keep their own text while an unchanged generated block is removed. The digest is removed subject to its creation records; edited or unrecorded files stay. The AI apps' history stays in place.
|
|
103
|
+
|
|
104
|
+
The configuration is removed last and stays while tracked files are retained. Its git exclude block is removed after the configuration is removed. If the install was level 3, tell the user to remove any `SessionStart` entry for `hooks/claude-code/session-start.sh` or `hooks/gemini-cli/session-start.sh` from `.claude/settings.json`, `~/.claude/settings.json`, `.gemini/settings.json` or `~/.gemini/settings.json`. Edit those files only if they ask. The uninstaller prints that step at level 3 only. Tell the user to clear anything they pasted into chat apps; the uninstaller does not print that.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# GEMINI.md
|
|
2
|
+
|
|
3
|
+
<!-- Read by Gemini CLI and Google Antigravity. A POINTER file: it says where things
|
|
4
|
+
live and does not restate rules. The block between the markers is generated from
|
|
5
|
+
USER.md and rules/ by render/render.cjs; edit those, never this block. -->
|
|
6
|
+
|
|
7
|
+
Read `USER.md` first, every session. It says who I am, how to talk to me, how firmly I mean things, and how I want output shaped.
|
|
8
|
+
Then read `AGENT_ONBOARDING.md`: how to talk to me, what to read next, where you may write, how to save a file, and what to ask before doing. It is generated from my own answers.
|
|
9
|
+
|
|
10
|
+
## Where things live
|
|
11
|
+
|
|
12
|
+
- Profile: `USER.md`
|
|
13
|
+
- Agent onboarding (generated from my answers): `AGENT_ONBOARDING.md`
|
|
14
|
+
- Rules, one file each, the owning copy: `rules/`
|
|
15
|
+
- Notes the AI may edit, and the rules for editing them: `notes/README.md`
|
|
16
|
+
- Session log (one note per week): `notes/sessions/`
|
|
17
|
+
- Decisions log (one running file): `notes/decisions.md`
|
|
18
|
+
- Inbox (one file per item, deleted when done): `notes/inbox/`
|
|
19
|
+
|
|
20
|
+
## Standing rules (pointers)
|
|
21
|
+
|
|
22
|
+
- Evidence before assertion. `[owner: rules/10-evidence-before-assertion.md]`
|
|
23
|
+
- One owner per rule. `[owner: rules/20-one-owner-per-rule.md]`
|
|
24
|
+
- The folder index is part of the change. `[owner: rules/30-folder-index-is-part-of-the-change.md]`
|
|
25
|
+
- Sign every edit. `[owner: rules/40-sign-every-edit.md]`
|
|
26
|
+
- Act or ask. `[owner: rules/60-act-or-ask.md]`
|
|
27
|
+
|
|
28
|
+
<!-- agent-personalizer:begin -->
|
|
29
|
+
<!-- run `npx agent-personalizer` or `node render/render.cjs` to fill this block -->
|
|
30
|
+
<!-- agent-personalizer:end -->
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"targets": [
|
|
3
|
-
"claude",
|
|
4
|
-
"agents",
|
|
5
|
-
"onboarding"
|
|
6
|
-
],
|
|
7
|
-
"level": 3,
|
|
8
|
-
"onboarding": {
|
|
9
|
-
"name": "Mara",
|
|
10
|
-
"pronouns": "she/her",
|
|
11
|
-
"work": "freelance illustrator: book covers and editorial work",
|
|
12
|
-
"focus": "a 12-cover fantasy series due in November, and a print shop",
|
|
13
|
-
"tone": "direct",
|
|
14
|
-
"length": "short",
|
|
15
|
-
"mistakes": "one-line",
|
|
16
|
-
"unsure": "ask-when-it-changes-the-build",
|
|
17
|
-
"lead_with": "verdict",
|
|
18
|
-
"structure": "tables-when-comparing",
|
|
19
|
-
"evidence": "inline",
|
|
20
|
-
"never": [
|
|
21
|
-
"em dashes",
|
|
22
|
-
"start a reply with Great question",
|
|
23
|
-
"client names outside their folder"
|
|
24
|
-
],
|
|
25
|
-
"read_first": [
|
|
26
|
-
"USER.md",
|
|
27
|
-
"AGENT_ONBOARDING.md",
|
|
28
|
-
"notes/README.md",
|
|
29
|
-
"rules/",
|
|
30
|
-
"notes/decisions.md"
|
|
31
|
-
],
|
|
32
|
-
"notes_path": "notes",
|
|
33
|
-
"tracker": "a kanban board the AI reads and I move",
|
|
34
|
-
"write_policy": "notes-freely",
|
|
35
|
-
"file_naming": "kebab-case",
|
|
36
|
-
"signature": "yes",
|
|
37
|
-
"off_limits": [
|
|
38
|
-
"health notes",
|
|
39
|
-
"the journal folder",
|
|
40
|
-
"signed contracts"
|
|
41
|
-
],
|
|
42
|
-
"always_ask": [
|
|
43
|
-
"delete",
|
|
44
|
-
"publish",
|
|
45
|
-
"send",
|
|
46
|
-
"spend",
|
|
47
|
-
"standing-rules"
|
|
48
|
-
],
|
|
49
|
-
"notes_tool": "obsidian",
|
|
50
|
-
"obsidian_tc": "yes"
|
|
51
|
-
},
|
|
52
|
-
"installed": {
|
|
53
|
-
"CLAUDE.md": "4a303e42182c9affef6bcf14cd77045fae24f02ff8f1fef7e1f84e8c03aef2f2",
|
|
54
|
-
"AGENTS.md": "9cfedced547c961885e57814e3bc2f9122e16bfda2da0e5901dd61f3cf3f3bec",
|
|
55
|
-
"AGENT_ONBOARDING.md": "bd8681ae5c859c49f4c1ab3dbf51f7ac6241906931f7449f7fcf79234465249a"
|
|
56
|
-
}
|
|
57
|
-
}
|