copilot-agentic-tools 0.5.0
Install from the command line:
Learn more about npm packages
$ npm install @github/copilot-agentic-tools@0.5.0
Install via package.json:
"@github/copilot-agentic-tools": "0.5.0"
About this version
TypeScript SDK for integrating with GitHub Copilot's Memory API.
- 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
npm install @github/copilot-agentic-toolsimport { 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",
}
);Fetches assembled memory prompts from the Memory API /prompt endpoint.
Fetches recent memories for a repository.
Stores a new memory in the repository.
Votes on an existing memory (helpful/outdated).
MIT
Details
- copilot-agentic-tools
-
github
- 22 days ago
- MIT
- 2 dependencies
Assets
- copilot-agentic-tools-0.5.0.tgz
Download activity
- Total downloads 1,059
- Last 30 days 1,059
- Last week 195
- Today 7