agent-personalizer 0.8.5 → 0.8.7
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 +15 -1
- package/README.md +5 -3
- package/bin/agent-personalizer.js +4 -3
- package/bin/global.cjs +10 -5
- package/docs/install.md +3 -3
- package/docs/paste-guide.md +2 -1
- package/examples/freelance-illustrator/.agent-personalizer.json +1 -1
- package/examples/freelance-illustrator/AGENT_ONBOARDING.md +1 -1
- package/hooks/README.md +1 -1
- package/llms.txt +3 -1
- package/package.json +2 -2
- package/render/onboarding.cjs +1 -1
- package/render/render.cjs +2 -2
- package/render/targets.json +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,18 @@ Every entry names the adversarial audit round that produced it where one did. Au
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.8.7] - 2026-11-03
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Name Hermes Agent among the supported AIs in the package description, README, llms.txt, the skill description and the project page.
|
|
14
|
+
|
|
15
|
+
## [0.8.6] - 2026-11-03
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Add Hermes Agent as a global target with a marked block in `~/.hermes/SOUL.md`; project installs use the `agents` target.
|
|
20
|
+
|
|
9
21
|
## [0.8.5] - 2026-10-29
|
|
10
22
|
|
|
11
23
|
### Fixed
|
|
@@ -347,7 +359,9 @@ Thirteen issues (#3 to #15) filed against `5972b32` by an independent installati
|
|
|
347
359
|
- Installer: safe destination resolution, strict options, duplicate `--ai` refused, `--dir` created one level at a time.
|
|
348
360
|
- Harness: exact exit codes, adversarial fixtures, fault injection for the rollback path.
|
|
349
361
|
|
|
350
|
-
[Unreleased]: https://github.com/aunysillyme/agent-personalizer/compare/v0.8.
|
|
362
|
+
[Unreleased]: https://github.com/aunysillyme/agent-personalizer/compare/v0.8.7...HEAD
|
|
363
|
+
[0.8.7]: https://github.com/aunysillyme/agent-personalizer/compare/v0.8.6...v0.8.7
|
|
364
|
+
[0.8.6]: https://github.com/aunysillyme/agent-personalizer/compare/v0.8.5...v0.8.6
|
|
351
365
|
[0.8.5]: https://github.com/aunysillyme/agent-personalizer/compare/v0.8.4...v0.8.5
|
|
352
366
|
[0.8.4]: https://github.com/aunysillyme/agent-personalizer/compare/v0.8.3...v0.8.4
|
|
353
367
|
[0.8.3]: https://github.com/aunysillyme/agent-personalizer/compare/v0.8.2...v0.8.3
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/agent-personalizer) [](https://github.com/aunysillyme/agent-personalizer/actions/workflows/harness.yml) [](https://github.com/aunysillyme/agent-personalizer/blob/main/CHANGELOG.md) [](LICENSE) [](https://scorecard.dev/viewer/?uri=github.com/aunysillyme/agent-personalizer)
|
|
4
4
|
|
|
5
|
-
**Every AI you use gets the same profile and the rules it can carry:** Claude Code, Codex, Cursor, Gemini CLI and ChatGPT, rendered from one source and kept in sync.
|
|
5
|
+
**Every AI you use gets the same profile and the rules it can carry:** Claude Code, Codex, Cursor, Gemini CLI, Hermes Agent and ChatGPT, rendered from one source and kept in sync.
|
|
6
6
|
|
|
7
7
|
**The problem:** Custom instructions live in each app separately, drift apart and fade over a long chat.
|
|
8
8
|
|
|
@@ -56,6 +56,8 @@ File generation, re-runs and uninstall run in CI on Linux, macOS and Windows; yo
|
|
|
56
56
|
| [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 |
|
|
57
57
|
| [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. |
|
|
58
58
|
| [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. |
|
|
59
|
+
| [lean-browser-use](https://github.com/aunysillyme/lean-browser-use) | Cut browser use cost by about 25% in Claude Code: fresh runner subagent, bulk reads, three guards and a token meter. One npx command |
|
|
60
|
+
| [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 |
|
|
59
61
|
<!-- set:end -->
|
|
60
62
|
|
|
61
63
|
## Choose your setup
|
|
@@ -77,10 +79,10 @@ npx agent-personalizer --dir . --ai claude,agents --level 1 --yes --defaults
|
|
|
77
79
|
For every project, install one global level-1 profile:
|
|
78
80
|
|
|
79
81
|
```bash
|
|
80
|
-
npx agent-personalizer --global --ai claude,agents,gemini --yes
|
|
82
|
+
npx agent-personalizer --global --ai claude,agents,gemini,hermes --yes
|
|
81
83
|
```
|
|
82
84
|
|
|
83
|
-
The source lives in `~/.agent-personalizer/`; marked blocks go to `~/.claude/CLAUDE.md`, `~/.codex/AGENTS.md` and `~/.
|
|
85
|
+
The source lives in `~/.agent-personalizer/`; marked blocks go to `~/.claude/CLAUDE.md`, `~/.codex/AGENTS.md`, `~/.gemini/GEMINI.md` and `~/.hermes/SOUL.md` for the selected targets. User text outside the blocks stays byte for byte. For Hermes in a project, use `--ai agents` for `AGENTS.md`. `--global` supports these four targets and level 1; it excludes `--dir`. Re-run with `--global`, learn across all projects with `learn --global`, and remove owned global content with `--global --uninstall`. See [global installation](docs/install.md#every-project-with-one-profile).
|
|
84
86
|
|
|
85
87
|
Levels 1 and 2 carry the Core 5: read the profile first, evidence before assertion, output style, act or ask, and ask before it repeats. Level 3 retains all eleven, with each target's existing surface and signature selection.
|
|
86
88
|
|
|
@@ -24,7 +24,7 @@ const onboarding = require(path.join(PKG, 'render', 'onboarding.cjs'));
|
|
|
24
24
|
const markers = require(path.join(PKG, 'render', 'render.cjs')); // markerState, for the preflight; render.cjs runs nothing on require
|
|
25
25
|
const { installPlan, validateInventory, knownVersions, ownership, migrateHome, recordedHash } = require('./install-plan.cjs');
|
|
26
26
|
const AIS = ['claude', 'agents', 'gemini', 'chatgpt', 'prompt'];
|
|
27
|
-
const AI_LABEL = { claude: 'Claude (Claude Code, Claude apps)', agents: 'Codex / Cursor / anything that reads AGENTS.md', gemini: 'Gemini', chatgpt: 'ChatGPT custom instructions', prompt: 'a plain system prompt (shareable, no profile)' };
|
|
27
|
+
const AI_LABEL = { claude: 'Claude (Claude Code, Claude apps)', agents: 'Codex / Cursor / Hermes / anything that reads AGENTS.md', gemini: 'Gemini', chatgpt: 'ChatGPT custom instructions', prompt: 'a plain system prompt (shareable, no profile)' };
|
|
28
28
|
|
|
29
29
|
let committing = false;
|
|
30
30
|
function die(msg) { if (committing) throw new markers.Refusal(msg); console.error(`agent-personalizer: ${msg}`); process.exit(2); }
|
|
@@ -36,7 +36,7 @@ const USAGE = `agent-personalizer ${require(path.join(PKG, 'package.json')).vers
|
|
|
36
36
|
npx agent-personalizer [--dir <folder>] [--ai claude,agents,gemini,chatgpt,prompt] [--level 1|2|3]
|
|
37
37
|
[--answers <file.json> | --answers - | --defaults] [--full] [--yes]
|
|
38
38
|
[--help | -h] [--version | -v]
|
|
39
|
-
npx agent-personalizer --global [--ai claude,agents,gemini] [--yes]
|
|
39
|
+
npx agent-personalizer --global [--ai claude,agents,gemini,hermes] [--yes]
|
|
40
40
|
npx agent-personalizer --global --uninstall [--dry]
|
|
41
41
|
npx agent-personalizer --uninstall --dir <folder> [--dry]
|
|
42
42
|
|
|
@@ -143,7 +143,7 @@ function readConfig(root, level) {
|
|
|
143
143
|
if (!cfg || typeof cfg !== 'object' || Array.isArray(cfg)) die('.agent-personalizer.json must be an object');
|
|
144
144
|
if ('targets' in cfg) {
|
|
145
145
|
if (!Array.isArray(cfg.targets)) die('.agent-personalizer.json "targets" must be a list');
|
|
146
|
-
const KNOWN = [...AIS, 'onboarding'];
|
|
146
|
+
const KNOWN = [...AIS, 'hermes', 'onboarding'];
|
|
147
147
|
const bad = cfg.targets.filter(t => !KNOWN.includes(t));
|
|
148
148
|
if (bad.length) die(`.agent-personalizer.json lists unknown target(s): ${bad.join(', ')} (known: ${KNOWN.join(', ')}); fix or remove them`);
|
|
149
149
|
if (new Set(cfg.targets).size !== cfg.targets.length) die('.agent-personalizer.json lists a target twice');
|
|
@@ -252,6 +252,7 @@ async function commitPlan(root, { writes, removals = [], outputPaths, prepare, f
|
|
|
252
252
|
|
|
253
253
|
async function main() {
|
|
254
254
|
if (ARGS['--global']) return require('./global.cjs').run({ args: ARGS, commitPlan, probe, readConfig, ask });
|
|
255
|
+
if (ARGS['--ai'] && ARGS['--ai'].split(',').some(t => t.trim() === 'hermes')) die('Hermes reads AGENTS.md inside a project; use --ai agents (or --global --ai hermes for every Hermes session).');
|
|
255
256
|
if (ARGS.command === 'learn') {
|
|
256
257
|
for (const opt of ['--ai', '--level', '--answers', '--defaults', '--quick', '--full', '--uninstall', '--dry'])
|
|
257
258
|
if (opt in ARGS) die(`${opt} is not a learn option`);
|
package/bin/global.cjs
CHANGED
|
@@ -8,7 +8,7 @@ const onboarding = require('../render/onboarding.cjs');
|
|
|
8
8
|
const { sha256, validateInventory } = require('./install-plan.cjs');
|
|
9
9
|
const SOURCE = '.agent-personalizer';
|
|
10
10
|
const CONFIG = `${SOURCE}/.agent-personalizer.json`;
|
|
11
|
-
const TARGETS = { claude: '.claude/CLAUDE.md', agents: '.codex/AGENTS.md', gemini: '.gemini/GEMINI.md' };
|
|
11
|
+
const TARGETS = { claude: '.claude/CLAUDE.md', agents: '.codex/AGENTS.md', gemini: '.gemini/GEMINI.md', hermes: '.hermes/SOUL.md' };
|
|
12
12
|
const HASH = /^[a-f0-9]{64}$/;
|
|
13
13
|
const refuse = message => { throw new renderer.Refusal(message); };
|
|
14
14
|
|
|
@@ -29,7 +29,7 @@ function validateGlobal(cfg) {
|
|
|
29
29
|
if (!Object.hasOwn(TARGETS, key) || !info || typeof info.created !== 'boolean' || !HASH.test(info.blockHash) || !HASH.test(info.fileHash)
|
|
30
30
|
|| !['', '\n', '\n\n'].includes(info.separator) || typeof info.appended !== 'boolean') refuse('invalid global target ownership');
|
|
31
31
|
}
|
|
32
|
-
if (cfg.globalDirectories !== undefined && (!Array.isArray(cfg.globalDirectories) || cfg.globalDirectories.some(rel => ![SOURCE, '.claude', '.codex', '.gemini'].includes(rel)))) refuse('invalid global directory inventory');
|
|
32
|
+
if (cfg.globalDirectories !== undefined && (!Array.isArray(cfg.globalDirectories) || cfg.globalDirectories.some(rel => ![SOURCE, '.claude', '.codex', '.gemini', '.hermes'].includes(rel)))) refuse('invalid global directory inventory');
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
async function run({ args, commitPlan, probe, readConfig, ask }) {
|
|
@@ -67,10 +67,10 @@ async function execute({ args, commitPlan, probe, readConfig, ask }) {
|
|
|
67
67
|
const interactive = !!process.stdin.isTTY && !args['--yes'];
|
|
68
68
|
if (!stored.cfgExists && !interactive && (!args['--yes'] || !args['--ai'])) refuse('non-interactive --global needs --ai and --yes');
|
|
69
69
|
let ais = args['--ai'] || (stored.cfgExists ? stored.cfg.targets.filter(t => t !== 'onboarding').join(',') : 'claude,agents');
|
|
70
|
-
if (interactive && !stored.cfgExists) ais = await ask('Global AIs (claude,agents,gemini)', ais);
|
|
70
|
+
if (interactive && !stored.cfgExists) ais = await ask('Global AIs (claude,agents,gemini,hermes)', ais);
|
|
71
71
|
const targets = ais.split(',').map(s => s.trim()).filter(Boolean);
|
|
72
72
|
if (!targets.length || new Set(targets).size !== targets.length) refuse('choose each global AI once');
|
|
73
|
-
for (const key of targets) if (!Object.hasOwn(TARGETS, key)) refuse(`--global supports only claude, agents and
|
|
73
|
+
for (const key of targets) if (!Object.hasOwn(TARGETS, key)) refuse(`--global supports only claude, agents, gemini and hermes (unsupported target: ${key})`);
|
|
74
74
|
if (args['--answers'] && args['--defaults']) refuse('--answers and --defaults are exclusive');
|
|
75
75
|
let answers = stored.prevAnswers || onboarding.defaults();
|
|
76
76
|
if (args['--answers']) {
|
|
@@ -139,10 +139,15 @@ async function execute({ args, commitPlan, probe, readConfig, ask }) {
|
|
|
139
139
|
const outputPaths = new Set([CONFIG, ...writes.map(p => p.rel)]);
|
|
140
140
|
await commitPlan(root, { writes, outputPaths,
|
|
141
141
|
prepare(newDirectories) {
|
|
142
|
-
cfg.globalDirectories = [...new Set([...(old.globalDirectories || []), ...[...newDirectories].filter(rel => [SOURCE, '.claude', '.codex', '.gemini'].includes(rel))])].sort();
|
|
142
|
+
cfg.globalDirectories = [...new Set([...(old.globalDirectories || []), ...[...newDirectories].filter(rel => [SOURCE, '.claude', '.codex', '.gemini', '.hermes'].includes(rel))])].sort();
|
|
143
143
|
writes.push({ rel: CONFIG, bytes: Buffer.from(JSON.stringify(cfg, null, 2) + '\n') });
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
|
+
if (targets.includes('hermes') && process.env.HERMES_HOME) {
|
|
147
|
+
let hermesHome = path.resolve(process.env.HERMES_HOME);
|
|
148
|
+
try { hermesHome = fs.realpathSync(hermesHome); } catch (_) {}
|
|
149
|
+
if (hermesHome !== path.join(root, '.hermes')) console.warn('Warning: Hermes reads SOUL.md from HERMES_HOME; the block was written to ~/.hermes/SOUL.md.');
|
|
150
|
+
}
|
|
146
151
|
if (learnRequested) await require('./learn.cjs').learn({ dir: profileRoot, consented: true, allProjects: true });
|
|
147
152
|
console.log(`Global profile installed. Re-run with --global after editing ${profileRoot}.`);
|
|
148
153
|
}
|
package/docs/install.md
CHANGED
|
@@ -65,7 +65,7 @@ Use [`examples/answers.json`](../examples/answers.json) as a complete example, i
|
|
|
65
65
|
| Flag | Purpose |
|
|
66
66
|
|---|---|
|
|
67
67
|
| `--dir <folder>` | Destination folder; prompted in interactive mode. |
|
|
68
|
-
| `--global` | Apply a level-1 profile across projects through Claude Code, Codex
|
|
68
|
+
| `--global` | Apply a level-1 profile across projects through Claude Code, Codex, Gemini CLI and Hermes Agent home files. Excludes `--dir` and levels 2/3. |
|
|
69
69
|
| `--ai claude,agents,gemini,chatgpt,prompt` | Comma-separated targets. Choose the ones you use. |
|
|
70
70
|
| `--level 1`, `--level 2`, `--level 3` | Profile and home files; add local notes; add editable rules and mechanisms. |
|
|
71
71
|
| `--answers <file.json>` or `--answers -` | Set onboarding answers without questions. |
|
|
@@ -84,14 +84,14 @@ Installer exit codes: `0` completed, `1` unexpected error, `2` refused or invali
|
|
|
84
84
|
## Every project with one profile
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
npx agent-personalizer --global --ai claude,agents,gemini --yes
|
|
87
|
+
npx agent-personalizer --global --ai claude,agents,gemini,hermes --yes
|
|
88
88
|
npx agent-personalizer --global
|
|
89
89
|
npx agent-personalizer learn --global --yes
|
|
90
90
|
npx agent-personalizer --global --uninstall --dry
|
|
91
91
|
npx agent-personalizer --global --uninstall
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
`--global` keeps the level-1 profile source (`USER.md`, `LEARNED.md`, onboarding and configuration) in `~/.agent-personalizer/`. It writes a marked block to `~/.claude/CLAUDE.md`, `~/.codex/AGENTS.md` and `~/.
|
|
94
|
+
`--global` keeps the level-1 profile source (`USER.md`, `LEARNED.md`, onboarding and configuration) in `~/.agent-personalizer/`. It writes a marked block to `~/.claude/CLAUDE.md`, `~/.codex/AGENTS.md`, `~/.gemini/GEMINI.md` and `~/.hermes/SOUL.md` for the selected targets. For Hermes in a project, use `--ai agents` to write `AGENTS.md`. Hermes reads its global `SOUL.md` from `HERMES_HOME` when set; the installer warns if that differs from `~/.hermes`. Paths use `HOME`, with `USERPROFILE` as the Windows fallback when `HOME` is missing or empty. The selected value must be a non-empty absolute path. Global instructions name the profile's full path so they work from any project. Start a new AI session to load them; client instruction precedence still applies.
|
|
95
95
|
|
|
96
96
|
Select only `claude`, `agents` and `gemini`. Other targets, `--dir` and levels 2/3 are refused. A headless first install needs `--ai` and `--yes`; level 1 is implicit. `--answers` and `--defaults` work as with project installs. A re-run keeps saved targets and answers.
|
|
97
97
|
|
package/docs/paste-guide.md
CHANGED
|
@@ -8,10 +8,11 @@ The renderer writes one file per AI. This page says where each AI reads it, and
|
|
|
8
8
|
| `AGENT_ONBOARDING.md` | any AI | Named as the second thing to read in `CLAUDE.md` and `AGENTS.md`. Paste it wherever the AI has no file access (below). |
|
|
9
9
|
| `AGENTS.md` | Codex CLI, Cursor, and other agents that adopted the AGENTS.md convention | Automatically, from the repository root; `--global` writes `~/.codex/AGENTS.md` for all projects. Nothing to paste. |
|
|
10
10
|
| `GEMINI.md` | Gemini CLI | Automatically, from the folder; `--global` writes `~/.gemini/GEMINI.md` for all projects. Nothing to paste. |
|
|
11
|
+
| `SOUL.md` | Hermes Agent | `--global --ai hermes` appends a marked block to `~/.hermes/SOUL.md`. In a project, use `--ai agents` for `AGENTS.md`. A different `HERMES_HOME` changes where Hermes reads the global file. |
|
|
11
12
|
| `chatgpt-box1.txt`, `chatgpt-box2.txt` and `chatgpt-custom-instructions.md` | ChatGPT | Profile and response text to paste, with a preview and counts. |
|
|
12
13
|
| `system-prompt.md` | anything with a system-prompt field, shared bots, API calls | Paste as the system prompt. Universal rules only, no profile, safe to share. |
|
|
13
14
|
|
|
14
|
-
Use `npx agent-personalizer --global --ai claude,agents,gemini --yes` for one profile across projects. Its source lives in `~/.agent-personalizer/`; re-run with `--global` after editing it and start a new client session. Global mode accepts
|
|
15
|
+
Use `npx agent-personalizer --global --ai claude,agents,gemini,hermes --yes` for one profile across projects. Its source lives in `~/.agent-personalizer/`; re-run with `--global` after editing it and start a new client session. Global mode accepts these four targets and level 1, excludes `--dir`, preserves text outside its markers and supports `--global --uninstall`. See [global installation](install.md#every-project-with-one-profile).
|
|
15
16
|
|
|
16
17
|
---
|
|
17
18
|
|
|
@@ -52,6 +52,6 @@
|
|
|
52
52
|
"installed": {
|
|
53
53
|
"CLAUDE.md": "4a303e42182c9affef6bcf14cd77045fae24f02ff8f1fef7e1f84e8c03aef2f2",
|
|
54
54
|
"AGENTS.md": "9cfedced547c961885e57814e3bc2f9122e16bfda2da0e5901dd61f3cf3f3bec",
|
|
55
|
-
"AGENT_ONBOARDING.md": "
|
|
55
|
+
"AGENT_ONBOARDING.md": "88f5ec7bdc9e5aa60d6685c0452046ec70f25ab8957457a28242e433d61cedbc"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -34,7 +34,7 @@ _Generated by agent-personalizer from your saved preferences (stored in `.agent-
|
|
|
34
34
|
|
|
35
35
|
### Where you may write
|
|
36
36
|
|
|
37
|
-
- **Notes live in Obsidian:** reach them as the vault at `notes/`, through **obsidian-tc** (governed MCP: folder ACLs, human-in-the-loop confirmation for destructive tools, audit log) rather than raw filesystem access; see https://github.com/aunysillyme/agent-personalizer/blob/v0.8.
|
|
37
|
+
- **Notes live in Obsidian:** reach them as the vault at `notes/`, through **obsidian-tc** (governed MCP: folder ACLs, human-in-the-loop confirmation for destructive tools, audit log) rather than raw filesystem access; see https://github.com/aunysillyme/agent-personalizer/blob/v0.8.7/docs/companions.md.
|
|
38
38
|
- You may create and edit files anywhere under `notes/`, under that folder's rules. Nowhere else without being asked.
|
|
39
39
|
- **Every folder you write into has a README.** Any write, edit or delete means that README is corrected in the same pass: the file's one-line description, the folder's status, settled decisions, next steps. A stale index is worse than none, because the next agent believes it.
|
|
40
40
|
- **Session log:** append a dated section to this week's note in `notes/sessions/`. **Decisions:** one line each in `notes/decisions.md`. **Inbox:** one file per item in `notes/inbox/`; finished items are deleted, not marked done.
|
package/hooks/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# hooks/
|
|
2
2
|
|
|
3
|
-
Tier 3 from the tiers doc (https://github.com/aunysillyme/agent-personalizer/blob/v0.8.
|
|
3
|
+
Tier 3 from the tiers doc (https://github.com/aunysillyme/agent-personalizer/blob/v0.8.7/docs/tiers.md): the few rules that must be in context at the moment of decision, injected in full at the start of every session. Injection puts the text in front of the model; whether the model follows it is up to the model and the host. This is the strongest placement available, not a guarantee.
|
|
4
4
|
|
|
5
5
|
Which rules? The ones with `inject: true` in their frontmatter. Keep that set small. Every injected rule costs tokens every session.
|
|
6
6
|
|
package/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# agent-personalizer
|
|
2
2
|
|
|
3
|
-
> Answer a few questions once, and every AI you use gets the same profile and the rules it can carry: Claude Code, Codex, Cursor, Gemini CLI and ChatGPT, rendered from one source and kept in sync.
|
|
3
|
+
> Answer a few questions once, and every AI you use gets the same profile and the rules it can carry: Claude Code, Codex, Cursor, Gemini CLI, Hermes Agent and ChatGPT, rendered from one source and kept in sync.
|
|
4
4
|
|
|
5
5
|
Install with `npx agent-personalizer`. Node 22 or 24 (active LTS) is recommended; 18 or later runs. Headless setup: `npx agent-personalizer --dir . --ai claude,agents --level 1 --yes --defaults`.
|
|
6
6
|
|
|
@@ -26,6 +26,8 @@ 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 by about 25% in Claude Code: fresh runner subagent, bulk reads, three guards and a token meter. One npx command
|
|
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
|
|
29
31
|
<!-- set:end -->
|
|
30
32
|
|
|
31
33
|
## Optional
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-personalizer",
|
|
3
|
-
"version": "0.8.
|
|
4
|
-
"description": "AI custom instructions from approved entries: a profile and rules for Claude Code, Codex, Cursor, Gemini CLI and ChatGPT, kept in sync from one source.",
|
|
3
|
+
"version": "0.8.7",
|
|
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",
|
|
7
7
|
"funding": "https://github.com/sponsors/aunysillyme",
|
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.8.
|
|
20
|
+
const VERSION = '0.8.7';
|
|
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
|
package/render/render.cjs
CHANGED
|
@@ -324,7 +324,7 @@ function renderRule(rule, target) {
|
|
|
324
324
|
stored answers (defaults when none are stored, so a rule set without saved answers still renders) */
|
|
325
325
|
function rulesFor(rules, key, answers) {
|
|
326
326
|
const a = answers || onboarding.defaults();
|
|
327
|
-
return rules.filter(r => (!Array.isArray(r.meta.surfaces) || r.meta.surfaces.includes(key))
|
|
327
|
+
return rules.filter(r => (!Array.isArray(r.meta.surfaces) || r.meta.surfaces.includes(key) || (key === 'hermes' && r.meta.surfaces.includes('agents')))
|
|
328
328
|
&& (!r.meta.requires || a[r.meta.requires.answer] === r.meta.requires.value));
|
|
329
329
|
}
|
|
330
330
|
const rulesAtLevel = (rules, cfg) => cfg && (cfg.level === 1 || cfg.level === 2) ? rules.filter(r => CORE_RULE_FILES.has(r.file)) : rules;
|
|
@@ -412,7 +412,7 @@ function renderTarget(key, target, profile, rules, cfg, root, learned) {
|
|
|
412
412
|
if (target.profile && profile) lines.push('## Profile', '', profile.body, '');
|
|
413
413
|
if (target.personal && target.profile) {
|
|
414
414
|
lines.push(onboarding.entriesBlock(learned), '', `_LEARNED.md source: ${learned.hash}_`, '');
|
|
415
|
-
if (['claude', 'agents', 'gemini'].includes(key)) lines.push(onboarding.learningProcedure(), '');
|
|
415
|
+
if (['claude', 'agents', 'gemini', 'hermes'].includes(key)) lines.push(onboarding.learningProcedure(), '');
|
|
416
416
|
}
|
|
417
417
|
lines.push('## Rules', '');
|
|
418
418
|
for (const r of rulesFor(rules, key, answers)) lines.push(renderRule(r, target), '');
|
package/render/targets.json
CHANGED
|
@@ -23,6 +23,14 @@
|
|
|
23
23
|
"profile": true,
|
|
24
24
|
"header": "Rendered instructions for Gemini"
|
|
25
25
|
},
|
|
26
|
+
"hermes": {
|
|
27
|
+
"file": "SOUL.md",
|
|
28
|
+
"binding": "hermes",
|
|
29
|
+
"personal": true,
|
|
30
|
+
"origin": true,
|
|
31
|
+
"profile": true,
|
|
32
|
+
"header": "Rendered instructions for Hermes Agent"
|
|
33
|
+
},
|
|
26
34
|
"chatgpt": {
|
|
27
35
|
"file": "chatgpt-custom-instructions.md",
|
|
28
36
|
"binding": "chatgpt",
|