# Copilot Ld Copilot Ld Libagent

> libagent Skill

- Skill: `tomevault-io/copilot-ld-copilot-ld-libagent` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/copilot-ld-copilot-ld-libagent`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/copilot-ld-copilot-ld-libagent/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/copilot-ld-copilot-ld-libagent

---


# libagent Skill

## When to Use

- Building conversational AI agents with tool capabilities
- Coordinating LLM completions with memory context
- Processing multi-turn conversations with state
- Implementing RAG (retrieval-augmented generation) pipelines

## Key Concepts

**AgentMind**: Core reasoning engine that processes requests through LLM
completions, manages conversation state, and coordinates tool execution.

**AgentAction**: Handles individual tool calls, executes actions, and returns
results to the conversation flow.

## Usage Patterns

### Pattern 1: Basic agent request

```javascript
import { AgentMind } from "@copilot-ld/libagent";

const mind = new AgentMind(memoryClient, llmClient, toolClient);
const response = await mind.process({
  resourceId: conversationId,
  content: "What is the weather?",
});
```

### Pattern 2: Streaming responses

```javascript
for await (const chunk of mind.stream(request)) {
  process.stdout.write(chunk.content);
}
```

## Integration

Works with `libmemory` for context windows, `librpc` for gRPC clients, and
`libllm` for completions. Used by the Agent service.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/copilot-ld) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

