-
Notifications
You must be signed in to change notification settings - Fork 3
Getting Started
dotagent is a single binary. You install it once per machine and run
dotagent init once per project. That's the whole onboarding.
pipx install "git+https://github.com/dilawarabbas1/dotagent"Confirm:
dotagent --version
# dotagent, version 0.2.0If pipx isn't installed: python3 -m pip install --user pipx && pipx ensurepath.
dotagent identity set --id "$(git config user.email | cut -d@ -f1)" \
--name "$(git config user.name)" \
--email "$(git config user.email)"This writes ~/.config/dotagent/identity.yaml. Every project on your
machine uses the same identity. Teammates each set their own.
cd ~/code/your-project
dotagent init # zero prompts; ~5 secondsWhat init does, in order:
- Discovery — detects languages, frameworks, lint config, CI, existing AI-tool configs, Claude-Code-Optimization assets.
-
Ingest — if
CLAUDE.md/.cursorrules/ etc. already exist, parses them and routes H2 sections into.agent/{style,rules,architecture,patterns,preferences}.md. -
LLM draft (skip with
--no-llm) — ifANTHROPIC_API_KEYis set, drafts the five.agent/*.mdfiles from discovery + README. -
Identity — resolves the actor from
~/.config/dotagent/identity.yaml. -
Scaffold — writes the canonical
.agent/tree. -
Index
docs/— parsesdocs/bug-registry.md,docs/anti-patterns.md, etc. (configurable; see Sources and Docs). -
Render adapters — generates
CLAUDE.md,.cursorrules,.github/copilot-instructions.md,AGENTS.mdfrom the merged Context. Existing files are backed up to.agent/.imported/<file>.originalbefore being replaced (one-time backup; subsequentsyncruns don't re-overwrite the backup). -
Install hooks — git pre-commit / post-commit / prepare-commit-msg, and
Claude Code
.claude/hooks/post-tool.sh.
dotagent doctorEach check reports ok / warn / fail / info. Exits nonzero on any
fail. Run this first whenever something seems off.
dotagent context # summary
dotagent context --format markdown | less # full body
cat CLAUDE.md | head -80 # the actual file the AI readsgit status # see what dotagent added
git add .agent/ CLAUDE.md .cursorrules .github/copilot-instructions.md \
AGENTS.md .claude/hooks/post-tool.sh
# (skip files that don't exist; the above lists every possible adapter output)
git commit -m "chore: add dotagent context"You're done. Open the repo in Claude Code (or Cursor, or VS Code with Copilot) and the AI agent has the full project context.
# after editing docs/*.md or .agent/*.md:
dotagent sync # regenerate every adapter
dotagent sync --dry-run # see what would change
# during a coding session:
dotagent context # confirm the agent sees current state
dotagent who --file <path> # who/what touched a file
# weekly:
dotagent dream run --since 30d # extract patterns
dotagent dream list # review candidatesAfter you push the initial commit, each teammate runs:
pipx install "git+https://github.com/dilawarabbas1/dotagent"
git pull
cd <project>
dotagent identity set --id ... --name ... --email ...
dotagent sync # personalizes adapters; installs hooksNow their CLAUDE.md will include their personal preferences (from
.agent/memory/personal/<their-id>/profile.yaml) — not yours.
- Architecture — see the full picture
-
Sources and Docs — wire your existing
docs/*.mdas the source of truth - Commands Reference — every CLI command in one place
Repo · Issues · Changelog · License: MIT