Skip to main content

Coauthor AI Agent

Documentation Status pipeline status coverage report PyPI version Pyversions Code style: black

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)

Source distribution for coauthor 0.1.8
File Size Uploaded
coauthor-0.1.8.tar.gz 187.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coauthor 0.1.8
File Interpreter ABI Platform
coauthor-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 297.4 kB

Release files / coauthor-0.1.8.tar.gz

Download URL coauthor-0.1.8.tar.gz
Size 187.7 kB
Tags Source
SHA-256 checksum
How to use checksums
32abb399496a1a25c466d51ce5acebb97b5165ea045cb1c94abda83d91a09310
BLAKE2b-256 checksum
How to use checksums
ecde9fb63d77e047ef1e054e177372c02d2808bf3f646e6a0be377f81496703c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.33.1

Release files / coauthor-0.1.8-py3-none-any.whl

Download URL coauthor-0.1.8-py3-none-any.whl
Size 109.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
754da1c2b06783d756892590be4ae8f266f6d10b7f7ed556c55c8faeb28dc5f4
BLAKE2b-256 checksum
How to use checksums
7ebd7f2a8b2484c45c46dd72448f03870009441748e5010198634ae39e605c55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.33.1

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page