Skip to content
Agentmart
Submit a tool

linear-agent-api

Linear Agent API expertise - sessions, activities, signals, and best practices.

Skill by 5DLabsInc

IndexedAGPL-3.0
Write a review

Chalk Labs

Need help deploying linear-agent-api?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/5dlabsinc-linear-agent-api

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Linear Agent API expertise - sessions, activities, signals, and best practices. Use when working with Linear agent integration, verifying dialogue population, or implementing two-way communication.

Use cases: backend, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/linear-agent-api

What's inside

Skill name
linear-agent-api
Description
Linear Agent API expertise - sessions, activities, signals, and best practices. Use when working with Linear agent integration, verifying dialogue population, or implementing two-way communication.
License
AGPL-3.0
Instructions
287 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Linear Agent API Skill

Comprehensive reference for Linear's Agent API, following the [Agent Interaction Guidelines (AIG)](https://linear.app/developers/aig).

## When to Use

- Verifying agent sessions are created correctly
- Checking activity streaming (thought, action, response)
- Implementing two-way communication (user input, stop signals)
- Debugging Linear integration issues

---

## Agent Session Lifecycle

Sessions track the lifecycle of an agent run:

| State | Meaning |
|-------|---------|
| `pending` | Session created, waiting for agent |
| `active` | Agent is working |
| `awaitingInput` | Agent needs user input |
| `error` | Something went wrong |
| `complete` | Work finished |

**Sessions are created automatically** when an agent is @mentioned or assigned as delegate.

---

## Agent Activity Types

| Type | Purpose | Who Creates |
|------|---------|-------------|
| `thought` | Agent reasoning, progress updates | Agent |
| `action` | Tool invocations (with optional `result`) | Agent |
| `elicitation` | Request user input or clarification | Agent |
| `response` | Final completion message | Agent |
| `error` | Report failure | Agent |
| `prompt` | User follow-up message | Human |

### Activity Payloads

```json
// thought - Agent thinking
{ 
  "content": { 
    "type": "thought", 
    "body": "Analyzing the codebase structure..." 
  } 
}

// action - Tool call
{ 
  "content": { 
    "type": "action", 
    "action": "edit_file", 
    "parameter": "src/main.rs" 
  } 
}

// action with result
{ 
  "content": { 
    "type": "action", 
    "action": "run_tests", 
    "result": "All 42 tests passed" 
  } 
}

// elicitation - Request input
{ 
  "content": { 
    "type": "elicitation", 
    "body": "Which database should I use?" 
  } 
}

// response - Completion
{ 
  "content": { 
    "type": "response", 
    "body": "Implementation complete. PR #123 created." 
  } 
}

// error - Failure
{ 
  "content": { 
    "type": "error", 
    "body": "Build failed: missing dependency" 
  } 
}
```

### Ephemeral Activities

Activities can be marked `ephemeral: true` for temporary status messages that get replaced by the next activity. Only `thought` and `action` types support this.

---

## Signals (Two-Way Communication)

### Human-to-Agent Signals

#### `stop` Signal

When user clicks "Send stop request" in Linear, agent receives a `prompt` activity with `signal: "stop"`.

**Agent MUST:**
1. **Halt immediately** - No further code changes or API calls
2. **Emit final activity** - `response` or `error` confirming stop
3. **Report current state** - What was completed, what remains

**CTO Implementation**: The `status-sync.rs` sidecar detects `signal: "stop"` in polled activities and triggers graceful shutdown via `/stop` endpoint.

### Agent-to-Human Signals

#### `auth` Signal

From 5DLabsInc/cto, AGPL-3.0.

More from 5DLabsInc/cto

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Apr 26, 2026 (6 months ago)
Last release
May 31, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
AGPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from 5DLabsInc

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get linear-agent-api running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying linear-agent-api?

CallGet help
Cite this page

linear-agent-api skill. Agent Mart. https://agentmart.dev/skills/5dlabsinc-linear-agent-api (last updated 2026-10-24)