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.

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.1.tar.gz (107.7 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.1-py3-none-any.whl (79.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for coauthor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4c77f48bb1c3eafd694d180bb3f908b4e9bce0d61b8b7f0d290a3ef7684d0e8b
MD5 debf3fc99e297899b0e5d7a229b15967
BLAKE2b-256 e226502aac136d29c2e2b847984bcfd3a0e933939eb1adf86241c86c4244f166

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for coauthor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d2acd3b4b0dcbe722bc42331ec3b2eaa9e15162bb724cc61c1ade67b0c4bf2c
MD5 afc075611b6b39f7f6f960b45e9791d4
BLAKE2b-256 b959bb079d48856d58b9304dc17c68a7634a31f3b9417421ca6084de5eb7976b

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