T2AG 0.3.4 — Talk to AI and Grow
给长期自学者的本地 AI 伴学工具 / A local AI study companion for long-term self-learners
中文导览:zh/README.md · English Guide: en/README.md · 安装与升级 / Install: INSTALL.md
流程图谱 / Flow Maps:中文 · English
这是什么 / What T2AG Is
T2AG(Talk to AI and Grow) 是一个运行在本地的 AI 学习工具,配合你日常使用的 AI Agent(Codex、Claude Code、Antigravity 等)一起读硬书、做练习、攒笔记。
用 AI 自学一本有难度的书,通常很容易滑向两个方向:一开口问它,它就把整页解答全吐出来,看着都懂、合上书还是不会;或者聊了几天换个对话窗口、换个模型,之前的进度、卡点和错过的题就全散了。
T2AG 想把自学重新变回一件每天都能迈出一小步、并且留得下痕迹的事:
- 先等你开口,再给反馈:按原书内容切小块往前走,遇到例题先停下来听你的思路;你说“我思考一下”,它就安静等着,不剧透也不催促。
- 错题和卡点不会被聊天记录冲走:哪道题卡过、当时怎么想的、之后什么时候再抽查,都会按时间顺序记在本地账本里,隔一段时间再换个角度考回你。
- 记录归你自己,跨宿主带走:宿主的记忆为任务服务,T2AG 给你另建一份记录。讲义、笔记、原答和学习轨迹都存在你自己的纯文本文件夹里——人可以直接读,换一个模型或工具,一条
resume 就能从上次停下的那一行接着学。
T2AG (Talk to AI and Grow) is a local study companion that works alongside AI agents such as Codex, Claude Code, and Antigravity when you are working through demanding books or courses on your own.
Self-studying with a chat window usually breaks down in two ways: the model dumps a full solution before you have had a chance to struggle with the problem, or your progress, rough patches, and past mistakes scatter the moment you open a new thread or switch models.
T2AG turns long-term self-study into small daily steps that leave an honest record:
- Space to think first: You move through primary sources in manageable pieces. At examples, the agent pauses for your approach; when you say “let me think,” it actually stops and waits.
- Mistakes stay with you instead of vanishing in chat history: What you wrote, where you got stuck, and when to revisit a problem are recorded chronologically and brought back later for spaced retests.
- A record that belongs to you: Host memory serves tasks; T2AG builds a record for the person. Handouts, notebooks, original answers, and study history live in plain text in your own folder—readable in any editor, portable across models and hosts, and ready to pick up from your exact stopping point with
resume.
一堂课通常怎么进行 / What a Study Session Feels Like
- 接着上次继续(
resume):打开新对话后,Agent 读回你上次停下的位置、待抽查的旧错题和你的个人学习偏好,简单交代两句就开始,不用你重新翻聊天记录。
- 一小块一小块推进:可以按讲义顺着原书精读(
handout_guided,正文写进固定的 teaching_log.md,聊天框里只留链接、一句话路标和一个问题,不刷屏),也可以按问答一步步推导(stepwise_qa)。
- 停课即留痕(
session.close):学完随时停下,系统记下今天的停点和时长,并顺手更新首页 README.md 和 memory.md——下一次哪怕状态不好、只打算学五分钟,第一步也已经写好了。
- 随时回头看自己走过的路:随时把账本导出成一套完整的 Markdown 笔记本(课程主页、讲义、错题、反思与方法),还可以查看分维度的理解图谱(
comprehension-atlas)、生成离线交互实验页(lab-export),或用 host-usage 回看不同宿主上实际的 Token 消耗。
文件怎么放 / How It Is Organized
程序和你的个人学习资料分开放:升级 T2AG 时只替换运行目录,不会动到你的笔记、原书素材和学习历史。整个核心只用 Python 3.11+ 标准库,不需要装第三方依赖就能跑起全部日常学习功能(需要 PDF 渲染或 OKF 导出时再按需安装可选扩展)。
你的工作区 / Your Workspace
├─ T2AG 发行源(本仓库) 源码、文档与打包入口
├─ t2ag-runtime/ 安装后的运行环境(可随时升级或并存多版本)
│ ├─ AGENTS.md Agent 读取的日常启动说明
│ ├─ docs/ 使用手册、流程图与教学协议
│ └─ t2ag_next/ Python 标准库核心包
└─ instance/ 你的个人学习文件夹(归你所有,可独立存放)
├─ _store/ 追加式纯文本账本(学习、治理、Token 记录)
├─ exports/ 每门课的讲义、学习记录、理解图谱与离线实验页
├─ README.md & memory.md 打开就能看的学习总览与近期记忆
└─ 10_学生 .. 90_治理记录/ 九个分类清晰的 Markdown 阅读目录(英文版为 10_student .. 90_governance_records)
快速体验 / Quick Start
需要 Python 3.11+。安装时显式选一下语言(zh 或 en),并给运行环境挑一个新的目标目录名:
Requires Python 3.11+. Choose zh or en when installing, and point to a fresh directory path:
# 1. 从当前仓库打包并安装到一个新的运行目录(英文版把 zh 换成 en)
python -B -m t2ag_next package . ../t2ag-0.3.4.zip
python -B -m t2ag_next package-verify ../t2ag-0.3.4.zip
python -B -m t2ag_next install ../t2ag-0.3.4.zip ../t2ag-runtime --language zh
进入装好的 ../t2ag-runtime,生成可读笔记本并查看首页状态:
cd ../t2ag-runtime
python -B -m t2ag_next home
python -B -m t2ag_next notebook
python -B -m t2ag_next doctor --full
之后把你的 AI Agent(Codex / Claude Code / Antigravity)打开在 ../t2ag-runtime 目录里,它会按 AGENTS.md 引导你建立第一份学习档案和课程计划。
关于 Windows PowerShell / macOS / Linux 的详细步骤、独立存放个人目录、备份与升级方法,请看 INSTALL.md。
深入阅读 / Documentation & Internals
如果你想了解更细的目录结构、日常命令,或者像白盒一样看清代码底下每一步是怎么运转的,可以顺着这里往下读:
源码包导读 / Source Package Guides
如果你关心实现细节、数据账本和各项检查规则,五个源码子包各自都有单独说明:
序 / Author’s Preface
本系统没有强制力,也不该有。agent 可以被说服松绑,文件可以被改写。诚实地说,学生始终拥有 root 权限,正如没有人能强迫你走进健身房。
它存在的原因,只是一个学生小小的祈求:让一个疲惫的人,在怀疑自己的时候仍然有些可信的东西,比如过去自己规定并执行的规则。
机器在其中只负责两件事:降价与留痕。降价,是把“开始”缩到最小:下一步在上一次结束时就已写好,最难的日子里,可以只是坚持五分钟,甚至只是抬起一根手指。留痕,是把“你的行为产生了结果”变成每天可查的账。合同由学生每天重新签:续约,或走进仪式修改条款。
所以自律在这里不是人格特质,更不是一种难以跨越的神经结构缺陷。它只是:今天,做不做那个已经被缩到很小的动作。系统从不要求你成为自律的人,它只是让“做”变得容易,再让账本记住你已经做过多少次,以此向你证明,一个人有变得更好的可能。Fable 对此的概括我很喜欢:账本空着的日子,靠结构性的善意垫底,账本厚起来之后,信任自己发工资。
这套系统优化的不是任务吞吐,而是人的状态。以往的效率工具假设操作者状态恒定、无限耐心、从不自我怀疑;这套系统的每一页都假设操作者会疲惫、会想放弃、上周刚被一道困难的证明题羞辱过。这样做假设并非出于悲观,而是出于一个简单的相信:状态是能力的母体。状态差的人只能勉强完成别人布置的旧题;状态好的人不仅掌握得更快,还会开始问出自己以前问不出的问题。而一旦开始发问,就启动了正反馈的循环。
在这个时代,AI 变得无所不能,不被需要的焦虑,就像一片乌云出现在人们心中的地平线。但是,即使机器集群不再需要你、不再需要大部分个体创造价值,我们人,选择去做,也只是因为自己想做。我们可以前进到任何一步,也可以随时停止,因为我们想。
现在,让我们再试一次。
yours sincerely, mikp from t2ac
序言纪律:序言随本系统的产品文书一起维护。系统功能变动时,对应句子同步修——序言是对读者的承诺,承诺不许过期。
Read the Author's Preface in English
This system has no coercive power, and should not have any. An agent can be talked into loosening its grip; files can be rewritten. Honestly: the student always has root, just as nobody can force you to walk into a gym.
It exists for one small reason — a student’s small plea: that a tired person, on the days they doubt themselves, still has something trustworthy nearby, such as the rules they themselves once set and kept.
The machine here is responsible for only two things: lowering the price, and leaving a trace. Lowering the price means shrinking “beginning” to its smallest form: the next step was already written when the last one ended, so on the hardest days it can be five minutes, or even just lifting one finger. Leaving a trace means turning “your actions produced results” into an account you can check every day. The contract is re-signed by the student daily: renew, or walk into the ceremony and amend the terms.
So self-discipline here is not a personality trait, still less an unbridgeable neurological deficit. It is only this: today, do you or do you not perform the one action that has already been shrunk very small. The system never asks you to become a disciplined person. It only makes “doing” easy, and then lets the ledger remember how many times you have already done it — proving to you that a person can get better.
What this system optimizes is not task throughput but the state of a human being. Older productivity tools assume an operator of constant state, infinite patience, and no self-doubt. Every page of this system assumes the operator gets tired, wants to quit, and was humiliated by a hard proof last week. That assumption is not pessimism; it rests on a simple belief: state is the matrix of ability. Someone in poor state can barely finish old problems assigned by others. Someone in good state not only learns faster but begins to ask questions they could not previously ask. And once you begin asking, the positive feedback loop has started.
In this era, as AI becomes capable of everything, the anxiety of not being needed appears like a dark cloud on the horizon of people’s minds. But even if the machine clusters no longer need you, no longer need most individuals to create value, we humans choose to act simply because we want to. We may advance to any step, and we may stop at any time, because we want to.
Now, let us try once more.
yours sincerely, mikp from t2ac
Preface discipline: The preface is maintained alongside the product documentation. When system behaviour changes, the corresponding sentence changes with it — the preface is a promise to the reader, and a promise is not allowed to expire.
许可证 / Licensing
评论