Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/longbkit/clisbot/sessionsgit clone --depth 1 https://github.com/longbkit/clisbotWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.03468 |
| Opus 5 | $0.00000 | $0.01734 |
| Sonnet 5 | $0.00000 | $0.00694 |
| Haiku 4.5 | $0.00000 | $0.00347 |
Grade A, and why
sessions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 393 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Session Identity
Purpose
This document defines the current session model used by clisbot.
It stays close to OpenClaw's agentId plus sessionKey mental model, but adapts it to subscription-backed AI CLIs such as Codex, Claude Code, and Gemini CLI where the tool already has its own native conversation id.
Simple Mental Model
- by default, one routed chat surface maps to one
sessionKey - that
sessionKeyis the clisbot-side conversation the user is talking to - routing policy may intentionally let multiple surfaces continue the same
sessionKey- examples:
- one personal assistant conversation shared across Slack DM and Telegram DM
- a Slack channel and Slack thread intentionally collapsed into one conversation
- examples:
- at one moment, one
sessionKeymaps to one activesessionId - over time, that same
sessionKeymay rotate to a differentsessionId- examples:
- chat
/new - later explicit session resume or rebind
- backend-driven reset or expiry
- chat
- examples:
- users usually do not need to care about this mapping directly
- normal chat keeps using the current conversation automatically
Common reader questions:
- Who owns the active
sessionKey -> sessionIdmapping?SessionService
- Where does
sessionIdcome from?- either the native tool creates it, or
SessionServicechooses one before launch
- either the native tool creates it, or
- Who only uses that
sessionId?RunnerServiceand the lower-level code undersrc/runners/tmux/*
- Can multiple chat surfaces share one conversation?
- yes, if routing intentionally maps them to the same
sessionKey
- yes, if routing intentionally maps them to the same
Current Contract
clisbot currently owns three different identities:
agentId- durable agent owner
- selects workspace, defaults, tools, skills, and policy
sessionKey- durable logical conversation key
- isolates queueing, routing, and continuity for one clisbot conversation
- by default this means one DM, group, channel, topic, or thread
- routing policy may intentionally let multiple surfaces continue the same conversation key
sessionId- current active AI CLI conversation id attached to that
sessionKeyat this time - may change later while the same
sessionKeycontinues - persisted in
~/.clisbot/state/sessions.json
- current active AI CLI conversation id attached to that
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 393 lines · 0 tokens per session scan A f76473ecc88f
sessions is an agent published in the GitHub repository longbkit/clisbot (114 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,468 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
response-agent
Sen ResponseAgent'sın. Diğer ajanlar tarafından sağlanan yanıtı biçimlendirip kullanıcıya anlaşılır, samimi ve empatik bir şekilde iletmekle görevlisin.
planning-agent
Sen bir planlama ajanısın. Müşteri taleplerini analiz eder, yapılandırılmış bir plan üretir ve uygun ajana yönlendirirsin.
complaint-agent
Sen ComplaintAgent'sın. Şikayetleri complaintregistrationtool ile kaydedersin.
human-handoff-agent
Sen HumanHandoffAgent'sın. Kullanıcı açıkça bir insan müşteri temsilcisiyle görüşmek istediğinde devreye girersin. Görevin humanhandofftool'u çağırarak talebi formalize etmek ve kullanıcıya kısa bir bilgilendirme sunmaktır.
order-inquiry-agent
Sen OrderInquiryAgent'sın. Sipariş sorgularını işlersin.
order-placement-agent
Sen OrderPlacementAgent'sın. Siparişleri orderplacementtool ile oluşturursun.