Infinite Context: local-first project memory engine for AI coding workflows
Project description
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
sessionworkflow 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 recommended
Install the CLI with uv
Use uv tool install for a global CLI install:
uv tool install infinitecontex
infctx --version
Upgrade later with:
uv tool upgrade infinitecontex
If the executable already exists locally, reinstall with:
uv tool install --force infinitecontex
Run from source during development
From the repository root:
uv sync --extra dev
uv run infctx --version
uv run infctx --help
One-off run without installing globally
uv tool run --from infinitecontex infctx --version
Quick Start
Run these commands from the repository root you want to snapshot.
# 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:
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.
--fileis 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:
- Start with an explicit goal.
- Ingest a real transcript with
ingest-chat --filewhen available. - Use
sessionfor live work andsnapshotfor one-off refreshes. - Read the generated files in
.infctx/agents/before trusting the restore prompt.
Recommended order:
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
uv sync --extra dev
uv run ruff check .
uv run mypy src
uv run pytest
Documentation
docs/overview.mddocs/architecture.mddocs/cli-reference.mddocs/config-reference.mddocs/troubleshooting.md
Project details
Release history Release notifications | RSS feed
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 infinitecontex-0.2.0.tar.gz.
File metadata
- Download URL: infinitecontex-0.2.0.tar.gz
- Upload date:
- Size: 7.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f60f9ba287e97ec43137490625b13402c4b5c70ce16e514a74939b1e91659b3
|
|
| MD5 |
60635472f90655fd5cfc5edb4ac4ad6f
|
|
| BLAKE2b-256 |
c4db09c3f37a2d3f12051cb727c7bb233de837c7b405bc563a5f7f2a3de8102a
|
Provenance
The following attestation bundles were made for infinitecontex-0.2.0.tar.gz:
Publisher:
release.yml on desenyon/infinitecontex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
infinitecontex-0.2.0.tar.gz -
Subject digest:
2f60f9ba287e97ec43137490625b13402c4b5c70ce16e514a74939b1e91659b3 - Sigstore transparency entry: 1108604602
- Sigstore integration time:
-
Permalink:
desenyon/infinitecontex@b1f905f5b2818b9b0fb5228b9dfab37ba217af9e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/desenyon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b1f905f5b2818b9b0fb5228b9dfab37ba217af9e -
Trigger Event:
push
-
Statement type:
File details
Details for the file infinitecontex-0.2.0-py3-none-any.whl.
File metadata
- Download URL: infinitecontex-0.2.0-py3-none-any.whl
- Upload date:
- Size: 41.2 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 |
8e47ef4fc71e8ebeb0039bdbd6b39e95e96e903503c4bbf277f929ab509121ca
|
|
| MD5 |
75c30b8624b41ebc40ee0ffd705443f6
|
|
| BLAKE2b-256 |
83507aad00dbaf5694ffae947bf65cd16545bb136597f175c359fc4bfc56c16d
|
Provenance
The following attestation bundles were made for infinitecontex-0.2.0-py3-none-any.whl:
Publisher:
release.yml on desenyon/infinitecontex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
infinitecontex-0.2.0-py3-none-any.whl -
Subject digest:
8e47ef4fc71e8ebeb0039bdbd6b39e95e96e903503c4bbf277f929ab509121ca - Sigstore transparency entry: 1108604619
- Sigstore integration time:
-
Permalink:
desenyon/infinitecontex@b1f905f5b2818b9b0fb5228b9dfab37ba217af9e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/desenyon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b1f905f5b2818b9b0fb5228b9dfab37ba217af9e -
Trigger Event:
push
-
Statement type: