Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

LLM/Claude

From World Wide Wiegert Wiki - WWWW

Claude is a family of large language models developed by Anthropic. This page documents how Claude is used and integrated in Damme's workflow, including API access, the Cowork desktop app, and automated wiki editing via bot.

Model Family

Model Strengths Typical Use
Claude Opus Deepest reasoning, complex analysis Architecture decisions, thorough code review, long documents
Claude Sonnet Balanced speed and capability Day-to-day coding, research, writing
Claude Haiku Fast, lightweight Quick lookups, classification, simple edits

Current models are versioned (e.g. claude-opus-4-6, claude-sonnet-4-5). Check Anthropic's model page for the latest.

Access Methods

Cowork (Desktop App)

Primary interface. Runs a cloud sandbox with shell, file tools, and browser automation. Key capabilities:

  • Full Linux environment with Python, Node, common CLI tools
  • File creation and delivery (Word, Excel, PowerPoint, PDF, HTML)
  • Web search and page fetching
  • Connection to the local machine via device bridge (file access, local shell)
  • Built-in browser for authenticated site interaction
  • Scheduled tasks (recurring or one-shot)
  • Persistent memory across sessions

API

Direct API access via https://api.anthropic.com/v1/messages. Requires an API key from the Anthropic Console.

Basic request structure:

curl https://api.anthropic.com/v1/messages \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "claude-sonnet-4-5-20250514",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Claude Code (CLI)

Command-line tool for agentic coding. Runs in a terminal, can read/write files, run shell commands, and manage git workflows. Supports MCP (Model Context Protocol) servers for extensibility.

Wiki Integration

Bot Setup

Claude can edit this wiki via the MediaWiki API using a bot password.

Configuration on the wiki side:

  1. Go to Special:BotPasswords logged in as an admin
  2. Create a bot password with appropriate grants (Edit existing pages, Create, edit, and move pages, Upload new files)
  3. Note the bot username (Username@BotName) and generated password
  4. Ensure $wgEnableAPI = true; and $wgEnableWriteAPI = true; in LocalSettings.php (both default to true)

Authentication flow:

  1. Obtain a login token: action=query&meta=tokens&type=login
  2. POST login with action=login, bot username, password, and token
  3. Obtain a CSRF token: action=query&meta=tokens
  4. Use the CSRF token for edit/create operations

Network access note: The Cowork cloud sandbox cannot reach this wiki directly (egress allowlist). The connection goes through the built-in browser on the linked desktop, using JavaScript fetch() calls against the API. This works because the browser runs on the local machine which can resolve wiki.wiegert.link.

What Claude Can Do on This Wiki

  • Create and edit pages (wikitext)
  • Create subpage hierarchies
  • Add categories and interwiki links
  • Upload files (with the right grants)
  • Read and summarize existing content

Limitations

  • No direct shell/curl access from cloud — must use browser JS bridge
  • Each browser JS call is a separate execution context (no persistent variables across calls unless stored on window)
  • Bot edits are attributed to the wiki user account, not a separate bot identity
  • Rate limiting may apply for bulk operations

Prompting Tips

  • Be specific and concrete — Claude works best with clear requirements
  • Provide examples of desired output when format matters
  • For code: specify language, framework, and constraints upfront
  • For wiki edits: provide the page title and describe the desired content structure
  • Use CLAUDE.md files in project roots to give persistent context to Claude Code sessions

MCP (Model Context Protocol)

Claude supports MCP servers — local or remote services that expose tools, resources, and prompts. Useful for:

  • Connecting to databases, APIs, or custom workflows
  • Extending Claude's capabilities beyond built-in tools
  • Integrating with project-specific toolchains

See MCP documentation for the specification.

See Also