Skip to main content

CLI kernel for bootstrapping and maintaining paper-harness projects

Project description

paperops

paperops は、AI エージェントと論文を書くためのプロジェクトハーネスである。

人間が template/ を手でコピーして使う道具ではない。主導線は pops CLI で、Agent が安全に project state を初期化・診断・更新するための execution kernel として扱う。

最小セットアップ

新規論文プロジェクト:

uvx --from paper-harness-cli pops init paper-my-topic
cd paper-my-topic
pops setup
pops doctor

既存プロジェクトを CLI 管理へ寄せる:

cd paper-my-topic
pops migrate --apply
pops doctor

template/ はこのリポジトリ内の source of truth であり、paper-harness-cli パッケージに bundled scaffold として同梱される。

AI 前提の作業ループ

日常運用の主役は、CLI そのものではなく Agent との会話である。

  1. 人間が論文トピック、制約、投稿先候補、判断を伝える。
  2. Agent が notes/project-brief.mdnotes/claim-evidence-map.mdmanuscript/venue.md を整える。
  3. pops が init / setup / doctor / update-harness のような決定的操作を担う。
  4. 原稿は manuscript/ja を中心に進め、必要な block を manuscript/en へ同期する。
  5. 共有前に make ci、投稿前に make pre-submit でハーネスのゲートを通す。
  6. 再利用可能な摩擦は /feedback-paper-harness で上流 paperops に戻す。

CLI の詳細は docs/cli.md を参照する。

コア設計思想

  • template/ は個別論文リポジトリに展開される scaffold の source of truth。
  • src/paperops/template/ を展開・診断・更新する薄い CLI。
  • notes/ はセッション継続性、主張・証拠、読者モデル、AI 利用ログの共有 memory。
  • manuscript/jamanuscript/en は block ID で対応するバイリンガル原稿。
  • refs/ は raw PDF 置き場ではなく、キュレーション済みの参照知識層。
  • submission/<venue>/ は投稿先公式テンプレートと最終提出用 TeX の隔離スロット。
  • pops update-harness はハーネス管理ファイルだけを扱い、下流固有の manuscript/notes/refs/submission/ を自動上書きしない。

リポジトリ構成

  • src/paperops/: pops CLI
  • template/: 論文プロジェクトに展開される scaffold
  • .github/workflows/: 下流論文リポジトリから呼び出し可能な再利用可能 GitHub Actions workflow
  • .github/ISSUE_TEMPLATE/: テンプレート改善、スキル要求、構造変更の Issue フォーム
  • .claude/skills/, .agents/skills/: テンプレート保守用 skill
  • docs/: アーキテクチャ、変更ポリシー、トリアージルール、CLI と配布方針
  • tests/: pops CLI の最小 smoke tests

スキャフォールドが最適化するもの

  • refs/: 生の PDF 置き場ではなく共有知識層として活用
  • notes/: セッション引き継ぎ、主張・証拠、読者モデル、AI 利用ログ、継続性の状態管理
  • 日本語・英語の原稿をブロックレベルのミラーとして追跡
  • submission/<venue>/: 投稿先公式テンプレートと最終提出用 TeX の分離
  • manuscript/publication-metadata.tomlnotes/ai-use.mdnotes/reproducibility.md: 公開メタデータ、AI 利用開示、計算環境、図表 provenance の投稿前確認
  • make pre-submit: make ci に加えて引用サマリー、submission slot、スタータープレースホルダー、workflow 参照、公開メタデータ不足を検出
  • make citation-check: TeX 本文中の citation key と .bib の不整合を早期検出
  • make public-terms-check / make claim-evidence-check: 内部語の公開本文混入と supported claim の evidence 対応を早期検出
  • make mirror-freshness-check / make submission-drift-check: 日英 block の同期鮮度と投稿版への科学的変更戻し忘れを点検
  • make skill-mirror-check: .agents/skills/.claude/skills/ の同名 source of truth を参照しているかを点検
  • scripts/build-ja.sh / scripts/build-en.sh: \input / \include / \includegraphics / bibliography / style 参照の構造検証を行い、TeX 環境があれば PDF ビルドへ進む
  • 下流論文リポジトリ用の Issue フォーム: 原稿レビュー、エビデンス不足、ハーネス摩擦を分けて収集
  • テンプレート自体の再利用可能な保守ワークフロー
  • プロジェクトローカルの Claude / Codex スキル、フック、運用ルール

CLI

pops init paper-my-topic
pops setup
pops doctor
pops update-harness --dry-run
pops migrate --apply
pops feedback
pops version

このコマンド面は将来の CLI 標準化前の最小形である。標準化までは、実装を小さく保ち、既存 skill と Makefile の運用を壊さないことを優先する。

PyPI 公開

paper-harness-cli は release publish または手動 dispatch で PyPI に公開する。 GitHub Actions の PyPI 公開 workflow は distribution を build / check し、PyPI Trusted Publishing で paper-harness-cli にアップロードする。 PyPI 側では trusted publisher として、この repository、workflow .github/workflows/publish-pypi.yml、environment pypi を設定しておく。

開発と検証

テンプレートは完全な TeX 環境を前提とせず、軽量なローカルチェックを提供する。 scripts/build-ja.shscripts/build-en.shlatexmk が利用可能な場合はコンパイルを行い、そうでなければ scripts/check-tex-structure.py による構造検証にフォールバックするため、クリーンなランナーでも CI が執筆ハーネスを実行できる。 想定されるローカルセットアップは、リポジトリローカルの .venv 内の python3.11 である。

make venv
make smoke
python -m pip wheel . --no-deps -w .codex-tmp/wheelhouse

上流リファレンス

フックと設定のレイアウトは Anthropic の Claude Code ドキュメントのプロジェクト設定とフックに準拠しており、GitHub 自動化ファイルは GitHub の再利用可能ワークフローと Issue フォームのドキュメントに準拠している:

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

paper_harness_cli-0.1.0.tar.gz (89.4 kB view details)

Uploaded Source

Built Distribution

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

paper_harness_cli-0.1.0-py3-none-any.whl (144.1 kB view details)

Uploaded Python 3

File details

Details for the file paper_harness_cli-0.1.0.tar.gz.

File metadata

  • Download URL: paper_harness_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 89.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for paper_harness_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e6c65bc4da4167febec151cbaabc7fb2f1d378d9b1779274769ae6d246a6afcc
MD5 d1492fed488d118aff8bde08d730c90c
BLAKE2b-256 46dc0cfd533915c478d5248229d93e1e08c1630b0a03eae3385c7500f22375bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for paper_harness_cli-0.1.0.tar.gz:

Publisher: publish-pypi.yml on Nkzono99/paperops

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file paper_harness_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for paper_harness_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61cea2d355825957a0c58ed54256f31640a53b43965a150a0876dd0b81a1ee6a
MD5 0a07aaf47090a12cf64197ac6e5a896f
BLAKE2b-256 81fea37eec447eb87c5bfff4d89844790fe8f5060ae7a7041e40cef375a32e63

See more details on using hashes here.

Provenance

The following attestation bundles were made for paper_harness_cli-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on Nkzono99/paperops

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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