Skip to content

copilot-agentic-tools 0.6.0

Install from the command line:
Learn more about npm packages
$ npm install @github/copilot-agentic-tools@0.6.0
Install via package.json:
"@github/copilot-agentic-tools": "0.6.0"

About this version

@github/copilot-agentic-tools

TypeScript SDK for integrating with GitHub Copilot's Memory API.

Features

  • Fetch memories — Retrieve repository memories for prompt injection
  • Store memories — Persist facts learned during agent sessions
  • Vote on memories — Mark memories as helpful or outdated
  • Prompt templates — Pre-built prompts for memory consolidation
  • Zod schemas — Type-safe input validation for tool calls

Installation

npm install @github/copilot-agentic-tools

Usage

import { fetchMemoryPrompts, storeMemory } from "@github/copilot-agentic-tools/memory";

// Fetch memories for prompt injection
const prompts = await fetchMemoryPrompts({
  owner: "github",
  repo: "github",
  token: capiToken,
  integrationId: "your-integration-id",
});

// Store a new memory
await storeMemory(
  {
    subject: "testing",
    fact: "Use vitest for unit tests",
    citations: ["package.json:10"],
    reason: "Observed in project config",
  },
  {
    owner: "github",
    repo: "github",
    token: capiToken,
    integrationId: "your-integration-id",
    agent: "my-agent",
  }
);

API

fetchMemoryPrompts(options)

Fetches assembled memory prompts from the Memory API /prompt endpoint.

fetchRecentMemories(options)

Fetches recent memories for a repository.

storeMemory(memory, options)

Stores a new memory in the repository.

voteMemory(vote, options)

Votes on an existing memory (helpful/outdated).

License

MIT

Details


Assets

  • copilot-agentic-tools-0.6.0.tgz

Download activity

  • Total downloads 168
  • Last 30 days 168
  • Last week 158
  • Today 3

Recent versions

View all