AI workflow utilities for the AI Context Standard
Project description
ai-context-tools
AI workflow utilities for the AI Context Standard.
Version: tracks AI Context Standard version (currently 0.8.2)
Installation
pip install ai-context-tools
Or for development (from the workspace):
pip install -e C:/Users/takahashi/GitHub/ai-context-tools
Publishing to PyPI
Uses GitHub Actions with PyPI Trusted Publisher (OIDC — no API token needed).
One-time setup on PyPI: Configure a Trusted Publisher at
https://pypi.org/manage/account/publishing/
(or for a new package not yet on PyPI, use the "pending publisher" form)
Settings to enter:
- PyPI project name:
ai-context-tools - Owner:
freesemt - Repository:
ai-context-tools - Workflow:
upload_to_pypi.yml - Environment: (leave blank)
To publish: Go to Actions → "Manual Upload Python Package to PyPI" → Run workflow.
The workflow builds the package, uploads to PyPI via OIDC, and creates a version tag (e.g. v0.8.2).
Tools
aic_tools.notebook — Read notebook cell outputs
Bypasses the built-in read_notebook_cell_output tool size limit by reading
the .ipynb JSON directly from disk.
When to use (routing rule for AI assistants):
After copilot_getNotebookSummary, check each cell's mime types.
If a cell has application/vnd.code.notebook.stdout, use this tool —
the built-in tool will fail silently with "output too large".
CLI:
python -m aic_tools.notebook <notebook.ipynb> <cell_number> [max_lines]
# Examples:
python -m aic_tools.notebook experiments/08d.ipynb 14
python -m aic_tools.notebook experiments/08d.ipynb 14 0 # all lines
Entry point (after install):
aic-notebook experiments/08d.ipynb 14
Python API:
from aic_tools.notebook import read_cell_output
read_cell_output("experiments/08d.ipynb", 14)
read_cell_output("experiments/08d.ipynb", 14, max_lines=0) # all lines
Versioning
Package version tracks the AI Context Standard version that introduced each tool.
0.8.2 = notebook reader introduced in Standard v0.8.2.
Relationship to other tools
| Tool | Language | Role |
|---|---|---|
| vscode-version-recorder | TypeScript / VS Code extension | Records VS Code version to .github/vscode-version.txt |
| ai-context-tools (this package) | Python | AI workflow utilities (notebook output reading, etc.) |
Both tools support the AI Context Standard.
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_context_tools-0.8.2.tar.gz.
File metadata
- Download URL: ai_context_tools-0.8.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfbe4c40c68a84266a8e984ec2a92c4773ba7002dc7a86ed00b48ee47911bae7
|
|
| MD5 |
4df4042840d2e8c58a72020fe089a6cd
|
|
| BLAKE2b-256 |
8aa16033c80dc992206f2bd0031ed0882dcb6b7b158d9c99028ecbad121d162a
|
Provenance
The following attestation bundles were made for ai_context_tools-0.8.2.tar.gz:
Publisher:
upload_to_pypi.yml on freesemt/ai-context-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_context_tools-0.8.2.tar.gz -
Subject digest:
bfbe4c40c68a84266a8e984ec2a92c4773ba7002dc7a86ed00b48ee47911bae7 - Sigstore transparency entry: 1183257757
- Sigstore integration time:
-
Permalink:
freesemt/ai-context-tools@a3975b0ea75183ead32b22904587cf2f1e0b9554 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/freesemt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
upload_to_pypi.yml@a3975b0ea75183ead32b22904587cf2f1e0b9554 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ai_context_tools-0.8.2-py3-none-any.whl.
File metadata
- Download URL: ai_context_tools-0.8.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62f3485c78d0de48ef404d3e3ad7091dea8251b5f03a57b08c3a861e46892cd5
|
|
| MD5 |
b2978b01ec15270fe6c66821cc3c8590
|
|
| BLAKE2b-256 |
fb4b5677c56818b4a95553e920a2a6ed47db694faab17aff5e1d8dd380550ce2
|
Provenance
The following attestation bundles were made for ai_context_tools-0.8.2-py3-none-any.whl:
Publisher:
upload_to_pypi.yml on freesemt/ai-context-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_context_tools-0.8.2-py3-none-any.whl -
Subject digest:
62f3485c78d0de48ef404d3e3ad7091dea8251b5f03a57b08c3a861e46892cd5 - Sigstore transparency entry: 1183257798
- Sigstore integration time:
-
Permalink:
freesemt/ai-context-tools@a3975b0ea75183ead32b22904587cf2f1e0b9554 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/freesemt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
upload_to_pypi.yml@a3975b0ea75183ead32b22904587cf2f1e0b9554 -
Trigger Event:
workflow_dispatch
-
Statement type: