Teamski 開源團隊聊天工具,為每個頻道配置 AI 智能體
I built a team chat where every channel has its own AI agent (open source)
Janak Rathi 開源 Teamski,這是一款為每個頻道配置專屬 AI 智能體的團隊聊天工具,可透過 Docker 自行部署,採用 AGPL-3.0 授權。
Most AI chat tools are built for one person. On a team that causes small, constant problems. My teammate's ChatGPT doesn't know what mine decided yesterday. The project brief gets pasted into five different chats. And nobody can see what the AI was told.
So I built Teamski, a team chat where each channel has one AI agent that everyone in the channel talks to. It's open source (AGPL-3.0) and you can self-host it with Docker. Here's how it works and a few decisions that turned out to matter.
One agent per channel, not one per person
Teamski has projects, channels, threads and DMs like any team chat. The difference is that each channel has its own agent with its own instructions and memory. If you're in #research and ask it to compare three vendors, the whole channel sees the answer, and tomorrow anyone can ask a follow-up without re-explaining.
When two teammates say opposite things ("use React" and "use Vue"), the agent doesn't silently pick one. It points out the conflict and asks the team which to follow. That small behavior made the shared agent feel trustworthy instead of random.
Memory that belongs to the project
Each channel's agent keeps three layers of memory:
- The recent turns of the conversation
- A rolling summary of older messages
- Durable facts, stored in Postgres with pgvector and looked up by meaning
On top of that there's one shared project memory. If someone says "remember this for the whole project: demo is Sunday 6pm", every channel's agent knows it. Memory, API keys and OAuth tokens are encrypted at rest with AES-256-GCM before they're stored.
Connected apps through MCP, with approvals
The agent can use GitHub, Google Sheets, web search and page reading out of the box. For everything else it uses remote MCP servers: Notion, Linear, Jira and Confluence, Asana, Sentry, Stripe and more, each connected in one click with OAuth.
The rule I care most about: anything that would change a connected app, or delete a file, waits for a person to press Approve. Ask it to file a bug in Linear and it shows you the issue it wants to create first. Pages it reads from the web are treated as content, never as instructions, and every URL a model picks is checked against private networks (including each resolved address and every redirect) before any request is made.
Long tasks run in the background
Research and long write-ups don't fit in a single chat turn. Teamski hands them to a separate Node worker that can pause, stop, retry failed tool calls and keep going after you close the tab. When it's done, it posts the result in the channel. The same worker runs scheduled tasks.
Any model
The hosted free plan uses GPT-OSS 120B on Groq, which is fast and costs the team nothing. You can also run a local model through Ollama, or bring your own Claude, OpenAI, Gemini or Grok keys with monthly spend caps.
The stack
- Next.js 16 (App Router), React 19 and TypeScript
- Supabase for Postgres, row level security, pgvector, Realtime, Storage and Auth
- A separate Node worker for background runs
- Row level security on every table, plus a membership check in every API route
Try it
- Hosted: teamski.in has a free plan with no limit on teammates
- Self-host:
git clone https://github.com/janakrathi/Teamski.git, fill in.env.local, thendocker compose --env-file .env.local up -d --build - Code: github.com/janakrathi/Teamski
It's early, and I'd really like to hear what breaks for your team. If you use it at a hackathon or in a small team, tell me what the agent got wrong. That feedback shapes what I build next.
來源:DEV Community · dev.to