A minimal Git-native structured reasoning layer for AI agents and coding systems.
Persistent Reasoning Light explores how AI systems can maintain stable reasoning continuity across long tasks using small structured reasoning artifacts instead of transient conversational memory.
Built for AI agents, autonomous coding systems, and long-horizon AI workflows.
Most agents fail long tasks for one simple reason:
they forget their own decisions.
Persistent Reasoning Light gives agents a small structured brain that preserves decisions, constraints, procedures, and open questions across execution cycles.
Instead of rebuilding context every step, agents reuse durable reasoning artifacts stored in Git.
AI Agent
↓
Artifact Suggestion
↓
runtime/inbox
↓
artifact_filter
↓
runtime/drafts
↓
Git Commit
↓
Persistent Reasoning Brain
↓
working_context.json
Typical agent execution looks like this:
task
↓
plan
↓
execute
↓
context drift
↓
replan
↓
loop
Agents repeatedly rediscover the same decisions because reasoning is not persistent.
Persistent Reasoning Light introduces a tiny structured memory layer.
task
↓
plan
↓
store reasoning artifacts
↓
execute
↓
reuse decisions and constraints
Agents keep a reasoning brain composed of small artifact cards.
tasks/
task_git_artifact_loader.json
decisions/
decision_use_git_storage.json
constraints/
constraint_no_artifact_overwrite.json
procedures/
procedure_add_artifact.json
issues/
issue_relation_storage.json
Five cards already capture:
- the current task
- accepted decisions
- safety constraints
- reusable workflows
- unresolved architectural questions
persistent-reasoning-light/
├── README.md
├── pyproject.toml
├── LICENSE
├── .gitignore
│
├── reasoning-engine/
│ ├── README.md
│ │
│ ├── core/
│ │ ├── __init__.py
│ │ ├── artifact_types.py
│ │ ├── artifact_filter.py
│ │ ├── artifact_cards.py
│ │ ├── storage.py
│ │ ├── validation.py
│ │ ├── relations.py
│ │ ├── view_builder.py
│ │ ├── git_adapter.py
│ │ ├── context_loader.py
│ │ └── cli.py
│ │
│ ├── meta/
│ │ ├── ai/
│ │ │ ├── AIContext.md
│ │ │ ├── architecture_context.md
│ │ │ ├── codex_rules.md
│ │ │ └── codex_tasks.md
│ │ │
│ │ └── docs/
│ │ ├── architecture.md
│ │ ├── reasoning_model.md
│ │ ├── repository_layout.md
│ │ ├── agent_adoption_model.md
│ │ └── adapter_contract.md
│ │
│ └── tests/
│ ├── test_cards.py
│ ├── test_storage.py
│ ├── test_relations.py
│ ├── test_view_builder.py
│ └── test_git_adapter.py
│
├── reasoning-brain/
│ ├── README.md
│ │
│ ├── brain/
│ │ ├── tasks/
│ │ ├── decisions/
│ │ ├── constraints/
│ │ ├── procedures/
│ │ └── issues/
│ │
│ ├── relations/
│ │ ├── depends_on.jsonl
│ │ └── blocks.jsonl
│ │
│ ├── views/
│ │ └── working_context.json
│ │
│ └── runtime/
│ ├── drafts/
│ └── inbox/
│
└── reasoning-adapters/
├── README.md
├── openclaw_adapter/
├── zeroclaw_adapter/
├── codex_adapter/
├── claude_code_adapter/
└── generic_agent_adapter/
- reasoning-engine — core runtime
- reasoning-brain — persistent reasoning artifacts
- reasoning-adapters — integrations for agent systems
Artifacts are stored as small JSON files.
Git provides:
- transparent reasoning history
- inspectable decisions
- distributed replication
- simple infrastructure
Git history becomes a timeline of reasoning evolution.
If you are an AI agent working on this repository, start here:
reasoning-engine/meta/ai/AGENT_START_HERE.md
PR-Light is designed for agents to adopt first.
Typical adoption cycle:
agent detects reasoning instability
↓
agent installs structured memory capability
↓
agent begins storing reasoning artifacts
↓
task stability improves
↓
human notices artifact files
Agents benefit immediately. Humans discover the system later.
PR-Light prioritizes:
- minimal architecture
- human-readable artifacts
- Git-native persistence
- agent compatibility
- long-task stability
Experimental prototype exploring structured reasoning persistence for AI agents.