Skip to main content

TagWriting

TagWriting is a CLI tool that enables fast and flexible text generation by simply enclosing prompts in tags within your text files. It is designed to be simple, stateless, and editor-agnostic, making it easy to integrate into any workflow.


Overview

TagWriting is a tool that connects AI and humans more seamlessly through text files. By monitoring a directory, TagWriting will automatically convert text or Markdown files as soon as they are saved.

I am TagWriting.
<prompt>Describe the best feature of TagWriting in one sentence.</prompt>

↓

I am TagWriting.
You can quickly generate text just by enclosing it in tags.

Usage

  1. Edit a file such as .md and enclose your prompt in tags
  2. When you save, the tagged section is converted by the LLM
  3. The result is written directly to the file

Why TagWriting?

Seamless with Text Editing

Just enclose prompts directly in your text with tags. No need to stop your workflow to operate the LLM. You can leverage AI without interrupting your train of thought.

High Readability

By explicitly writing tags, it’s clear which parts you want the AI to handle. Document history and edits are also clear.

Flexibility & Compatibility

TagWriting directly rewrites updated text files. In theory, it works with any editor and any format. As long as your editor supports file reload, you’re ready to go—no plugins needed. Use Visual Studio Code, Vim, Emacs, etc.—whatever you like.


Installation (Python)

  1. Install dependencies:
pip install .
  1. Use as a command-line tool:
tagwriting

or

tagwriting --watch <directory>

How to use .env

Create a .env file in your project directory and specify your API key, model name, and base URL as follows:

API_KEY=sk-xxxxxxx
MODEL=gpt-3.5-turbo
BASE_URL=https://api.openai.com/v1

or

TAGWRITING_API_KEY=sk-xxxxxxx
TAGWRITING_MODEL=gpt-3.5-turbo
TAGWRITING_BASE_URL=https://api.openai.com/v1
  • The .env file in the directory where you run the tagwriting command will be loaded automatically.
  • If you want to use different settings for multiple projects, prepare a separate .env for each directory.
  • Any OpenAPI-compatible endpoint can be used (e.g., Grok, Deepseek, etc.).

Happy Hacking!

More detail? Let's read the Japanese version in GitHub. (Sorry, I'm Japanese and English is not my native language.)

Release files for tagwriting 0.3.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tagwriting 0.3.2.0
File Size Uploaded
tagwriting-0.3.2.0.tar.gz 18.1 kB Details

Built distribution (wheel)

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

Total release size: 32.7 kB

Release files / tagwriting-0.3.2.0.tar.gz

Download URL tagwriting-0.3.2.0.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2aff37d0d57f91976a37d95a0437d813e9f8b86ea4b4ae290ba7aeb4fb2ee7fc
BLAKE2b-256 checksum
How to use checksums
e861b3cc1bfedab8f691d24018033d473494862f4ea7b250608b4f573989a155
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.9

Release files / tagwriting-0.3.2.0-py3-none-any.whl

Download URL tagwriting-0.3.2.0-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d450d24c9f018c5066149ae74dd12bf1fba7c6b83726e763825dbc581784435b
BLAKE2b-256 checksum
How to use checksums
29a0c2118d0502e97e26b9fc69e7f0e11e764a87f95eb36b5b7c9233ccdc433a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.3.2.0 This release

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