-
Notifications
You must be signed in to change notification settings - Fork 3
Commands Reference
Every dotagent CLI command in one place. dotagent --help shows the
top-level list; this page goes deeper.
One-shot project setup. Zero prompts by default.
| Option | Default | Description |
|---|---|---|
--interactive |
false | Run the question-driven flow |
--no-llm |
false | Skip LLM drafting (use scaffold defaults) |
--no-hooks |
false | Skip installing git hooks |
--no-ingest |
false | Skip parsing existing CLAUDE.md / .cursorrules / etc. |
--dry-run |
false | Stop after discovery, write nothing |
Re-index docs/, rebuild context, regenerate every adapter.
| Option | Description |
|---|---|
--no-hooks |
Skip re-installing git hooks |
--no-reindex |
Use cached entries (skip docs/ re-parse) |
--dry-run |
Show unified diff vs on-disk; write nothing |
Compact summary: identity, adapters, indexed sources, memory counts, active sessions.
Self-check for common misconfigurations. Exits nonzero on fail.
Print the merged Context an AI agent sees. --format markdown is the full
body that ends up in CLAUDE.md; --format json is for tooling.
Append an event to episodic memory + update working memory. Used by hooks.
| Option | Description |
|---|---|
--tool |
AI tool driving the event (default: cli) |
--summary |
One-line description |
--files |
Newline- or comma-separated file list |
--sha |
Commit SHA, if applicable |
--session |
Session id (auto-generated if blank) |
Re-parse every configured source under docs/. Updates cache + pointer cards.
Rebuild the SQLite event index from JSONL. Run if who/activity/etc.
seem stale or empty.
Print the dotagent attribution trailer (used by prepare-commit-msg hook).
Lossless Claude-Code-Optimization migrator. See Migrating from Claude-Code-Optimization.
Restore a pre-dotagent AI-tool config from its .agent/.imported/ backup.
Print the active actor (resolved from ~/.config/dotagent/identity.yaml →
git config → OS user).
Save your identity globally to ~/.config/dotagent/identity.yaml.
| Option | Description |
|---|---|
--id |
Slug used as actor id (default: derived from email) |
--name |
Display name |
--email |
Add to emails list |
--github |
GitHub handle |
--gitlab |
GitLab handle |
--default-tool |
claude_code / cursor / copilot / opencode |
--role |
contributor / lead / etc. |
Who touched a file (or worked on a rule) and with which AI tool.
Filtered event feed.
| Option | Default | Description |
|---|---|---|
--since |
7d |
Lookback window: 7d / 24h / 30m / ISO datetime |
--by |
(any) | Filter by actor id |
--tool |
(any) | Filter by AI tool |
--kind |
(any) | Filter by event kind |
--limit |
50 | Max rows |
Per-file edit timeline, newest first.
Chronological team-wide event stream.
Per-actor activity counts: events / commits / graduations.
List every skill found in .agent/skills/*.md.
Print the resolved system + user prompts for a skill. No LLM call.
Run a skill. Without ANTHROPIC_API_KEY set, returns the resolved prompt.
Chain skills — each output becomes the next's prior_output.
List the four built-in tools.
Run Python AST + JS/TS import scan. --write emits semantic-pattern entries.
Search across episodic / semantic / sources / personal. --summary for
store-level counts.
Match a stack trace against episodic memory + bug-registry.
Synthesize a pre-deploy gate from rules.md + bug-registry + recent reverts/fixes.
Extract signals from episodic memory, write candidates.
| Option | Default | Description |
|---|---|---|
--since |
30d |
Lookback window |
--min-cluster-size |
3 | Min events to form a signal |
--no-embeddings |
false | Disable embedding clusters even if [ml] installed |
--quiet |
false | Suppress per-signal output |
List pending candidates awaiting review.
Promote a candidate to a graduated semantic rule. Rationale is mandatory.
Reject a candidate. Rationale is mandatory.
Install a per-repo crontab entry.
Remove the dotagent dream cron entry for this repo.
Write a .github/workflows/dotagent-dream.yml template.
Foreground file-watcher for Cursor < 0.40. Requires pip install 'dotagent[watch]'.
Run the centralized event server. Requires pip install 'dotagent[server]'.
| Option | Default | Description |
|---|---|---|
--host |
127.0.0.1 |
Bind address |
--port |
9700 |
Bind port |
--db |
~/.local/share/dotagent/server.sqlite |
SQLite path |
--bootstrap-admin-token |
(auto) | Pre-seed an admin token |
| Var | Purpose |
|---|---|
ANTHROPIC_API_KEY |
LLM-backed drafting + skill run
|
DOTAGENT_DEBUG=1 |
Surface silenced exceptions to stderr |
XDG_CONFIG_HOME |
Override ~/.config location for identity.yaml
|
Repo · Issues · Changelog · License: MIT