Skip to main content

Coauthor Python Project

Project description

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coauthor-0.1.5.tar.gz (170.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coauthor-0.1.5-py3-none-any.whl (108.2 kB view details)

Uploaded Python 3

File details

Details for the file coauthor-0.1.5.tar.gz.

File metadata

  • Download URL: coauthor-0.1.5.tar.gz
  • Upload date:
  • Size: 170.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for coauthor-0.1.5.tar.gz
Algorithm Hash digest
SHA256 db8b64653e289059bced4cafbe0fbb15fae3d3b9895fcd510dda0419e4a54b5a
MD5 3024f5ba32dfd35c3f23f4e9ce9d9cef
BLAKE2b-256 f11a82227b83619fa191cdd549743ee8fb4ceec4b1ec64853d86dd1fbb3857f7

See more details on using hashes here.

File details

Details for the file coauthor-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: coauthor-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 108.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for coauthor-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b5aeea22e77e3450747ed4de731947013bad9217253f5e3137fb257939c8b1d1
MD5 e491197780df5c9f7f2b94f0d8b708b4
BLAKE2b-256 cdf8cd0402652983d340b7db18e28c7481d98c094ed24b9990043b579b3f31ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page