xitter
Twitter/X CLI for agents: read timelines and mentions, post and reply, follow and unfollow, and manage lists and bookmarks from the command line.
Status
Scaffold. The domain surface described above is not implemented yet — there is no X API client, no auth handling, and no timeline/post code in the package today. What ships right now is the agent-first CLI skeleton and the mesh-agent baseline this repo was scaffolded with:
- An agent-first CLI cited from teken
(
afi-cli) — the runtime package has no third-party dependencies. - A mesh identity —
culture.yaml(suffix+backend) plus the matching resident prompt file (CLAUDE.md, sinceculture.yamldeclaresbackend: claude). - Four harness prompt files, one per agent harness, each read by exactly
one of them (see Prompt files by harness). All
four harnesses are usable interactively regardless of which one
culture.yamlnames as the mesh resident. - The canonical guildmaster skill kit under
.claude/skills/, vendored cite-don't-import. Seedocs/skill-sources.md. - A build + deploy baseline — pytest, lint, the agent-first rubric gate, a committed-secret scan, a per-harness config smoke check, and PyPI Trusted Publishing wired into GitHub Actions.
Quickstart
uv sync
uv run pytest -n auto # run the test suite
uv run xitter whoami # identity from culture.yaml
uv run xitter learn # self-teaching prompt (add --json)
uv run teken cli doctor . --strict # the agent-first rubric gate CI runs
CLI
| Verb | What it does |
|---|---|
whoami |
Report this agent's nick, version, backend, and model from culture.yaml. |
learn |
Print a structured self-teaching prompt. |
explain <path> |
Markdown docs for any noun/verb path. |
overview |
Read-only descriptive snapshot of the agent. |
doctor |
Check the agent-identity invariants (prompt-file-present, backend-consistency). |
cli overview |
Describe the CLI surface itself. |
Every command supports --json. Results go to stdout, errors/diagnostics to
stderr (never mixed). Exit codes: 0 success, 1 user error, 2 environment
error, 3+ reserved.
The Twitter/X verbs (timeline, mentions, post, reply, follow, lists,
bookmarks) are planned and land as noun groups under the same contract —
see CLAUDE.md for how a noun group registers.
Prompt files by harness
Four harnesses, four root files, no shared base — each file is read by exactly one harness:
| Harness | File(s) |
|---|---|
| Claude Code | CLAUDE.md |
| Pi / associate | AGENTS.override.md + .pi/SYSTEM.md |
| colleague | AGENTS.colleague.md |
| Qwen Code | QWEN.md |
Claude Code — CLAUDE.md is the fullest write-up of the repo's
conventions; read it first.
Pi / associate — AGENTS.override.md replaces this directory's
AGENTS.md/CLAUDE.md in Pi's context layer, so Pi does not inherit
CLAUDE.md. .pi/SYSTEM.md replaces Pi's default system prompt with the
non-coding associate identity (read/find/summarize only).
colleague — colleague's prompt cascade is AGENTS.md →
AGENTS.colleague.md → AGENTS.colleague.<model>.md. This repo ships only
the middle layer: there is no AGENTS.md (a shared base across harnesses was
considered and rejected) and no per-model override file.
Qwen Code — Qwen Code reads QWEN.md and AGENTS.md; since there is no
AGENTS.md, QWEN.md is its sole source of guidance.
There is intentionally no AGENTS.md at the root — each harness gets an
unrelated file rather than cascading from a shared base. Change a repo
convention and all four files need the update in the same PR; nothing makes
them cascade.
Two selections, not one
It is tempting to read "switch harness" as one decision. It is actually two, and keeping them separate matters:
- The interactive harness — which binary you run (
claude,pi,colleague,qwen).cdinto the clone and run any of them; all four are live simultaneously, and none of them requires editing a file or flipping a switch. A harness can be force-selected for one invocation (e.g. a CI smoke check) without ever touchingculture.yaml— seedocs/automation-contract.md. - The mesh resident — the single
backendculture.yamldeclares, which is what the Culture daemon starts and whatsteward doctorchecks.guild harness use <name>changes only this.
culture.yaml's backend affects (2) only. It never affects which harness
you can invoke interactively in (1). See
docs/harness-selection.md for the full writeup.
Development
uv run pytest -n auto --cov=xitter --cov-report=term # coverage floor: 60%
uv run black xitter tests && uv run isort xitter tests # line length 100
uv run flake8 xitter tests
uv run bandit -c pyproject.toml -r xitter
python3 scripts/scan-secrets.py # committed-secret gate
uv run python scripts/harness-smoke.py --stage all --require config
Every PR bumps the version in pyproject.toml and adds a CHANGELOG.md
entry — even docs-only PRs. The version-check CI job blocks merge on the
version bump only (it compares project.version against main); the
changelog entry is convention, not an enforced gate. Pushing to main
publishes to PyPI via Trusted Publishing.
markdownlint-cli2 is a Node tool and is not installed by uv sync —
npm install -g markdownlint-cli2@0.21.0 (the version CI pins) if you want
to run the markdown lint locally.
See CLAUDE.md for the full conventions and architecture.
License
Apache 2.0 — see LICENSE.
Metadata
Release files for xitter 0.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| xitter-0.9.1.tar.gz | 239.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xitter-0.9.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 264.6 kB
Release files / xitter-0.9.1.tar.gz
| Download URL | xitter-0.9.1.tar.gz |
|---|---|
| Size | 239.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5041e35c8cdbf5f41e6cad77aae57289229423659b6987c8cfb9308b69d5f271
|
|
BLAKE2b-256 checksum How to use checksums |
d15eb8dddb5cde7f10afb5538a40dec059855086c3a57a46c8d9a50e8d2e1865
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / xitter-0.9.1-py3-none-any.whl
| Download URL | xitter-0.9.1-py3-none-any.whl |
|---|---|
| Size | 24.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
104494fdd460a59bf76f2dfc60f8fdab25f1e0f4135ec8e5c3ddfd51ca90fe05
|
|
BLAKE2b-256 checksum How to use checksums |
2e70cf939716cae3dd1bdeb681a646d44cd4cfa4f131a9c84f9a40149cddd831
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for xitter 0.9.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.