Skip to content

Instantly share code, notes, and snippets.

@mz0
Last active August 24, 2025 09:51
Show Gist options
  • Select an option

  • Save mz0/bd2ac301235ae29a413f1cfd586c74d7 to your computer and use it in GitHub Desktop.

Select an option

Save mz0/bd2ac301235ae29a413f1cfd586c74d7 to your computer and use it in GitHub Desktop.
write this prompt for Cline AI-agent:

@/src/schemas/note.ts @/src/services/note-manager.ts

create a schema and message manager like note.ts.
Messages will be between the Telegram user (that's @/src/schemas/user.ts) and an AI-agent.
You need to save the last 100 messages, when you reach 100 messages, 
you need to take the last 50 messages and summarize them, 
make a stub function for that
  • Anthropic Constitutional Prompting format
  • Anthropic Tool Use / Function Calling with structured input,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment