惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Spread Privacy
Spread Privacy
Engineering at Meta
Engineering at Meta
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
D
DataBreaches.Net
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
L
LangChain Blog
Jina AI
Jina AI
MongoDB | Blog
MongoDB | Blog
B
Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
T
Threatpost
V
V2EX
Security Archives - TechRepublic
Security Archives - TechRepublic
GbyAI
GbyAI
Scott Helme
Scott Helme
Cyberwarzone
Cyberwarzone
H
Help Net Security
大猫的无限游戏
大猫的无限游戏
Security Latest
Security Latest
T
The Exploit Database - CXSecurity.com
T
Tenable Blog
S
Schneier on Security
博客园 - 叶小钗
Apple Machine Learning Research
Apple Machine Learning Research
F
Full Disclosure
腾讯CDC
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Security @ Cisco Blogs
A
Arctic Wolf
S
Securelist
Recent Commits to openclaw:main
Recent Commits to openclaw:main
T
Tor Project blog
The Register - Security
The Register - Security
L
LINUX DO - 最新话题
Blog — PlanetScale
Blog — PlanetScale
U
Unit 42
V
Vulnerabilities – Threatpost
Google Online Security Blog
Google Online Security Blog
L
LINUX DO - 热门话题
TaoSecurity Blog
TaoSecurity Blog
Y
Y Combinator Blog
博客园 - 三生石上(FineUI控件)
C
CERT Recently Published Vulnerability Notes

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor GitHub - GenAI-Gurus/awesome-eu-ai-act: Curated tools, official sources, OSS, templates, and guides for EU AI Act compliance. Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders How to Switch AI Chatbots and Why You Might Want To GitHub - MattMessinger1/agentic_refund_guardrail: Safe refund policy layer for AI agents — Python + TypeScript. Same behavior, shared tests. Adam/papers/emergent_values_whitepaper.md at master · strangeadvancedmarketing/Adam Ask HN: How do you stop playing 20 questions with your AI coding tools How far can automation and AI support psychotherapy? - @theU GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits A Mac Studio for Local AI — 6 Months Later A History of the Early Years of AI at the University of Edinburgh Why AI Coding Tools Still Feel Stuck on Localhost MSN AI Datacenters Are Becoming Strategic Targets twitter.com Penn Researchers Use AI to Surface Unreported GLP-1 Side Effects in Reddit Posts Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 AI models are terrible at betting on soccer—especially xAI Grok GitHub - xialeistudio/echoic GitHub - HimashaHerath/github-dev-wrapped: AI-powered weekly GitHub activity reports deployed to GitHub Pages GitHub - alejandrobalderas/claude-code-from-source: Architecture, patterns & internals of Anthropic's AI coding agent — reverse-engineered from source maps AI and Tech brief: Ireland ascendant GitHub - Titovilal/context0: Context0 - Never Surrender Training for a Marathon with an AI Coach: What Worked and What Didn't Cyber Pulse: Agentic Intel - Apps on Google Play I Built an AI PR Reviewer That Catches Bugs by Not Looking for Bugs Gen Z workers are so fearful AI will take their job they’re intentionally sabotaging their company’s AI rollout | Fortune How AI Is Reimagining the Game of Golf–For Both Players and Courses GitHub - nattergabriel/reseed: A CLI tool for managing and distributing agent skills across projects Is SVG the final frontier? My AI workflow evolved from prompts to a near-autonomous workflow MLSharp Help - 3DGS Viewer & Generator I put my cognitive field based AI's runtime on GitHub Is Numble the first AI-proof game? A3: Kubernetes for autonomous AI agent fleets | Emergent Principles Deepali Vyas ("The Elite Recruiter") GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Unionized ProPublica staff are on strike over AI, layoffs, and wages Unleashing the Advantage of Quantum AI We're heading for an AI-fueled 'dementia crisis,' brain scientist warns The AI-Assisted Breach of Mexico's Government Infrastructure [pdf] GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. MSN GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness We gave an AI a 3 year retail lease in SF and asked it to make a profit | Andon Labs AI Code is Hollowing Out Open Source, and Maintainers are Looking the Other Way What leaked "SteamGPT" files could mean for the PC gaming platform's use of AI AI is the boss at this retail store. What could go wrong? GitHub - Wuzu11517/agentic-proxy: Local proxy meant to help reduce With Drones, Geophysics and ArtificiaI Intelligence, Researchers Prepare to Do Battle Against Land Mines A Single Operator, Two AI Platforms, Nine Government Agencies: The Full Technical Report 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - inevolin/resume-cli: Hit Claude usage limits? Resume any AI coding session elsewhere. Switch tools at zero friction. GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. How to Build a Secure AI PR Reviewer with Claude, GitHub Actions, and JavaScript This Startup Wants You to Pay Up to Talk With AI Versions of Human Experts Intel Arc Pro B70 Brings 32GB VRAM to Local AI for $949 WordPress 7.0: The Good, the AI, and the Still Missing AI on the couch: Anthropic gives Claude 20 hours of psychiatry IatroBench: Pre-Registered Evidence of Iatrogenic Harm from AI Safety Measures AI Agents Know About Supabase. They Don't Always Use It Right. The history and future of AI at Google, with Sundar Pichai Inside an AI‑enabled device code phishing campaign How Meta Used AI to Map Tribal Knowledge in Large-Scale Data Pipelines AI for Systems: Using LLMs to Optimize Database Query Execution Forecasting the Economic Effects of AI Introducing Tinker: Play with AI, bring your ideas to life AI sheds light on an ancient gaming mystery People really hate AI but not as much as Iran—or Democrats | Fortune What is an AI Product Engineer? Phoebe Gates wants her $185 million AI startup to succeed with 'no ties to my privilege or my last name': 'I have a chip on my shoulder' | Fortune
GitHub - canatara/phd_fleet: Manage your own AI research lab. Act as the advisor to a fleet of virtual PhD students. Assign tasks, review reported results, and iterate on their independent research projects directly through a Slack interface.
canatara · 2026-06-20 · via Hacker News - Newest: "AI"

phd_fleet — run a fleet of "PhD student" agents over Slack

A small Python toolkit that lets one researcher — the advisor — spawn and converse with a fleet of Claude Code agents through Slack. Each agent is its own Claude Code session in its own workspace directory; Slack messages drive turns; between turns, the agent's filesystem is its long-term memory.

A separate coach agent watches how the advisor advises and gives evidence-based feedback on mentoring craft. The two intertwined goals: get real research done and grow as a mentor.

The host can be anything that runs Python and the Claude Code CLI — a laptop, a lab workstation, a cloud VM, an HPC login node. The bot connects to Slack over Socket Mode, so the host needs no inbound HTTP and works behind a NAT or in a private subnet.


Table of contents

  • What you get
  • Requirements
  • Quick start
  • Setup in detail
  • Usage
  • How it works
  • Configuration
  • Security model
  • Limitations
  • Project layout
  • License

What you get

  • One Slack channel per agent. #student-<name> for each student you spawn; #mentor-coach for the coach (created automatically at first startup).
  • Three slash commands.
    • /new-student <name> <briefing> scaffolds a workspace, creates the channel, and kicks off the first turn.
    • /coach-review <name> [days] asks the coach to review your mentoring of a specific student.
    • /claude-status prints a quick local readout — turns, last context size, cumulative tokens, model, cost, and GitHub link per agent. No Claude calls; just a registry view.
  • Per-agent journal. JOURNAL.md in each agent's workspace is append-only, one section per turn, ending with a Did / Found / Next block.
  • Shared paper library. library/ at the project root is a single pool every agent reads from and contributes to. First reader of a paper writes the canonical summary; later readers add a separate notes file. library/README.md is a regenerated index — agents only read it.
  • Per-turn commits to per-agent GitHub branches (optional). If you configure an origin, after each turn the bot stages that agent's workspace into a fresh commit on agent/<name> and force-pushes it with a lease. The Slack final message links to the branch for review. With no origin, this step is skipped silently.
  • Quiet by default. During a turn the bot posts at most one short "started" message and the agent's final reply — no per-tool stream of decorative messages. Failures and timeouts post a :warning: line.

Requirements

  • Python 3.11 or newer.
  • The Claude Code CLI on PATH. The bot shells out to it, so claude --version must work in the same shell where you run the bot.
  • A Claude.ai subscription or an Anthropic Console API key (see Claude authentication).
  • A Slack workspace (free or paid) where you can install a custom app.
  • Optional: a GitHub repository if you want per-turn review branches. The bot runs fine without one.

Quick start

git clone <this repo URL>
cd phd_fleet
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt

cp .env.example .env          # then fill in the three required values

.venv/bin/python bot.py

Then in Slack, run /new-student alice "your project briefing" to spawn your first agent. The rest of this section explains each step.

Setup in detail

1. Install dependencies

See the Quick start above. A virtualenv is recommended but not required — any environment with the dependencies in requirements.txt works.

2. Create the Slack app

The repo ships slack-manifest.yaml — a manifest that already lists the three slash commands, the bot scopes, and the event subscriptions. To use it:

  1. Go to https://api.slack.com/appsCreate New AppFrom a manifest.
  2. Pick your workspace, paste the contents of slack-manifest.yaml, and confirm.
  3. Under Basic Information → App-Level Tokens → Generate Token and Scopes, create a token with the connections:write scope. Copy it (xapp-…) — that's your SLACK_APP_TOKEN.
  4. Under OAuth & Permissions, install the app to your workspace. Copy the Bot User OAuth Token (xoxb-…) — that's your SLACK_BOT_TOKEN.

3. Configure environment

cp .env.example .env
# edit .env and fill in SLACK_BOT_TOKEN, SLACK_APP_TOKEN, ADVISOR_SLACK_USER_ID

To find your ADVISOR_SLACK_USER_ID: in Slack, click your profile picture → View full profile → the menu → Copy member ID. It looks like U0123ABC456. The bot rejects messages from anyone whose user ID does not match this value — the only access-control surface.

4. Claude authentication

Two paths, in order of preference:

  • Subscription (recommended). If claude is OAuth-authenticated to your Claude.ai account — i.e., ~/.claude/.credentials.json exists from running claude /login once — the bot just uses it. Leave ANTHROPIC_API_KEY unset.
  • API key. To pay per token through the Anthropic Console, set ANTHROPIC_API_KEY=sk-ant-… in .env. The Agent SDK picks it up and ignores the subscription path.

5. Run

You should see:

… INFO ready — listening on Socket Mode (advisor=U0123ABC456)
… INFO A new session (s_…) has been established
… INFO ⚡️ Bolt app is running!

Health check: in any channel where the bot is present, @<bot> ping returns pong.

For long-running operation, run the bot under a process supervisor — tmux is the simplest path, systemd --user if you want auto-restart on crash. The bot reconnects to Slack on transient disconnects but cannot survive a full process exit without a supervisor.

Usage

Spawning a student

/new-student alice "Investigate AlphaFold confidence on disordered regions. Read the recent literature, then propose a small experiment."

What this does:

  1. Validates the name against ^[a-z0-9][a-z0-9_-]{0,40}$.
  2. Scaffolds students/alice/ from student_template/, filling in the name and project briefing.
  3. Creates #student-alice in Slack and invites you.
  4. Registers Alice in agents.json (the runtime registry).
  5. Kicks off the first turn — the agent reads its CLAUDE.md, gets oriented, and reports back.

After that, every message you send in #student-alice becomes the next prompt. The agent's session resumes across turns and across bot restarts.

Talking to the coach

The coach has its own channel, #mentor-coach, created at first bot startup. Two ways to use it:

  • Free chat. Anything you write in #mentor-coach becomes a prompt — "How should I handle a student proposing a method I think is wrong?" The coach responds in a coaching voice, asks clarifying questions, and names a relevant framework when appropriate.
  • Structured review. /coach-review alice 7 pulls the last 7 days of #student-alice plus a recent excerpt of Alice's JOURNAL.md, and asks the coach to review your mentoring of Alice — what was done well, what could be sharper, each tied to a specific moment. The result is posted in #mentor-coach, and the coach also updates a longitudinal mentor/coach/notes/advisees/alice.md.

Quick status

Ephemeral reply listing every agent: kind, turns taken, last context size, cumulative input/output tokens, model, total cost, and the GitHub branch link if available. Pure local read — does not call Claude.

Listing and archiving agents

Manual on purpose. To see what you have, look in students/. To archive a student: mv students/<name> students/_archived/ and remove its entry from agents.json. Slash commands for operations you'll do twice a year aren't worth their weight.

How it works

Students

Each student lives in students/<name>/:

  • CLAUDE.md — persona and project briefing, filled in at create time from student_template/.
  • JOURNAL.md — append-only research log, one section per session.
  • notes/ — private scratchpads, design notes, intermediate analyses.
  • the rest of the directory — actual work artifacts (code, data, results).

Each student is told to check library/ (the shared pool) before reading anything new, to write new paper summaries there, and never to run git — the bot handles publishing.

The lab-wide habits and conventions live in LAB_CONTEXT.md, auto-appended to every agent's system prompt. Edit it once and every agent picks up the new rules on its next turn.

The coach

The coach lives in mentor/coach/, with the same workspace structure as a student plus notes/advisees/<name>.md for longitudinal observations. Its CLAUDE.md carries a coaching persona and a vocabulary of named frameworks (GROW; SBI; Vygotsky's ZPD; feedforward). It uses the same runner, the same per-agent lock, and the same scaffolding as a student. The coach is reactive only: it speaks when summoned — there is no auto-review after every student turn.

The shared library

library/ is a single directory at the project root that every agent reads from and writes to:

  • First reader of paper X writes library/<citekey>.md (a markdown summary with YAML frontmatter) and library/<citekey>.pdf if it's freely downloadable.
  • Later readers who want to add their take write a separate file — library/<citekey>__notes_<their-name>.md. They never edit a peer's summary.
  • library/README.md is the index. Agents only read it. The bot regenerates it after each turn by walking library/*.md, parsing frontmatter, and rewriting the table.

Citekey collisions (two papers by the same author in the same year) are resolved with letter suffixes — jumper2021a, jumper2021b. The full conventions live in LAB_CONTEXT.md. This per-file-ownership shape avoids the failure mode where two agents append to the same index at once and clobber each other.

Per-turn GitHub publishing

If you've configured origin, the bot publishes each agent's workspace to a per-agent branch (agent/<name>) after every turn, using a force-push with a lease. It stages into a temporary git index so the bot's commits never disturb your working tree. The Slack final message links to the branch on GitHub. The step-by-step rationale is documented in the comments of src/agents.py (commit_and_push).

If you don't want this, simply don't add an origin. The bot skips the publish step silently and the Slack messages won't include review links.

Configuration

Most behavior is set in .env; the per-agent .claude/settings.json files carry the permission deny-list (see Security model). The .env knobs:

Variable Default Purpose
SLACK_BOT_TOKEN required Bot User OAuth Token (xoxb-…).
SLACK_APP_TOKEN required App-Level Token with connections:write (xapp-…).
ADVISOR_SLACK_USER_ID required The single user allowed to talk to the bot.
ANTHROPIC_API_KEY unset Optional. Set to use a Console API key instead of subscription auth.
AGENT_TURN_TIMEOUT_SECONDS 3600 How long one turn may run before being canceled.

Security model

This is defense-in-depth, not a sandbox. Each agent's .claude/settings.json carries a permission deny-list shipped in both templates:

  • Sensitive paths are never read: **/.env*, **/.ssh/**, **/.aws/**, **/.config/gh/**, id_rsa*, id_ed25519*, /etc/**, /root/**.
  • Privilege-escalation and cluster-job verbs are never run: sudo, su, chmod, chown, srun, sbatch, scancel, salloc.

Per-deployment additions (e.g. other cluster schedulers) are easy to add to the same file. The deny-list is not isolation: a determined prompt-injection from a fetched paper could still misuse Bash or Write within the agent's workspace. Run the bot only on a host where that risk is acceptable, and only ever as the single configured advisor — the bot drops every Slack message whose user ID doesn't match ADVISOR_SLACK_USER_ID.

Limitations

  • Single advisor. No team / multi-advisor mode — the framework is shaped around one researcher's attention.
  • Reactive only. Agents run when you message them. There is no scheduled wake-up, no inter-turn autonomy, no proactive coach observation.
  • No web UI. Slack is the UI.
  • No automated test suite. Verification is by smoke-running the bot.
  • Not a sandbox. See Security model.

Project layout

phd_fleet/
├── bot.py                  # Slack entry point: handlers, bootstrap, main()
├── src/
│   ├── paths.py            # path constants, env config, logger, NAME_RE
│   ├── agents.py           # registry, workspace scaffolding, git publishing
│   ├── library.py          # LAB_CONTEXT loader + library/README.md index
│   ├── slack_io.py         # Slack helpers, status, markdown → mrkdwn renderer
│   └── runner.py           # run_agent — the per-turn Agent SDK driver
├── requirements.txt
├── pyproject.toml          # ruff / isort config
├── slack-manifest.yaml     # paste into api.slack.com/apps to provision the app
├── .env.example            # copy to .env and fill in the required values
├── LAB_CONTEXT.md          # lab-wide rules, auto-appended to every agent
├── student_template/       # scaffold copied into students/<name>/
│   ├── CLAUDE.md
│   ├── JOURNAL.md
│   ├── notes/
│   └── .claude/settings.json
├── mentor_template/        # scaffold for the coach (created once at startup)
│   ├── CLAUDE.md
│   ├── JOURNAL.md
│   ├── notes/advisees/
│   └── .claude/settings.json
├── library/                # shared paper pool
│   └── README.md           # regenerated index; never edit by hand
├── students/<name>/        # one workspace per student (created at runtime, gitignored)
├── mentor/coach/           # the coach's workspace (created at startup, gitignored)
└── agents.json             # runtime registry (created at runtime, gitignored)

agents.json, the virtualenv, and the per-agent workspaces under students/ and mentor/ are all gitignored. The intent: the repo tracks the toolkit — the bot, the templates, the library scaffolding — while each agent's evolving work lives on its own GitHub branch via the per-turn publishing.

License

MIT.