Dogent is a CLI agent focused on local document writing, built on the Claude Agent SDK.
Unlike Claude Code, which targets coding tasks, Dogent provides writing-specific system prompts and document templates, supports multi-format document processing and export, offers a CLI experience optimized for document workflows, and includes state management plus continuous improvement features. It remains compatible with the Claude ecosystem to cover a wide range of local writing scenarios, making AI-assisted document authoring simpler and more efficient.
Requires Python 3.10+. A virtual environment is recommended.
# Get the source
git clone https://github.com/MagicBowen/dogent
cd dogent
# Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate
# Install (editable)
pip install -e .
# Verify
dogent -vDownload the latest wheel from https://github.com/MagicBowen/dogent/releases.
# Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate
# Install the wheel
pip install /path/to/dogent-0.9.20-py3-none-any.whl
# Verify
dogent -vEnter a workspace directory and start Dogent:
> cd /path/to/your/workspace
> dogentInside the interactive session, you can initialize the workspace with /init or start writing immediately:
dogent> Use template @@built-in:technical_blog to write a technical blog about github/MagicBowen/dogentIn interactive mode:
- Type
@to reference files in the workspace. - Type
@@to reference available document templates. - Press Enter to submit; Dogent will plan the task and generate content.
- Press
Escto interrupt and provide more info or adjust requirements.
For multi-line input, press Ctrl+E to open the CLI markdown editor, then press Ctrl+J to submit.
Use /help for help and /exit to quit.
Complete documentation lives in docs/ (recommended reading order):
- docs/01-quickstart.md - Quick start: install, configure, /init, first run
- docs/02-templates.md - Templates: built-in/global/workspace templates and @@ overrides
- docs/03-editor.md - CLI editor: multi-line input, preview, save, vi mode
- docs/04-document-export.md - Document export and format conversion
- docs/05-lessons.md - Lessons: knowledge capture and reminders
- docs/06-history-and-state.md - history/memory/lessons and show/archive/clean
- docs/07-commands.md - Command reference: all commands and shortcuts
- docs/08-configuration.md - Configuration: global/workspace, profiles, templates
- docs/09-permissions.md - Permissions: prompts and remembered rules
- docs/10-claude-compatibility.md - Claude compatibility: commands/plugins reuse
- docs/11-troubleshooting.md - Troubleshooting and debugging
- docs/12-appendix.md - Appendix: env vars and third-party API setup
MIT
