Aliou Diallo

pi-linear

Manage Linear issues, projects, and teams directly from Pi.

banner

@aliou/pi-linear

Pi extension for interacting with Linear via the Linear SDK.

Installation

pi install @aliou/pi-linear

Configuration

The extension requires a Linear API key. Get one at https://linear.app/settings/api.

Run /linear:auth in pi to add/edit/remove workspace credentials.

Option 2: Settings command

Run /linear:settings to manage workspaces and extension toggles.

Option 3: Environment variable

export LINEAR_API_KEY=lin_api_...

If no key is found, the extension disables its tools and shows a warning at session start.

Commands

CommandDescription
/linear:authAdd, edit, or remove workspace credentials
/linear:settingsConfigure workspaces and extension settings
/linear:start [ISSUE_ID]Start implementation flow; opens issue picker when no id is provided
/linear:browseTabbed browser (Issues, Projects, Milestones) inspired by Linear navigation

Settings

FieldTypeDefaultDescription
enabledbooleantrueEnable or disable the extension
defaultWorkspacestringautoPreferred workspace key
startUpdateState"ask"|"true"|"false""ask"Default behavior for issue-start state transition
startCreateBranch"ask"|"true"|"false""ask"Default behavior for issue-start branch creation
workspacesrecord{}Workspace profiles keyed by org urlKey
workspaces.<key>.apiKeystringWorkspace API key
workspaces.<key>.orgNamestringWorkspace display label
workspaces.<key>.defaultTeamKeystringDefault team key used when team args are omitted
apiKeystringlegacyLegacy flat key; auto-migrated into workspaces.default

Tools

linear_issues

Manage Linear issues and issue-scoped resources.

ActionDescription
listList issues, with optional filters like team, project, state, assignee, and label
searchFull-text search across issues
showShow a single issue by ID or identifier (for example ENG-123), including sub-issues
createCreate a new issue in a team
updateUpdate an existing issue, including project milestone assignment
comments_listList comments for an issue
comment_createCreate a comment on an issue
comment_updateUpdate a comment
comment_deleteDelete a comment
attachments_listList issue attachments
attachment_createAttach a URL to an issue
relations_listList issue relations, with optional inverse relations
relation_createCreate an issue relation like blocks, blocked_by, duplicate, related, or similar
relation_updateUpdate an issue relation
relation_deleteDelete an issue relation
documents_listList documents linked to an issue

Common issue fields include:

linear_issue_start

Start implementation from a Linear issue.

linear_projects

Manage Linear projects and project relations.

ActionDescription
listList projects, with optional filters like team, status, and lead
showShow a single project by ID
createCreate a new project
updateUpdate an existing project
relations_listList relations for a project
relation_createCreate a project relation
relation_updateUpdate a project relation
relation_deleteDelete a project relation

linear_project_milestones

Manage project milestones.

ActionDescription
listList milestones for a project. Requires projectId
showShow a milestone by milestoneId
createCreate a milestone in a project. Requires projectId
updateUpdate a milestone by milestoneId
deleteDelete a milestone by milestoneId

Milestone fields include:

linear_documents

Manage Linear documents.

ActionDescription
listList documents in the workspace, optionally scoped by issueId or projectId
showShow a document by ID
createCreate a document, optionally linked to an issue or project
updateUpdate a document
deleteDelete a document

linear_teams

ActionDescription
listList active teams in the workspace

linear_people

List workspace members for assignment.

ActionDescription
listList active people in the workspace with IDs usable as assigneeId

linear_team_states

List workflow states for teams.

ActionDescription
listList team states, optionally filtered by teamId or teamKey; use returned IDs as stateId

Notes