dotai-cli 0.8.0__tar.gz → 0.9.0__tar.gz
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.
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/CHANGELOG.md +32 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/PKG-INFO +101 -67
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/PRODUCT.md +20 -6
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/README.md +100 -66
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/pyproject.toml +1 -1
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/__init__.py +1 -1
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/cli/__init__.py +57 -13
- dotai_cli-0.9.0/src/dotai/cli/agents_cmd.py +195 -0
- dotai_cli-0.9.0/src/dotai/cli/harvest_cmd.py +82 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/cli/rules_cmd.py +4 -2
- dotai_cli-0.9.0/src/dotai/harvest.py +187 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/maintenance.py +208 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/models.py +33 -0
- dotai_cli-0.9.0/src/dotai/projection.py +570 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/scope.py +10 -2
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/sync.py +1 -2
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/tools/registry.py +10 -2
- dotai_cli-0.9.0/tests/test_audit_evolution.py +103 -0
- dotai_cli-0.9.0/tests/test_harvest.py +109 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_init.py +1 -1
- dotai_cli-0.9.0/tests/test_projection.py +252 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/uv.lock +1 -1
- dotai_cli-0.8.0/src/dotai/cli/agents_cmd.py +0 -109
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/.github/workflows/ci.yml +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/.github/workflows/publish.yml +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/.gitignore +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/LICENSE +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/rdc.yaml +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/__main__.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/agents.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/catalog.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/cli/__main__.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/cli/insights_cmd.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/cli/migrate_cmd.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/cli/prefs_cmd.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/cli/roles_cmd.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/cli/skills_cmd.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/cli/sync_cmd.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/context.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/converter.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/import_agent.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/insights.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/migration.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/preferences.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/roles.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/rules.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/skills.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/store.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/tools/__init__.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/tools/base.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/utils.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/src/dotai/vet.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/__init__.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/conftest.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_agents.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_catalog.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_context.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_converter.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_evaluation_fixtures.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_import_agent.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_insights.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_maintenance.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_migration.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_models.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_preferences.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_roles.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_rules.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_skills.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_store.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_sync.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_utils.py +0 -0
- {dotai_cli-0.8.0 → dotai_cli-0.9.0}/tests/test_vet.py +0 -0
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.0 — 2026-11-25
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **Native multi-agent projection (`dotai agent setup <claude|codex|gemini|agents|all> --apply`)**:
|
|
8
|
+
Compiles `~/.ai/` rules, freeform notes, active general preferences, and native `SKILL.md`
|
|
9
|
+
packages directly into each harness's native user-level config directories—eliminating
|
|
10
|
+
mid-conversation CLI tool calls and preserving prompt caching:
|
|
11
|
+
- `claude`: projects `~/.claude/rules/dotai-*.md` with native `paths:` YAML frontmatter for
|
|
12
|
+
file-scoped rules, prunes stale managed files, and symlinks `SKILL.md` packages into
|
|
13
|
+
`~/.claude/skills/`.
|
|
14
|
+
- `codex`, `gemini`, `agents`: projects marker-managed blocks into `~/.codex/AGENTS.md`,
|
|
15
|
+
`~/.gemini/GEMINI.md`, and `~/.agents/AGENTS.md` plus `~/.agents/skills/` symlinks.
|
|
16
|
+
- **Auto-memory harvesting (`dotai harvest claude`)**: Read-only scanner for Claude Code's
|
|
17
|
+
`~/.claude/projects/*/memory/*.md` silos that filters out index links and already-covered
|
|
18
|
+
rules, with `--promote <N> [--dry-run]` to explicitly promote durable lessons into `~/.ai/rules/`.
|
|
19
|
+
- **Compliance, dead-glob, budget, and team-conflict auditing (`dotai audit --path .`)**:
|
|
20
|
+
Adds deterministic checks for `conditional-wording`, `rule-budget`, `dead-glob` (globs
|
|
21
|
+
matching zero files in a repo), and `team-conflict` / `team-overlap` against repository
|
|
22
|
+
`AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `.claude/rules/*.md`, `.cursor/rules/*.mdc`, and
|
|
23
|
+
`.github/copilot-instructions.md`.
|
|
24
|
+
- **Repository trust gate (`dotai trust`)**: Adds `trusted_paths` and `require_trust`
|
|
25
|
+
(`--strict on|off`) to protect against instruction-file poisoning in untrusted repositories.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- `dotai agent` defaults to `--mode native` across `claude`, `codex`, `gemini`, `agents`, and
|
|
30
|
+
`all`. Legacy Claude CLI self-invocation remains accessible via `--mode cli-bootstrap`.
|
|
31
|
+
- `dotai init` no longer scaffolds legacy `tools/` directories or advertises `tools/` in primers.
|
|
32
|
+
- `dotai.tools.registry.load_tools_from_file` now refuses to execute arbitrary Python modules
|
|
33
|
+
unless `allow_exec=True` is explicitly passed.
|
|
34
|
+
|
|
3
35
|
## 0.8.0 — 2026-11-07
|
|
4
36
|
|
|
5
37
|
### Product focus decision
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: dotai-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: Portable engineering judgment for coding agents
|
|
5
5
|
Project-URL: Homepage, https://github.com/dawalama/dotai
|
|
6
6
|
Project-URL: Repository, https://github.com/dawalama/dotai
|
|
@@ -33,22 +33,25 @@ Description-Content-Type: text/markdown
|
|
|
33
33
|
dotai carries your private engineering guidance across coding agents. Keep your standards, local constraints, preferences, and custom workflows in `~/.ai/`; dotai selects and returns only the guidance each task needs without taking ownership of team files.
|
|
34
34
|
|
|
35
35
|
```text
|
|
36
|
-
~/.ai/ ── dotai
|
|
37
|
-
│
|
|
38
|
-
|
|
36
|
+
~/.ai/ ── dotai agent setup all --apply ──→ ~/.claude/rules/ (native paths: globs) + ~/.claude/skills/
|
|
37
|
+
│ ──→ ~/.codex/AGENTS.md + ~/.gemini/GEMINI.md + ~/.agents/skills/
|
|
38
|
+
├── dotai harvest claude ──────────────← promote durable lessons from native auto-memory
|
|
39
|
+
└── dotai audit --path . ──────────────→ team-conflict, dead-glob & wording checks
|
|
39
40
|
```
|
|
40
41
|
|
|
41
|
-
Teach it once.
|
|
42
|
+
Teach it once. Project it natively into every agent. Keep team instructions authoritative. No server, account, extra LLM turns, or proprietary memory layer—just portable Markdown that you own.
|
|
42
43
|
|
|
43
44
|
## The short version
|
|
44
45
|
|
|
45
46
|
| You want to… | Use |
|
|
46
47
|
|---|---|
|
|
47
48
|
| Teach agents a standard, taste, or guardrail | `dotai learn --directive` |
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
|
|
|
49
|
+
| Project `~/.ai/` natively into Claude, Codex, Gemini, `~/.agents/` | `dotai agent setup all --apply` |
|
|
50
|
+
| Check whether projected agent configs are in sync | `dotai agent status all` |
|
|
51
|
+
| Harvest durable lessons from Claude Code auto-memory | `dotai harvest claude` |
|
|
52
|
+
| Audit rules for team conflicts, dead globs & weak wording | `dotai audit --path .` |
|
|
53
|
+
| Protect against untrusted repo `.ai/` instruction poisoning | `dotai trust --strict on` |
|
|
54
|
+
| Inspect/debug resolved context for specific files | `dotai context --path . --files ...` |
|
|
52
55
|
| Migrate legacy folder skills (`main.md`) or roles to `SKILL.md` | `dotai migrate` |
|
|
53
56
|
|
|
54
57
|
The default is personal and repository-safe. Team instructions stay authoritative.
|
|
@@ -184,56 +187,59 @@ are listed without their bodies; select one with `--domain cli`, or load a named
|
|
|
184
187
|
pack directly with `--with-prefs <id>` regardless of its domain. Explicit packs
|
|
185
188
|
remain subject to scope and enabled state.
|
|
186
189
|
|
|
187
|
-
###
|
|
190
|
+
### Native multi-agent projection (`claude`, `codex`, `gemini`, `agents`)
|
|
188
191
|
|
|
189
|
-
|
|
192
|
+
Instead of asking your agent to shell out to a CLI mid-conversation (which burns tool turns, breaks prompt caching, and relies on conditional prompt compliance), `dotai agent setup` **compiles and projects** `~/.ai/` directly into each tool's native user-level config directories—without modifying any Git repository:
|
|
190
193
|
|
|
191
194
|
```bash
|
|
192
|
-
# Preview
|
|
193
|
-
dotai agent setup
|
|
195
|
+
# Preview native projection across Claude Code, Codex, Gemini CLI, and ~/.agents/
|
|
196
|
+
dotai agent setup all
|
|
197
|
+
|
|
198
|
+
# Back up existing user files and apply
|
|
199
|
+
dotai agent setup all --apply
|
|
194
200
|
|
|
195
|
-
#
|
|
201
|
+
# Or target a single agent (claude | codex | gemini | agents)
|
|
196
202
|
dotai agent setup claude --apply
|
|
197
203
|
|
|
198
|
-
#
|
|
199
|
-
dotai agent status
|
|
204
|
+
# Check whether native targets are in sync with ~/.ai/
|
|
205
|
+
dotai agent status all
|
|
200
206
|
|
|
201
|
-
#
|
|
202
|
-
dotai agent
|
|
207
|
+
# Remove only dotai-managed files and blocks
|
|
208
|
+
dotai agent remove all --apply
|
|
203
209
|
```
|
|
204
210
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
211
|
+
What gets projected per target:
|
|
212
|
+
- **`claude`**: Compiles each enabled rule into `~/.claude/rules/dotai-<id>.md` using native `paths:` YAML frontmatter for file-scoped rules (universal rules omit `paths:`), projects `rules.md` and active general preferences, prunes stale dotai-managed files, and symlinks native `SKILL.md` folders into `~/.claude/skills/`.
|
|
213
|
+
- **`codex`**: Maintains a marker-managed block in `~/.codex/AGENTS.md` (preserving your existing instructions) and symlinks `SKILL.md` folders into `~/.agents/skills/`.
|
|
214
|
+
- **`gemini`**: Maintains a marker-managed block in `~/.gemini/GEMINI.md` and symlinks `SKILL.md` folders into `~/.agents/skills/`.
|
|
215
|
+
- **`agents`**: Maintains a marker-managed block in `~/.agents/AGENTS.md` and symlinks `SKILL.md` folders into `~/.agents/skills/`.
|
|
216
|
+
|
|
217
|
+
All previews are read-only by default; `--apply` backs up any modified existing files under `~/.config/dotai/backups/agents/`. Unmanaged user files and external symlinks are never touched.
|
|
210
218
|
|
|
211
|
-
|
|
212
|
-
marked provisional. Claude resolves again after discovering the affected
|
|
213
|
-
files. `dotai agent last claude` reports whether the latest resolution is
|
|
214
|
-
`provisional` or `resolved`, and whether file scope was provided or remains
|
|
215
|
-
unknown. Supplied files do not prove that every affected file was discovered.
|
|
219
|
+
> **Legacy CLI-pull mode:** If you prefer the older `~/.claude/CLAUDE.md` bootstrap that instructs Claude to invoke `dotai context`, pass `--mode cli-bootstrap` (e.g., `dotai agent remove claude --mode cli-bootstrap --apply` to clean up an older install). `dotai context --path . --files ...` remains available as a deterministic inspection and scripting tool.
|
|
216
220
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
dotai
|
|
221
|
+
### Harvesting lessons from native auto-memory
|
|
222
|
+
|
|
223
|
+
Coding agents like Claude Code accumulate per-project auto-memory silently under `~/.claude/projects/*/memory/`. Use `dotai harvest` to review those local notes (read-only), filter out index links and duplicates already in `~/.ai/rules/`, and explicitly promote durable lessons:
|
|
220
224
|
|
|
221
225
|
```bash
|
|
222
|
-
|
|
223
|
-
dotai
|
|
224
|
-
|
|
226
|
+
# Inspect candidate lessons from Claude Code auto-memory
|
|
227
|
+
dotai harvest claude
|
|
228
|
+
dotai harvest claude --project my-app
|
|
225
229
|
|
|
226
|
-
|
|
227
|
-
|
|
230
|
+
# Preview promoting candidate #1 into ~/.ai/rules/
|
|
231
|
+
dotai harvest claude --promote 1 --dry-run
|
|
228
232
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
233
|
+
# Save the promoted rule, then project it to all your agents
|
|
234
|
+
dotai harvest claude --promote 1
|
|
235
|
+
dotai agent setup all --apply
|
|
236
|
+
```
|
|
232
237
|
|
|
233
238
|
### Understanding what dotai selected and returned
|
|
234
239
|
|
|
235
|
-
|
|
236
|
-
dotai
|
|
240
|
+
When you resolve context explicitly via `dotai context --agent <name>` (or use the
|
|
241
|
+
legacy `--mode cli-bootstrap` adapter), `dotai insights` aggregates local resolution
|
|
242
|
+
receipts so you can see what dotai selected and returned over time:
|
|
237
243
|
|
|
238
244
|
```bash
|
|
239
245
|
dotai insights
|
|
@@ -255,35 +261,45 @@ History contains metadata only and is stored under
|
|
|
255
261
|
source contents, or credentials. History is bounded to the latest 500 receipts
|
|
256
262
|
per agent and never leaves the machine.
|
|
257
263
|
|
|
258
|
-
|
|
264
|
+
> **Note:** Native projection (`dotai agent setup ... --apply`) loads directly
|
|
265
|
+
> from each harness's native config without mid-conversation CLI calls, so it
|
|
266
|
+
> does not write resolution receipts—use `dotai agent status all` to verify sync.
|
|
267
|
+
> If you use the legacy Claude CLI-pull bootstrap and no receipt appears, refresh
|
|
268
|
+
> it and start a new Claude Code session:
|
|
259
269
|
|
|
260
270
|
```bash
|
|
261
|
-
dotai agent setup claude --apply
|
|
262
|
-
dotai agent status claude
|
|
271
|
+
dotai agent setup claude --mode cli-bootstrap --apply
|
|
272
|
+
dotai agent status claude --mode cli-bootstrap
|
|
263
273
|
```
|
|
264
274
|
|
|
265
|
-
|
|
266
|
-
`dotai` elsewhere on `PATH`. Receipt persistence is
|
|
267
|
-
directory is unavailable, Claude still receives
|
|
268
|
-
a warning instead of blocking the task.
|
|
275
|
+
Legacy `cli-bootstrap` setup pins the dotai executable used to install the
|
|
276
|
+
adapter, avoiding an older `dotai` elsewhere on `PATH`. Receipt persistence is
|
|
277
|
+
best-effort: if its local directory is unavailable, Claude still receives
|
|
278
|
+
resolved context and dotai emits a warning instead of blocking the task.
|
|
269
279
|
|
|
270
280
|
## Usage
|
|
271
281
|
|
|
272
282
|
### Daily workflow
|
|
273
283
|
|
|
284
|
+
With native projection configured, open Claude Code, Codex, or Gemini CLI and
|
|
285
|
+
work normally—your rules, notes, preferences, and skills load natively from
|
|
286
|
+
your user-level agent directories. Whenever you add or edit guidance in `~/.ai/`,
|
|
287
|
+
re-project it across all targets:
|
|
288
|
+
|
|
274
289
|
```bash
|
|
275
|
-
#
|
|
290
|
+
# Re-project updated ~/.ai/ guidance into your coding agents
|
|
291
|
+
dotai agent setup all --apply
|
|
292
|
+
dotai agent status all
|
|
293
|
+
|
|
294
|
+
# Optional: refresh local project context cache or print a portable primer
|
|
276
295
|
cd ~/my-project
|
|
277
296
|
dotai sync
|
|
278
|
-
|
|
279
|
-
# Print the context for an agent that uses portable CLI resolution
|
|
280
297
|
dotai primer --path .
|
|
281
298
|
```
|
|
282
299
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
apply. Use `dotai agent last claude` whenever you want to verify what was selected.
|
|
300
|
+
If you opt into the legacy `--mode cli-bootstrap` adapter for Claude Code, use
|
|
301
|
+
`dotai agent last claude` whenever you want to verify the most recent CLI
|
|
302
|
+
resolution receipt.
|
|
287
303
|
|
|
288
304
|
### Using skills
|
|
289
305
|
|
|
@@ -339,13 +355,32 @@ The loop: **teach or correct → review the structured rule → dotai resolves i
|
|
|
339
355
|
Knowledge gets noisy as it grows. `dotai audit` reviews the effective ruleset locally and deterministically—nothing is sent to an external model.
|
|
340
356
|
|
|
341
357
|
```bash
|
|
342
|
-
# Find weak,
|
|
358
|
+
# Find weak, conditional, generic, oversized, or overlapping rules
|
|
343
359
|
dotai audit
|
|
344
360
|
dotai audit --project my-app
|
|
345
361
|
|
|
362
|
+
# Also check for dead globs and contradictions with repo AGENTS.md / CLAUDE.md / .claude/rules/
|
|
363
|
+
dotai audit --path .
|
|
364
|
+
|
|
346
365
|
# Machine-readable output or a CI quality gate
|
|
347
|
-
dotai audit --json
|
|
348
|
-
dotai audit --fail-on high
|
|
366
|
+
dotai audit --path . --json
|
|
367
|
+
dotai audit --path . --fail-on high
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
When `--path` (or `--project`) is provided, `dotai audit` also checks:
|
|
371
|
+
- **`conditional-wording`**: flags hedged/conditional phrasing (*"if you are working on..."*, *"try to"*) that coding agents frequently skip, recommending direct prescriptions.
|
|
372
|
+
- **`dead-glob`**: flags file-scoped rules whose globs match zero files in the repository.
|
|
373
|
+
- **`team-conflict` / `team-overlap`**: reads repository team files (`AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `.claude/rules/*.md`, `.cursor/rules/*.mdc`, `.github/copilot-instructions.md`) and flags personal rules that overlap with or contradict authoritative team instructions.
|
|
374
|
+
- **`rule-budget`**: warns when active rule counts approach instruction-following ceilings.
|
|
375
|
+
|
|
376
|
+
### Guarding against untrusted repository `.ai/` files
|
|
377
|
+
|
|
378
|
+
Because cloned third-party repositories can include a `.ai/` directory (instruction-file poisoning), you can enable strict trust mode so unregistered repositories are ignored until explicitly trusted:
|
|
379
|
+
|
|
380
|
+
```bash
|
|
381
|
+
dotai trust --strict on
|
|
382
|
+
dotai trust ~/work/my-repo
|
|
383
|
+
dotai trust --list
|
|
349
384
|
```
|
|
350
385
|
|
|
351
386
|
The report includes stable finding codes, evidence, suggested actions, an estimated prompt-token cost, and a context-concentration summary showing which rules dominate the budget. Large-rule findings show the rule's share of total context, change risk, reviewable sections, and a conservative manual-savings range. Security and other high-consequence rules receive preservation-first guidance and are deliberately protected from “the model probably knows this” recommendations.
|
|
@@ -495,15 +530,12 @@ dotai init ~/other-project
|
|
|
495
530
|
│ ├── scripts/
|
|
496
531
|
│ ├── assets/
|
|
497
532
|
│ └── config.json
|
|
498
|
-
|
|
499
|
-
└── tools/ # Python tool implementations
|
|
500
|
-
└── *.py
|
|
533
|
+
└── roles/ # Transitional (legacy custom roles; migrate via dotai migrate)
|
|
501
534
|
|
|
502
535
|
<project>/.ai/ # Per-project overrides
|
|
503
536
|
├── rules.md # Project-specific rules and conventions
|
|
504
537
|
├── rules/ # Project-specific structured rules
|
|
505
|
-
|
|
506
|
-
└── tools/ # Project-specific tools
|
|
538
|
+
└── skills/ # Project-specific skills
|
|
507
539
|
```
|
|
508
540
|
|
|
509
541
|
## Skills
|
|
@@ -631,7 +663,7 @@ dotai context --path . --files src/app.tsx --context security
|
|
|
631
663
|
dotai context --path . --skill deploy
|
|
632
664
|
```
|
|
633
665
|
|
|
634
|
-
Use
|
|
666
|
+
Use native projection (`dotai agent setup all --apply`, or target `claude`, `codex`, `gemini`, or `agents` individually) for automatic user-level delivery. For other agents or custom scripts, paste or pipe `dotai primer --path .`, then use `dotai context` for task-specific expansion.
|
|
635
667
|
|
|
636
668
|
## Installing Skills
|
|
637
669
|
|
|
@@ -723,12 +755,14 @@ dotai roles # List legacy roles (transitional)
|
|
|
723
755
|
dotai migrate [--dry-run] [-p project] # Losslessly migrate legacy skills and roles
|
|
724
756
|
dotai skills [-c category] # List skills (optionally filter by category)
|
|
725
757
|
dotai sync [path] [--check] # Refresh safe local context
|
|
726
|
-
dotai agent setup|status|
|
|
727
|
-
dotai
|
|
758
|
+
dotai agent setup|status|remove <claude|codex|gemini|agents|all> [--apply] # Native user-level projection
|
|
759
|
+
dotai harvest [claude] [-p project] [--promote N] [--dry-run] # Curate lessons from native auto-memory
|
|
760
|
+
dotai trust [path] [--remove] [--list] [--strict on|off] # Guard against untrusted repo .ai/ dirs
|
|
761
|
+
dotai insights [--agent name] [-p project] [--json] # Local selection receipts (cli-bootstrap mode)
|
|
728
762
|
dotai primer [--project <name>|--path <path>] # Compact generic bootstrap
|
|
729
763
|
dotai context --path <path> [--task ...] [--files ...] [--context ...] [--domain ...] [--skill ...]
|
|
730
764
|
dotai rules [-p project] [-a] [--check] # List rules (or audit quality)
|
|
731
|
-
dotai audit [-p project] [--json] [--fail-on severity] # Read-only rule audit
|
|
765
|
+
dotai audit [-p project] [--path .] [--json] [--fail-on severity] # Read-only rule & team-conflict audit
|
|
732
766
|
dotai compress [-p project] [--json] # Plan compression candidates
|
|
733
767
|
dotai compress apply <proposal.json> [--yes] # Validate, back up, and apply proposals
|
|
734
768
|
dotai toggle <rule-id> --on/--off # Enable/disable rules globally or per-project
|
|
@@ -23,12 +23,12 @@ They should not need a platform, team rollout, or hosted memory service to get v
|
|
|
23
23
|
|
|
24
24
|
## Product loop
|
|
25
25
|
|
|
26
|
-
1. **Capture** a standard, preference, local constraint, or correction.
|
|
27
|
-
2. **Approve** what becomes durable developer knowledge
|
|
28
|
-
3. **
|
|
29
|
-
4. **
|
|
30
|
-
5. **
|
|
31
|
-
6. **
|
|
26
|
+
1. **Capture** a standard, preference, local constraint, or correction (`dotai learn` or `dotai harvest` from native agent auto-memory).
|
|
27
|
+
2. **Approve** what becomes durable developer knowledge in `~/.ai/`.
|
|
28
|
+
3. **Project** personal guidance into each coding agent's native user-level config (`~/.claude/rules/` with native `paths:` globs, `~/.claude/skills/`, `~/.codex/AGENTS.md`, `~/.gemini/GEMINI.md`, `~/.agents/`).
|
|
29
|
+
4. **Inspect** exact rule resolution on demand (`dotai context --path . --files ...`).
|
|
30
|
+
5. **Audit** knowledge for weak conditional wording, dead globs, rule-count budgets, and contradictions against repository team instructions (`dotai audit --path .`).
|
|
31
|
+
6. **Trust** repository `.ai/` directories explicitly when working in untrusted codebases (`dotai trust`).
|
|
32
32
|
7. **Retire** knowledge without losing control of its source or history.
|
|
33
33
|
|
|
34
34
|
## Product principles
|
|
@@ -70,6 +70,20 @@ dotai is not:
|
|
|
70
70
|
- A hosted vector database or production observability platform.
|
|
71
71
|
- A replacement for repository and organization policy.
|
|
72
72
|
|
|
73
|
+
## Product focus evolution (0.9.0)
|
|
74
|
+
|
|
75
|
+
In 0.9.0, dotai evolves from a runtime CLI-pull middleware into a **native personal-knowledge compiler, curator, and conflict auditor**:
|
|
76
|
+
|
|
77
|
+
- **Native multi-agent projection (`dotai agent setup <claude|codex|gemini|agents|all> --apply`):**
|
|
78
|
+
Compiles `~/.ai/` rules, notes, preferences, and native `SKILL.md` packages directly into each harness's native user-level surfaces (`~/.claude/rules/dotai-*.md` with native `paths:` frontmatter, `~/.claude/skills/`, `~/.codex/AGENTS.md`, `~/.gemini/GEMINI.md`, and `~/.agents/`). This eliminates extra LLM turns, preserves prompt caching, and delivers real multi-agent portability without touching repository files.
|
|
79
|
+
The legacy prompt-driven Claude CLI bootstrap remains available via `--mode cli-bootstrap` for backward compatibility, and `dotai context` remains the portable inspection/scripting resolver.
|
|
80
|
+
- **Auto-memory harvesting (`dotai harvest claude`):**
|
|
81
|
+
Turns siloed, silently accumulated agent auto-memory (`~/.claude/projects/*/memory/`) into a read-only candidate feed so developers can explicitly review and promote durable lessons into `~/.ai/rules/`.
|
|
82
|
+
- **Compliance & team-conflict auditing (`dotai audit --path .`):**
|
|
83
|
+
Flags weak conditional wording that agents frequently skip, file-scoped globs matching zero files in the current repo (`dead-glob`), rule-count attention ceilings (`rule-budget`), and personal rules that overlap with or contradict repository team instructions (`team-conflict` / `team-overlap`).
|
|
84
|
+
- **Repository trust gate (`dotai trust`) & retirement of `~/.ai/tools/`:**
|
|
85
|
+
Guards against instruction-file poisoning in untrusted repos via explicit `trusted_paths` / `--strict on`, stops scaffolding `~/.ai/tools/`, and disables automatic `exec_module` execution of untrusted Python tool files.
|
|
86
|
+
|
|
73
87
|
## Product focus decision (0.8.0)
|
|
74
88
|
|
|
75
89
|
As coding models and native agent harnesses improved, generic prompting layers aged rapidly.
|