Skip to main content

Ghost Reason

Trace your AI agent's reasoning, not just its tool calls.

Ghost Reason is a local-first Python package that logs the full reasoning timeline of an AI agent. It writes everything to a SQLite database and gives you a clean CLI to view the chain of decisions.

Why use it?

Ghost Tracer shows you what the agent did. Ghost Reason shows you why.

Installation

pip install ghost-reason

Usage

from ghost_reason import ReasonTracer
tracer = ReasonTracer()
tracer.log("prompt", user_input)
tracer.log("thought", model_response.content)
tracer.log("tool_call", f"{tool_name}({tool_args})")
tracer.log("tool_result", str(result))

View the timeline

ghost-reason view

License

MIT

Metadata

Release files for ghost-reason 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ghost-reason 0.1.1
File Size Uploaded Provenance Actions
ghost_reason-0.1.1.tar.gz 2.8 kB Without provenance Details for ghost_reason-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ghost-reason 0.1.1
File Interpreter ABI Platform Actions
ghost_reason-0.1.1-py3-none-any.whl Python 3 none any Details for ghost_reason-0.1.1-py3-none-any.whl

Total release size: 6.5 kB

Release files / ghost_reason-0.1.1.tar.gz

Download URL ghost_reason-0.1.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2e55d2b06c82f865139acf34799e148aaf6dcd9d633cbf757eb52eb545145c5f
BLAKE2b-256 checksum
How to use checksums
bd1c7b34736db7772ca1d4ecb2c76bf40ed3a70a64af34402bba589712aed260
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / ghost_reason-0.1.1-py3-none-any.whl

Download URL ghost_reason-0.1.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e00e157e6b270e71da7c212b86abc06881af76f3f9b3446206e52cdb1fe1422
BLAKE2b-256 checksum
How to use checksums
6fe4ddac09c6f699cb02aa4f042d67f4fdc406078d7c05011225ad746e43a8c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for ghost-reason 0.1.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page