Coauthor AI Agent
Categories:
GitLab: c2platform/c2/coauthor
Â

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 .
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.