talkcody AGENTS.md

talkcody AGENTS.md is an instructions file for Codex, OpenCode from talkcody/talkcody. It costs 1,908 tokens per session, scanned A, original, MIT.

A development guide for TalkCody, an AI-agent application whose desktop, mobile, web, command-line, and chat clients use one shared backend service. It describes the system design, technologies, and frontend structure.

In plain words
What is it for?
Use it when developing or reviewing TalkCody’s clients, backend, or agent features. It is also a reference for understanding the project’s architecture and technology choices.
Why use it?
It helps an AI assistant understand how the different clients connect to the same agent service. This reduces the risk of making a change that works in one client but conflicts with the shared design.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/talkcody/talkcody/agents-md
Clone the repo
git clone --depth 1 https://github.com/talkcody/talkcody

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for talkcody AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/talkcody/talkcody/agents-md.svg)](https://agentmods.dev/instructions/talkcody/talkcody/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/talkcody/talkcody/agents-md"><img src="https://agentmods.dev/badge/instructions/talkcody/talkcody/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,908 This file is loaded in full into every session.
When invoked 1,908 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5 $0.01908 $0.01908
Opus 5 $0.00954 $0.00954
Sonnet 5 $0.00382 $0.00382
Haiku 4.5 $0.00191 $0.00191

Measured 4d ago against content hash f04f8169547e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

talkcody AGENTS.md 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 4d 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.

AGENTS.md · 248 lines

How it starts

The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project Development Guide for AI Agents

Project Overview

TalkCody 1.0 adopts a unified AI Agent architecture that supports both Local and Service deployment modes. All UI clients (Desktop, Mobile, Web, CLI, IM bots) function as thin interaction layers, communicating with the backend Agent service through a unified interface.

Architecture Diagram

+----------------------------------------------------------------------------------+
|                                 UI / CLIENT LAYER                                |
+----------------------------------------------------------------------------------+
|  +----------+  +----------+  +----------+  +----------+  +----------+  +--------+ |
|  | Desktop  |  | Mobile   |  |   Web    |  |   CLI    |  |  IM Bots |  |  Other | |
|  | (mac/lnx)|  | iOS/Andr |  | Browser  |  |  TTY     |  | Feishu/  |  |  SDKs  | |
|  | Windows  |  |          |  |          |  |          |  | TG/Slack |  |        | |
|  +----------+  +----------+  +----------+  +----------+  +----------+  +--------+ |
+----------------------------------------------------------------------------------+
        |                                    |
        |                                    |
   +----+----+                          +----+----+
   |  LOCAL  |                          | SERVICE |
   |  MODE   |                          |  MODE   |
   | (Device)|                          | (Cloud) |
   +----+----+                          +----+----+
        |                                    |
        +----------------+-------------------+
                         |
                         v
+----------------------------------------------------------------------------------+
|                                  AGENT GATEWAY                                   |
|  +------------------+  +------------------+  +------------------+  +-----------+ |
|  | Auth & Tenancy   |  | Routing & Policy |  | Rate Limit & QoS |  | API Mgmt | |
|  +------------------+  +------------------+  +------------------+  +-----------+ |
|  +------------------+  +------------------+  +------------------+              |
|  | Session Manager  |  | Context Broker   |  | Tool Registry    |              |
|  +------------------+  +------------------+  +------------------+              |
+----------------------------------------------------------------------------------+
                                       |
                                       v
+----------------------------------------------------------------------------------+
|                              AI AGENT FRAMEWORK (Rust)                           |
|                                                                                  |
|   +--------------------+     +--------------------+     +--------------------+   |
|   |       TOOLS        |     |       SKILLS       |     |      MEMORY        |   |
|   | (exec, file, db)   |     | (domain modules)   |     | (short/long term)   |   |
|   +--------------------+     +--------------------+     +--------------------+   |
|                                                                                  |
|   +--------------------+     +--------------------+     +--------------------+   |
|   |      CONTEXT       |     |   OBSERVABILITY    |     |        LLM         |   |
|   | (state & buffers)  |     | (logs/metrics)     |     | (local/service)    |   |
|   +--------------------+     +--------------------+     +--------------------+   |
|                                                                                  |
|                         +------------------------------+                         |
|                         |          AGENT LOOP          |                         |
|                         |  Plan -> Act -> Observe ->   |                         |
|                         |  Reflect -> Update Context   |                         |
|                         +------------------------------+                         |
|                                                                                  |
+----------------------------------------------------------------------------------+

Read the full file on GitHub · 248 lines

Changes

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.

  1. 4d ago First seen · 248 lines · 1,908 tokens per session scan A f04f8169547e

Subscribe to this mod's changes

talkcody AGENTS.md is an instructions file published in the GitHub repository talkcody/talkcody (478 stars, last pushed 3mo ago), licensed MIT. It adds 1,908 tokens to every session, about $0.0095 per session on Opus 5. 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.