Skip to main content

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

ai_context_tools-0.8.3.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_context_tools-0.8.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file ai_context_tools-0.8.3.tar.gz.

File metadata

  • Download URL: ai_context_tools-0.8.3.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ai_context_tools-0.8.3.tar.gz
Algorithm Hash digest
SHA256 e43f508ce5f7ec191685b6e79db6608017f54a7c1477ab6fdb22689a3a0ed0ea
MD5 988e2210d74d3fb500420ad200da8920
BLAKE2b-256 ee272c8f1f42cee5b2a5cbbf275857a17e2381fbdf506b2d854f17234fa0d5e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_context_tools-0.8.3.tar.gz:

Publisher: upload_to_pypi.yml on freesemt/ai-context-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ai_context_tools-0.8.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_context_tools-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d324c3e1d6b4115ebbe8d9a235ff30c2430db8e24f83ee7e9046ff7b7b0abcea
MD5 927e26112453f09fec5c3177f34668b2
BLAKE2b-256 77a3aa1a6cb1236f2100d1aaf95d048db2a0da0d9e1b290e7ec0f4e79f256433

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_context_tools-0.8.3-py3-none-any.whl:

Publisher: upload_to_pypi.yml on freesemt/ai-context-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page