Metadata-Version: 2.4
Name: infinitecontex
Version: 0.2.0
Summary: Infinite Context: local-first project memory engine for AI coding workflows
Project-URL: Homepage, https://github.com/desenyon/infinitecontex
Project-URL: Repository, https://github.com/desenyon/infinitecontex
Project-URL: Issues, https://github.com/desenyon/infinitecontex/issues
Project-URL: Changelog, https://github.com/desenyon/infinitecontex/releases
Author: Infinite Context Contributors
License: MIT
License-File: LICENSE
Keywords: ai,cli,context,developer-tools,memory
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Requires-Python: >=3.11
Requires-Dist: networkx>=3.4.2
Requires-Dist: orjson>=3.10.0
Requires-Dist: pydantic-settings>=2.8.0
Requires-Dist: pydantic>=2.11.0
Requires-Dist: rich>=13.9.0
Requires-Dist: typer>=0.16.0
Requires-Dist: watchfiles>=1.0.4
Provides-Extra: dev
Requires-Dist: build>=1.2.2.post1; extra == 'dev'
Requires-Dist: mypy>=1.15.0; extra == 'dev'
Requires-Dist: pytest-cov>=6.0.0; extra == 'dev'
Requires-Dist: pytest>=8.3.4; extra == 'dev'
Requires-Dist: ruff>=0.11.0; extra == 'dev'
Requires-Dist: types-networkx>=3.4.2.20250211; extra == 'dev'
Description-Content-Type: text/markdown

# Infinite Context

`infinitecontex` is a local-first project memory CLI for coding workflows. It captures a balanced view of the repo, current git state, runtime failures, and developer intent, then turns that into snapshots, handoff files, and restore prompts.

Version: `0.2.0`

## What Changed In 0.2.0

- Reworked the product around a structured `session` workflow instead of a blind watcher loop.
- Improved context capture so snapshots include richer file insights and more useful working-state signals.
- Replaced brittle chat parsing with transcript-style intent extraction plus transparent source discovery.
- Fixed CLI UX inconsistencies, including broken human-readable search results.
- Updated docs to match actual behavior and storage paths.

## Install

Requirements:

- Python `3.11+`
- [uv](https://docs.astral.sh/uv/) recommended

### Install the CLI with `uv`

Use `uv tool install` for a global CLI install:

```bash
uv tool install infinitecontex
infctx --version
```

Upgrade later with:

```bash
uv tool upgrade infinitecontex
```

If the executable already exists locally, reinstall with:

```bash
uv tool install --force infinitecontex
```

### Run from source during development

From the repository root:

```bash
uv sync --extra dev
uv run infctx --version
uv run infctx --help
```

### One-off run without installing globally

```bash
uv tool run --from infinitecontex infctx --version
```

## Quick Start

Run these commands from the repository root you want to snapshot.

```bash
# Initialize once per repo
uv run infctx init

# Optional: apply the included Python-oriented preset
uv run infctx config --set-file config/default.json

# Capture a one-off snapshot
uv run infctx snapshot --goal "overhaul the CLI workflow"

# Start a structured live session with an immediate snapshot
uv run infctx session --goal "overhaul the CLI workflow"

# Inspect current state
uv run infctx status

# Generate a handoff prompt
uv run infctx prompt --mode generic-agent-restore --token-budget 1200
```

If you are operating from outside the repo, pass `--project-root` explicitly:

```bash
uv run infctx config \
  --project-root /path/to/repo \
  --set-file config/default.json
```

## Primary Workflow

`infctx init`

- Creates `.infctx/` and its local metadata store.
- Safe to rerun.

`infctx session`

- Takes an immediate initial snapshot.
- Watches filtered project changes.
- Excludes noisy paths like `.infctx/`.
- Shows recent changed files, last trigger, and skipped cooldown batches.

`infctx snapshot`

- Runs the same capture pipeline without entering live mode.

`infctx status`

- Shows the latest snapshot, current goal, active tasks, open issues, pins, and recent commits.

`infctx ingest-chat`

- Ingests an exported transcript or auto-discovers local chat sources.
- Stores inferred goals, decisions, tasks, issues, questions, and signal provenance.
- `--file` is currently more reliable than `--auto`.

`infctx watch`

- Compatibility alias for `infctx session`.

## Generated State

Snapshots and outputs are stored in `.infctx/`, including:

- `.infctx/metadata/state.db`
- `.infctx/snapshots/`
- `.infctx/prompts/`
- `.infctx/agents/`
- `.infctx/working_set/`

Every snapshot regenerates:

- `.infctx/agents/overview.md`
- `.infctx/agents/architecture.md`
- `.infctx/agents/behavioral.md`
- `.infctx/agents/decisions.md`
- `.infctx/agents/recent_changes.md`
- `.infctx/agents/instructions.md`

## Recommended Usage

For the best results:

1. Start with an explicit goal.
2. Ingest a real transcript with `ingest-chat --file` when available.
3. Use `session` for live work and `snapshot` for one-off refreshes.
4. Read the generated files in `.infctx/agents/` before trusting the restore prompt.

Recommended order:

```bash
uv run infctx init
uv run infctx ingest-chat --file /path/to/session.txt
uv run infctx snapshot --goal "continue current work"
uv run infctx status
uv run infctx prompt --mode generic-agent-restore --token-budget 1200
```

## Development

```bash
uv sync --extra dev
uv run ruff check .
uv run mypy src
uv run pytest
```

## Documentation

- `docs/overview.md`
- `docs/architecture.md`
- `docs/cli-reference.md`
- `docs/config-reference.md`
- `docs/troubleshooting.md`
