aai-coding
aai-coding contains Answer.AI's shared configuration, skills, and tools for Claude Code, Codex, and Antigravity. It defines the team's coding and writing guidance, tool permissions, and Python workflows. An LLM setting up the harness should read this README before following SETUP.md. The design decisions below also help you advise users who already have a setup.
Getting started
You do not need an Answer.AI account or our existing workspace. SETUP.md starts by creating a workspace in a directory you choose, managed by fastws. It then covers harness configuration.
The workspace holds separate Git checkouts that share one uv environment. Because its Python projects use editable installs, changes in a checkout are available without reinstalling it.
Start with:
uvx --from 'fastws-cli>=0.0.14' ws-setup AnswerDotAI/aai-ws ~/aai-ws
Activate the new environment and follow SETUP.md. The public aai-ws baseline includes aai-coding, fastws, kernel startup and editing tools, and tools used by the Claude hooks. Other Python dependencies are installed as packages.
Answer.AI team members use AnswerDotAI/private-ws instead of AnswerDotAI/aai-ws in that command. Both workspace repos receive shared baseline updates through ws-sync. In either setup:
repos.txtholds the shared baseline.- Gitignored
repos-local.txtholds personal extras. - fastws creates and maintains the workspace's untracked
pyproject.toml.
Reuse existing workspaces. Do not run ws-setup on them. See the team migration instructions.
Tool workflows
Claude Code, Codex, and Antigravity use persistent kernels for Python, file inspection, searching, notebooks, and most edits. Pyskills provide the tools; exhash provides hash-verified editing. Use Bash for shell commands, builds, and Git. Use native tools where the installed skills call for them.
Run ordinary Claude Code, Codex, or Antigravity with clikernel-mcp registered as an MCP server. Each agent has its own kernel and Python state. Claude Code and Antigravity use clikernel-hook to isolate callers on a shared MCP connection (subagents in Claude Code; all conversations and subagents in Antigravity). Codex isolates its MCP sessions without that hook.
Claude Code uses the persistent-python and pyskills host skills. Codex and Antigravity use kernel-notebook-editing from skills/clikernel, cli-notebook-editing only when the user explicitly requests working without a kernel, and better_swarm for Antigravity swarm orchestration. Antigravity packages its MCP server, hooks, skills, and core.md as one global plugin at ~/.gemini/config/plugins/aai-coding/. The setup steps link the existing skills without changing them.
Task guidance is in pyskills. A pyskill is a Python module docstring, listed by list_pyskills() and read with doc(). Pyskills are versioned, released, and installed with their Python packages.
What is in here
The repository contains:
aai_coding/: harness-specific Python modules (harness_docs,aai-hook, andclaudesub), listed below.skills/: host-levelSKILL.mdsources linked into each harness's skills directory. SETUP.md lists the links.plugins/safecmd/: a Claude Code plugin that auto-approves allowlisted Bash commands using thesafecmdpackage.prompts/: shared behavioural rules and a replacement Claude Code system prompt, described below.SETUP.md: a setup runbook written as a prompt for an LLM session. It is not an installer script.
Python modules
harness_docsexplains how to find official harness documentation throughllms.txt.harnessimplements hooks for Claude Code, Codex, and Antigravity through theaai-hookCLI. It is not a pyskill.claudesublaunches headless Claude child sessions from a compacted parent transcript.
Reusable coding, writing, understanding, and vision pyskills (coding_patterns, nbreview, write_prose, write_docs, write_summary, write_llms, understand, vision) live in aai-pyskills.
Prompts
prompts/core.md contains harness-neutral behavioural rules. Codex reads shared and personal rules from ~/.codex/AGENTS.md, symlinked to core.md or merged into an existing personal file. Claude Code appends core.md to its system prompt. Antigravity loads core.md from rules/AGENTS.md and prompts/agy-kernel.md (its always-on kernel-first rule and better_swarm trigger) from rules/GEMINI.md inside its global plugin, and has no flag to replace its built-in system prompt.
prompts/sysp.md replaces Claude Code's default system prompt. It aims to reduce the default prompt's tendency to give consultant-style advice and act without sufficient justification. Launch with:
claude --system-prompt-file <this repo>/prompts/sysp.md --append-system-prompt-file <this repo>/prompts/core.md
Replacing the default prompt removes its prose, its dynamic environment block and its scratchpad path. Tool schemas remain available.
Design decisions, and why
- Task skills use Python's packaging and discovery rather than a harness's skill machinery. Their instructions and executable tools can share a module. Host skills bootstrap the kernel and explain how to use its tools with the harness.
- This repo's hooks are subcommands of
aai-hookinaai_coding/harness.py. The kernel isolation hook for Claude Code and Antigravity comes fromclikernel. Harness settings register the commands rather than copying their implementations. - Each harness's skills and extra clikernel docs are symlinks into the workspace checkouts. Pulling updates them without copying files. The setup steps merge harness settings and personal instruction files with the user's existing configuration.
- Where the harnesses differ, a module gives each version in the same place, in a dictionary keyed by harness or in neighbouring bullets. There are no generated per-harness templates.
- This repo contains agreed team guidance. Model choice, sounds, and personal workflows such as release management belong in each person's
CLAUDE.md, settings, and local skills.SETUP.mdidentifies which settings are shared and which are personal.
Using and changing it
Activate the workspace's .venv, then work in a project checkout. Use ws-status to inspect local changes, ws-sync to pull and install updates, and ws-add owner/repo to add a project. See the workspace workflow for details, including what syncing changes.
You do not need to start the harness manually each day. Sessions use the skills described in Tool workflows. Agents find Python tools in the pyskills catalog and read their documentation with doc() or pyskills-doc.
To change a skill, edit its source in this checkout. Others receive the changes by pulling. Release with the standard fastship command, ship-release. Bump the version in aai_coding/__init__.py after each release.
Tests cover substantive logic where hidden errors are realistic: event ordering, accumulated state, and duplicate suppression. Do not add tests for prompt wording, straightforward dispatch, or trivial configuration branches. Run the tests with pytest.
Metadata
Release files for aai-coding 0.1.4
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 | Actions |
|---|---|---|---|---|
| aai_coding-0.1.4.tar.gz | 26.1 kB | Without provenance | Details for aai_coding-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aai_coding-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for aai_coding-0.1.4-py3-none-any.whl |
Total release size: 50.4 kB
Release files / aai_coding-0.1.4.tar.gz
| Download URL | aai_coding-0.1.4.tar.gz |
|---|---|
| Size | 26.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d8dc6b88cef25535d775df4ca6d0d051ea1a3d4df0f5f0e177f9b9dae331443
|
|
BLAKE2b-256 checksum How to use checksums |
2eabad4e92e496e1b8c79fe5fb0d3a95523c7cc012311a26c8b7aff79f7871d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / aai_coding-0.1.4-py3-none-any.whl
| Download URL | aai_coding-0.1.4-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4aaf0b51ff37983592e700855feb0c9be89ae17dc5f75e4fed0ce934f8cfc29
|
|
BLAKE2b-256 checksum How to use checksums |
f713983291ff639e27f97867f33820f4874b60227ba4fe937f0e5bc5b45f4bf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for aai-coding 0.1.4
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.