Coauthor AI Agent
Coauthor is a versatile AI agent designed to seamlessly integrate into any project without being restricted to a particular tool or IDE. It functions as a co-author, operating in the background to monitor files and respond to instructions for collaboratively producing documentation, code, configuration, and more.
The agent is powered by a simple task engine that allows you to define workflows—collections of tasks that are executed in sequence when certain conditions, such as file or directory changes, are met. This task engine is enhanced by the Jinja templating engine, providing extensive control over system and user prompts.
Installing
:start-after:
To install Coauthor run the following command:
pip install coauthor
Configuration .coauthor.yml
To do anything meaningful with coauthor you have to create a configuration file
.coauthor.yml. For example in the root of a folder that contains Obsidian markdown
files. Refer to the
documentation website
for more information.
Command line usage
Create a file .coauthor.yml in the root of your project, for example in a
Obsidian project where all my Obsidian vaults are in directory vaults:
Start Coauthor run the following commands:
export OPENAI_API_KEY=<you api key>
export OPENAI_API_URL=https://openrouter.ai/api/v1
coauthor --watch
To see command line options, run coauthor --help.
Model Override
You can override the default AI model using the COAUTHOR_MODEL environment variable:
# Use a different model
export COAUTHOR_MODEL="openai/gpt-4"
coauthor --watch
# Or use with a local AI service
export COAUTHOR_MODEL="llama2:latest"
coauthor --watch
This is particularly useful when using profiles that don't specify a model or when testing with different AI services.
Using with Jira
To enable Jira integration, configure authentication:
# Using Personal Access Token (recommended)
export COAUTHOR_JIRA_PAT=your_personal_access_token
export COAUTHOR_JIRA_URL=https://your-jira-instance.com
# Or using username/password (legacy)
export COAUTHOR_JIRA_USERNAME=your_username
export COAUTHOR_JIRA_PASSWORD=your_password
export COAUTHOR_JIRA_URL=https://your-jira-instance.com
See Jira Configuration for detailed setup instructions.
Contributing
This project welcomes contributions and suggestions. For details, visit the repository's Contributor Page.
Metadata
Release files for coauthor 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| coauthor-0.1.8.tar.gz | 187.7 kB | Without provenance | Details for coauthor-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| coauthor-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for coauthor-0.1.8-py3-none-any.whl |
Total release size: 297.4 kB
Security for coauthor 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.