Anthropic
@keeb/anthropicv2026.10.15.1
Security Notice
This extension includes AI agent skills that can modify AI assistant behavior. Review the skill files before installing.
01README
Generate text with Anthropic Claude from swamp workflows, via the Messages API or the local claude CLI login.
02Behaviors
@keeb/anthropic/claudev2026.10.15.1claude.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiKey? | string | Anthropic API key; required by generate, unused by the cli_* methods |
| model? | string | Model ID to use |
| systemPrompt? | string | System prompt for the conversation |
| maxTokens? | number | Maximum tokens in response, a positive integer (generate only) |
fn generate(prompt: string)
Generate text with Claude via the Messages API
| Argument | Type | Description |
|---|---|---|
| prompt | string | The user message to send to Claude |
fn cli_generate(prompt: string, jsonSchema?: record, timeoutSeconds?: number)
Generate text with the local claude CLI (headless, no tools) instead of the Messages API.
| Argument | Type | Description |
|---|---|---|
| prompt | string | The user message to send to Claude |
| jsonSchema? | record | JSON Schema the answer must satisfy; the parsed answer lands in `structured` |
| timeoutSeconds? | number | Seconds before the CLI call is aborted |
fn cli_generate_many(batch: string, requests: array, systemPrompt?: string, concurrency?: number, timeoutSeconds?: number)
Fan a batch of prompts out to the local claude CLI with bounded concurrency; one cliResult per request.
| Argument | Type | Description |
|---|---|---|
| batch | string | Batch id; namespaces the result instances |
| requests | array | Prompts to run |
| systemPrompt? | string | Shared system prompt for requests that do not carry their own |
| concurrency? | number | Maximum CLI processes at once |
| timeoutSeconds? | number | Seconds before each CLI call is aborted |
Resources
result(infinite)— Claude response
cliResult(30d)— One answer from the claude CLI, keyed by batch and request key
03Skills
anthropic1 file
04Previous Versions
2026.07.18.1
2026.04.22.3
2026.04.22.2
2026.04.22.1
Added 1 skills
2026.04.06.2
2026.04.06.1
2026.03.13.2
2026.03.13.1
05Stats
A
93 / 100
Downloads
364
Archive size
10.4 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License1/2partial
no SPDX license declared
- Verified public repository2/2earned
Repository
https://github.com/keeb/swamp-anthropicdeno-command1 accepted
Spawns a subprocess with Deno.Command().
- models/claude.ts:117 — the cli methods exist to run the local claude CLI; args are fixed flags plus model, effort enum, system prompt and JSON schema, and the prompt goes over stdin
07Platforms
08Labels