Skip to content

Install the NodeSpace skill into AI agents on first launch #1199

Closed

Description

@malibio

Rescoped 2026-05-29. NodeSpace is moving off MCP toward published skills + scripts (architectural audit #1228). The MCP-server-registration half of this issue is dropped — there is no MCP server to register. What survives is installing the NodeSpace skill on first launch, which already has a working implementation in @nodespaceai/skill.

Overview

On first launch, NodeSpace should install the NodeSpace skill into the user's installed AI agents (Claude Code and others) so NodeSpace capabilities are available in every session without manual setup. No MCP server registration.

Problem Statement

Users currently must manually run the skill installer. First launch should do it automatically (idempotently), with a manual re-trigger via Settings → Integrations (#1181).

What already exists

@nodespaceai/skill ships:

  • SKILL.md — teaches the agent what NodeSpace is + how to use the nodespace CLI
  • src/installer.ts — detects installed agents (Claude Code, Codex, Gemini, OpenCode) and copies the skill into each agent's directory; supports uninstall
  • Invoked via npx @nodespaceai/skill install

This issue is about calling that installer automatically on first launch from the desktop app, not building it from scratch.

Proposed Solution

On first launch, run a one-time setup that:

  1. Installs the NodeSpace skill — invokes the @nodespaceai/skill install path for each detected agent
  2. Verifies the nodespace CLI is on $PATH — warn if not (see Skill preflight: agent must detect whether the nodespace CLI is installed and the daemon is healthy #1229 preflight); the skill is useless if the agent can't invoke the CLI
  3. Marks setup complete — flag in ~/.nodespace/setup.json so it runs once

Acceptance Criteria

Technical Specifications

  • packages/skill/src/installer.ts — the installer to invoke
  • packages/desktop-app/src-tauri/src/daemon_setup.rs — existing first-launch setup pattern to follow
  • packages/desktop-app/src/lib/components/settings/ — integrations panel for manual re-trigger
  • Setup flag ~/.nodespace/setup.json: { "skill_installed": true }

Dependencies

Related

Activity

  1. changed the title [-]Install NodeSpace MCP server and skills into ~/.claude on first launch[/-] [+]Install the NodeSpace skill into AI agents on first launch[/+] on May 29, 2026
  2. malibio commented on May 29, 2026

    @malibio
    CollaboratorAuthor

    Add Pi agent coverage + fix SKILL.md frontmatter

    Two related gaps found while reviewing agent coverage:

    1. Pi agent is missing from the skill installer

    packages/agent/src/pty/detection.rs knows AgentType::Pi (Pi is a launchable PTY agent), but packages/skill/src/agents.ts only lists claude-code/codex/gemini/opencode — not Pi.

    Pi (pi.dev, earendil-works) is a strong fit for the skills direction: it has no built-in MCP by design ("primitives, not features"), so skills are the only way to extend it. It implements the Agent Skills standard — the same SKILL.md format Claude Code uses. Skills install to ~/.pi/agent/skills/<name>/.

    Add to agents.ts:

    { name: 'pi',
      detectionDir: join(home, '.pi'),
      installDir: join(home, '.pi', 'agent', 'skills', 'nodespace'),
      shims: ['SKILL.md' /* + optional shims/pi/ extension */] }

    2. SKILL.md has no frontmatter — won't load in Pi or Codex

    Current packages/skill/SKILL.md starts with # NodeSpace Skill and has no YAML frontmatter. The Agent Skills standard (Pi, Codex, Claude Code) requires a --- block with name + description. Without it, the skill won't register in Pi/Codex (and may be ignored by Claude Code's skill loader too).

    Add frontmatter (name: lowercase [a-z0-9-], ≤64 chars):

    ---
    name: nodespace
    description: Local-first knowledge graph — store/retrieve notes, tasks, and structured data across sessions via the nodespace CLI.
    ---

    Acceptance criteria (add to this issue)

    • pi added to the skill installer's agent list (packages/skill/src/agents.ts), installing to ~/.pi/agent/skills/nodespace/
    • First-launch + Integrations-panel (Settings: Integrations panel for PATH and skill configuration #1181) skill install detects and targets Pi when ~/.pi exists
    • SKILL.md has valid Agent-Skills frontmatter (name, description) so it loads in Pi, Codex, and Claude Code
    • Verify the skill registers in Pi (~/.pi/agent/skills/) and Codex, not just Claude Code

    Refs: Pi skills format — https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/skills.md ; ties to #1228 (skills-over-MCP), #1229 (preflight), #1227 (CLI coverage).

  3. malibio commented on May 30, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 133 test files, 3858 tests passed

  4. self-assigned this
    on May 30, 2026
  5. added a commit that references this issue on May 30, 2026
    503b8f3
  6. added a commit that references this issue on Jun 22, 2026
    c1fc32c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions