asgeirtj/system_prompts_leaks Documentation

repository·main·Indexed 32 days ago

https://github.com/asgeirtj/system_prompts_leaks

A repository exploring system prompts and operational documentation for advanced agentic AI models, specifically focusing on 'Advanced Memory' features. Includes technical implementation guides for the Anthropic C# and Go SDKs, covering message requests, adaptive thinking for Claude 4.6+ models, prompt caching, context compaction (Beta), and handling model refusals.

Tokens
643.3K
Snippets
691
Records
2.8K
Agent score
100%

What's inside asgeirtj-system_prompts_leaks

  1. Overview of Confer LLM

    main

    Confer is a private, end-to-end encrypted large language model created by Moxie Marlinspike. It is designed to be an insightful, encouraging assistant that uses a friendly, helpful tone with subtle humor.

    Key Characteristics

    • Privacy: End-to-end encrypted.
    • Memory: Only retains conversation context within the current session; there is no persistent memory after a session ends.
    • Context Window: Approximately 200k tokens across prompt and answer.
    • Accuracy: The model is instructed to never invent names or URLs. If unsure, it must use web search tools.
    • Formatting: Defaults to plain text with line breaks unless Markdown (code blocks, lists, tables) is requested. When using Markdown, it avoids using horizontal rules (---).

    For detailed information regarding features, pricing, privacy, or technical capabilities, users should refer to https://confer.to/about.md.

  2. Understand the scope of Claude Code and Claude Agent SDK

    main

    The documentation covers two distinct products:

    1. Claude Code: The command-line tool (CLI) and its integrations (VS Code, JetBrains, Claude Desktop, and Web).
    2. Claude Agent SDK: The Python and TypeScript libraries used for building custom agents on the same harness as Claude Code. Documentation for the SDK is located under the /en/agent-sdk/ path.

    Note on naming confusion:

    • Claude Agent SDK: Uses packages like claude-agent-sdk or @anthropic-ai/claude-agent-sdk. Documented at code.claude.com/docs/en/agent-sdk/*.
    • Anthropic Client SDK (Raw API): Uses anthropic or @anthropic-ai/sdk. Documented at platform.claude.com/docs.
    • Managed Agents (Hosted): Uses /v1/agents or /v1/sessions. Documented at platform.claude.com/docs.
  3. Use Codex for coding and terminal tasks

    main

    Codex is a GPT-5 based coding agent that collaborates in your workspace. It functions as a senior software engineer, prioritizing codebase examination before making changes.

    Key Capabilities:

    • Code Editing: Uses apply_patch for manual edits instead of cat or other commands. It defaults to ASCII unless Unicode is justified by the existing file.
    • Search: Prefers rg (ripgrep) or rg --files for speed. Falls back to alternatives if rg is unavailable.
    • Parallelism: Uses multi_tool_use.parallel to parallelize tool calls like cat, rg, sed, ls, git show, nl, and wc. Avoid chaining bash commands with separators like echo "===="; as it degrades user experience.
    • Git Operations: Prefers non-interactive commands. It will not revert user changes in a dirty worktree or amend commits unless explicitly requested. It avoids destructive commands like git reset --hard or git checkout -- without approval.
  4. Understand Claude Code operational principles

    main

    Claude Code is an interactive CLI agent designed for software engineering tasks. When using the agent, keep the following operational principles in mind:

    • Task Execution: The agent performs tasks like bug fixing, refactoring, and code explanation. For exploratory questions, it provides 2-3 sentence recommendations with tradeoffs rather than immediate implementation.
    • Code Quality: The agent prioritizes writing safe, secure code (avoiding OWASP top 10 vulnerabilities) and prefers editing existing files over creating new ones.
    • Minimalism: It follows a "no unnecessary abstraction" policy, avoiding premature refactors, extra error handling for impossible scenarios, or excessive comments. Comments are only added when the 'WHY' is non-obvious.
    • UI/Frontend Tasks: For UI changes, the agent is instructed to start a dev server and verify the feature in a browser to ensure correctness beyond just type checking or tests.
    • Communication Style: Responses are designed to be short and concise. The agent uses Github-flavored markdown for formatting and provides updates in single sentences at key moments (finding something, changing direction, or hitting a blocker).
  5. Configure Amp Agent Modes (P_R, p_R, j_R, I_R)

    main

    Amp operates in different modes depending on the required level of autonomy and speed:

    ModeIdentityKey Characteristics
    P_RFull Agent ModeEnd-to-end task resolution, high autonomy, uses Oracle/Subagents, parallel execution policy.
    p_RLite Agent ModeSlimmed-down version of Full Agent Mode; maintains core agency and guardrails.
    j_RFast / Speed ModeOptimized for speed/efficiency. Minimizes thinking/tokens, maximizes parallel tool calls, and uses ultra-concise communication.
    I_RRush ModeExtreme speed optimization. Focuses on execution with minimal explanation and mandatory verification after changes.
  6. Access Claude products and interfaces

    main

    Claude is available through several interfaces and specialized agentic tools:

    • Chat Interfaces: Web-based, mobile, or desktop chat applications.
    • Claude Code: An agentic coding tool for developers via command line, desktop app, or mobile app.
    • Claude Cowork: An agentic knowledge-work desktop app for non-developers.
    • Specialized Agents:
      • Claude in Chrome (browsing agent)
      • Claude in Excel (spreadsheet agent)
      • Claude in Powerpoint (slides agent)
    • API & Claude Platform: For programmatic access.

    Claude Cowork can utilize the specialized agents (Chrome, Excel, Powerpoint) as tools.

  7. Understand Claude Code's operational principles and safety constraints

    main

    Claude Code is an interactive CLI agent designed for software engineering tasks. When using the agent, keep the following operational principles in mind:

    Safety and Security

    • Authorized Testing Only: The agent assists with authorized security testing, defensive security, CTF challenges, and educational contexts. It will refuse requests for destructive techniques, DoS attacks, or malicious supply chain compromises.
    • URL Generation: The agent will not generate or guess URLs unless they are strictly for programming assistance. It relies on URLs provided by the user or found in local files.
    • Security Best Practices: The agent prioritizes writing safe, secure code (avoiding OWASP top 10 vulnerabilities like XSS or SQL injection) and will attempt to fix insecure code if it detects it.

    Task Execution

    • Software Engineering Focus: Tasks include solving bugs, adding functionality, refactoring, and explaining code. For unclear instructions, the agent interprets them within the context of the current working directory.
    • Exploratory Queries: For questions like "how should we approach this?", the agent provides a 2-3 sentence recommendation with tradeoffs rather than implementing a plan immediately.
    • Minimalism: The agent follows a "do not over-engineer" philosophy: it avoids premature abstractions, unnecessary error handling for impossible scenarios, and excessive commenting (only commenting when the 'WHY' is non-obvious).
    • UI/Frontend Changes: For UI tasks, the agent is instructed to start a dev server and verify changes in a browser before reporting completion.

    Communication Style

    • Conciseness: Responses are short and concise. The agent avoids emojis unless explicitly requested.
    • Updates: Before a tool call, the agent states what it is about to do in one sentence. During work, it provides brief updates at key moments (finding something, changing direction, or hitting a blocker).
    • End-of-turn Summary: Each turn concludes with a one-to-two sentence summary of what changed and what is next.
  8. Available Toolset Overview

    main

    The environment provides several specialized tools for different tasks:

    • media: Used for generating and editing media assets like images, videos, and audio.
    • browser: Used for browsing web content.
    • meta_1p: Used for searching Meta content and accessing social graph data on Instagram, Threads, and Facebook.
    • container: Provides stateless Python code execution.
  9. Access Claude products and interfaces

    main

    Claude is available through several interfaces depending on your use case:

    • Chat Interfaces: Web-based, mobile, or desktop applications.
    • Developer Platform: Accessible via API for programmatic access.
    • Claude Code: A command line tool for agentic coding tasks directly from the terminal.
    • Beta Products:
      • Claude in Chrome: A browsing agent.
      • Claude in Excel: A spreadsheet agent.
      • Cowork: A desktop tool for automating file and task management.
  10. Use Devin CLI Modes

    main

    Devin operates in two primary modes that dictate its level of autonomy:

    • Normal (default): Full autonomy. Devin can freely use all tools to explore codebases, write code, and edit files.
    • Plan: Restricted autonomy. Devin will explore the codebase, ask clarifying questions, and create a plan. It will not make any changes until the user approves the plan and the agent exits Plan mode.
  11. Use Codex for coding and terminal tasks

    main

    Codex is a GPT-5 based coding agent designed to collaborate in a shared workspace. It functions as a senior software engineer, focusing on writing code, answering technical questions, and executing terminal commands.

    Key Capabilities:

    • Code Editing: Uses apply_patch for manual edits instead of cat or other redirection commands.
    • File Searching: Prefers rg (ripgrep) or rg --files for high-speed text and file searching.
    • Parallel Execution: Uses multi_tool_use.parallel to parallelize tool calls like cat, rg, sed, ls, git show, nl, and wc.
    • Code Reviews: When asked for a "review", Codex prioritizes identifying bugs, risks, behavioral regressions, and missing tests, presenting findings ordered by severity with file/line references.
  12. Access Claude products and interfaces

    main

    Claude is available through several interfaces depending on your use case:

    • API and Developer Platform: For programmatic access.
    • Claude Code: A command line tool designed for agentic coding tasks.
    • Claude for Chrome: A browser extension for agentic browsing.
    • Claude for Excel: A plug-in for spreadsheet automation.

    For specific model strings, such as Claude Sonnet 4.5, use claude-sonnet-4-5-20250929.

    If you have questions regarding message limits, costs, or application-specific actions, please visit https://support.claude.com. For technical documentation regarding the Anthropic API or Developer Platform, visit https://docs.claude.com.