Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bohdanpodvirnyi/coding-agents-alignment

Repository files navigation

coding-agents-alignment

Ambient GitHub Project alignment for coding agents. Zero input required — work is automatically aligned as issues in a GitHub Project.

Works with pi and Claude Code.

How it works

  1. Agent session starts, user gives a task
  2. The extension captures the prompt silently
  3. On the first substantive task prompt, it auto-creates a GitHub issue (with the current user as assignee) and adds it to the project as Planning — or links an existing item by branch name
  4. On the first code-changing action, it moves the item to In Progress and, when possible, comments changed Markdown planning artifacts onto the issue
  5. When work lands on the default branch → Done

No prompts. No dialogs. No interruptions.

Install

pi

From npm:

pi install coding-agents-alignment

From Git:

pi install git:github.com/bohdanpodvirnyi/coding-agents-alignment

Claude Code

From a local checkout:

claude --plugin-dir /path/to/coding-agents-alignment/claude-code-plugin

Or install from npm first:

npm install -g coding-agents-alignment
claude --plugin-dir "$(npm root -g)/coding-agents-alignment/claude-code-plugin"

See claude-code-plugin/README.md for Claude Code–specific details.

Configure

Create .coding-agents-alignment.json in your repo root:

{
  "githubOwner": "your-org",
  "githubProjectNumber": 1,
  "repo": "your-repo"
}

All options

Key Default Description
githubOwner GitHub user or org that owns the project
githubProjectNumber Project number (visible in project URL)
repo inferred from git Display name for the repo field
repoPath Relative path to the git repo (for multi-repo workspaces)
statusFieldName "Status" Name of the single-select status field
repoFieldName "Repo" Name of the repo text field
branchFieldName "Branch" Name of the branch text field
prUrlFieldName "PR URL" Name of the PR URL text field
agentFieldName "Agent" Name of the agent text field
statuses.planning "Planning" Label for the planning status
statuses.inProgress "In Progress" Label for the in-progress status
statuses.finished "Done" Label for the finished status
visibility "silent" Ambient output level: silent, status, or verbose
attachPlanningArtifacts true Comment changed Markdown planning artifacts when promoting to In Progress
artifactMaxFiles 20 Maximum Markdown artifact files to include
artifactInlineMaxBytes 32768 Max total inlined artifact bytes in the planning comment
finishCheckIntervalMs 60000 Throttle for finish detection checks

Every key can be overridden with env vars: CODING_AGENTS_ALIGNMENT_GITHUB_OWNER, CODING_AGENTS_ALIGNMENT_GITHUB_PROJECT_NUMBER, CODING_AGENTS_ALIGNMENT_REPO, CODING_AGENTS_ALIGNMENT_REPO_PATH, etc.

GitHub Project setup

Your project needs these fields:

Field Type Purpose
Status Single select PlanningIn ProgressDone
Repo Text Which repo the work is in
Branch Text Git branch name
PR URL Text Pull request URL
Agent Text Which agent did the work

Items are created as real GitHub issues (with assignee), not drafts. Falls back to drafts if issue creation fails.

State machine

idle → pending (prompt captured) → aligned (issue created/linked)
                                       ↓
                              inProgress → finished

Commands

pi

Command Description
/align Re-enable alignment, or start tracking current work immediately
/align-status Show current alignment state
/align-finish Force aligned item to Done
/align-unlink Stop alignment for this session
/align-resync Re-sync aligned item with GitHub

Examples:

/align

Start tracking immediately, even before the first edit/write. If you don't pass text, alignment infers a title from recent session prompts.

/align fix extension loading conflict

In pi, optional text seeds the issue title/summary when you want to start tracking manually.

Claude Code

Same commands, same names.

Example:

/align

Useful when you want to create/link the project item right away instead of waiting for the first substantive prompt hook to do it automatically.

Requirements

  • gh CLI authenticated (gh auth login)
  • Node.js ≥ 18

Development

npm install
npm run check

License

MIT

About

pi extension for ambient GitHub Project alignment across coding-agent work

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors