Skip to content

honganh1206/tinker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

justforfunnoreally.dev badge

Tinker

A background coding agent. Give it a prompt, walk away, get results.

Development

Add API keys as environment variables:

export ANTHROPIC_API_KEY="your-api-key-here"
export GOOGLE_API_KEY="your-api-key-here"
export BRAVE_SEARCH_API_KEY="your-api-key-here"  # Optional, enables web search

Dependencies

ripgrep

Discord

To interact with the agent through Discord, set up a Discord bot and run the Discord channel:

  1. Create a Discord application and bot at the Discord Developer Portal.

  2. Under Bot, copy the bot token and enable the Message Content Intent (the channel also requires the Guild Messages and Direct Messages intents).

  3. Invite the bot to your server with the bot scope and at least the following permissions: View Channels, Send Messages, Create Public Threads, Send Messages in Threads, and Read Message History.

  4. Export the bot token (and optionally an instance name) as environment variables:

    export DISCORD_BOT_TOKEN="your-discord-bot-token"
  5. Start NATS and the Discord channel alongside the runner:

    make local-nats     # Start NATS JetStream (in a separate terminal)
    make run-channel    # Build and start the Discord channel
    make run-runner     # Start the agent runner (in a separate terminal)

    Or start everything (NATS, channel, runner, and web UI) at once:

    make dev-all
  6. In Discord, mention the bot (@your-bot your prompt) in any channel it can read. The channel will create a thread for the conversation; reply inside the thread (mentioning the bot) to continue.

Sandbox

Execute go generate ./... to fetch the binary dependencies

MCP

To add MCP servers:

tinker mcp --server-cmd "my-server:npx @modelcontextprotocol/server-everything"

About

☁️ Cloud-native background coding agent

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors