agentleFS
creedantscreedants/pstack-t3/AGENTS.md

pstack-t3

AGENTS.md3 starsChanged 57 days agoMITView on GitHub

pstack-t3 is Lauren Tan's pstack, ported to run natively in T3 Code on any provider through T3's orchestrator V2 tools. Start from the upstream file and change only what T3 changes. Upstream's rules, steps, voice, and rigor carry over unchanged. A port that rewrites the engineering content is a regression. Follow upstream's: short declarative sentences, no long dashes, no mid-sentence colons, no hedging. Every instruction names a concrete tool, path, or check. Never commit credentials, transcripts, local configs, catalog snapshots,…

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 1 is common, 2 are distinctive, and 4 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Start from the upstream file and change only what T3 changes.

    line 19
  2. Very specific:

    After opening or driving a PR, add the link_pull_request step.

    line 35
  3. Very specific:

    Keep tool names unprefixed (delegate_task, not mcp__t3-code__delegate_task).

    line 37
  4. Very specific:

    Run python3 scripts/build.py.

    line 38
  5. Very specific:

    Run python3 scripts/build.py --update-lock only after reviewing that the override matches the current upstream file.

    line 39
  6. Distinctive:

    Follow upstream's: short declarative sentences, no long dashes, no mid-sentence colons, no hedging.

    line 43
  7. Common:

    Never commit credentials, transcripts, local configs, catalog snapshots, or thread IDs.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Working on pstack-t3

pstack-t3 is Lauren Tan's pstack, ported to run natively in T3 Code on any provider through T3's orchestrator V2 tools.

Layout

  • vendor/pstack/ is upstream, byte-identical to the commit in upstream.json. Never edit it. scripts/sync_upstream.py replaces it.
  • t3/runtime.md becomes skills/pstack-runtime/SKILL.md. It is the single contract for delegation, roles, isolation, scheduling, verification, history, and PR linking. Skills link to it instead of restating it.
  • t3/scripts/roles.py resolves roles to delegate_task targets. Tests in tests/.
  • t3/setup.md becomes skills/setup-pstack/SKILL.md.
  • t3/overrides/<skill>/<path> replaces vendor/pstack/skills/<skill>/<path> wholesale.
  • t3/added/<skill>/<path> adds files upstream lacks.
  • t3/removed.txt lists upstream paths pstack-t3 does not ship.
  • t3/agents/ holds the personas copied into skills/pstack-runtime/agents/.
  • skills/ is generated. Never edit it by hand. Run python3 scripts/build.py.

Porting an upstream file

Start from the upstream file and change only what T3 changes. Upstream's rules, steps, voice, and rigor carry over unchanged. A port that rewrites the engineering content is a regression.

  1. Copy vendor/pstack/skills/<path> to t3/overrides/<path>.
  2. Replace each Cursor mechanism with its T3 equivalent from t3/runtime.md:
    • Task calls, subagent_type, run_in_background, readonly, environment: "cloud", cloud_base_branch become delegate_task with mode: "async", a role, a resolved target, and a read-only brief where upstream said readonly.
    • A model line in ~/.cursor/rules/pstack-models.mdc becomes "the <role> role" resolved per the runtime's Roles section. Delete hard-coded slug defaults and family-prefix fallback rules. The runtime's defaults and fallback replace them.
    • inherit-parent or auto becomes inherit.
    • /loop, automations, hourly ticks, and scheduled wakeups become schedule_task when they are a cadence with no pull request event.
    • A wait on a pull request's checks, reviews, or conflicts, including scripts/watch-pr and a poll loop, becomes watch_pull_request on the thread that owns the pull request.
    • A wait whose predicate is the merge also keeps the schedule_task heartbeat the runtime's Pull request watching section requires.
    • Cloud agents become child tasks. Long-lived PR owners and coordinator-visible owners become t3_thread_launch threads with a worktree strategy.
    • Transcripts and cloud-agent URLs become T3 threads read with t3_thread_search and t3_thread_read.
    • control-ui becomes T3 preview tools. control-cli becomes driving the CLI in the terminal.
    • AskQuestion becomes the host's question tool.
    • Cursor's create-skill becomes the pstack-author-skill skill.
    • cursor-team-kit skills (deslop, control-ui, control-cli) become "if installed" with a stated fallback.
    • After opening or driving a PR, add the link_pull_request step.
  3. Link the runtime by relative path (../pstack-runtime/SKILL.md from a SKILL.md, ../../pstack-runtime/SKILL.md from a playbook) when the step needs it. Do not paste runtime content.
  4. Keep tool names unprefixed (delegate_task, not mcp__t3-code__delegate_task).
  5. Run python3 scripts/build.py. The build fails on Cursor leftovers (see scripts/check.py), broken links, bad frontmatter, or override drift.
  6. Run python3 scripts/build.py --update-lock only after reviewing that the override matches the current upstream file.

Writing style

Follow upstream's: short declarative sentences, no long dashes, no mid-sentence colons, no hedging. Every instruction names a concrete tool, path, or check.

Tests

python3 -m unittest discover -s tests -v
python3 scripts/build.py

Never commit credentials, transcripts, local configs, catalog snapshots, or thread IDs.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.