$ cd examples/python_fastapi_app
$ flowindex init --here
FlowIndex initialized at 
/Users/aditi/Downloads/Aditi-website/repos/FlowIndex/examples/python_fastapi_app
/.flowindex
  Config: 
/Users/aditi/Downloads/Aditi-website/repos/FlowIndex/examples/python_fastapi_app
/.flowindex/config.toml
  Database: 
/Users/aditi/Downloads/Aditi-website/repos/FlowIndex/examples/python_fastapi_app
/.flowindex/flowindex.db

Next: flowindex scan

$ flowindex scan

FlowIndex scan complete

Files indexed: 5
Symbols indexed: 21
Entrypoints found: 4
Tests found: 5
Git commits analyzed: 2
Edges created: 43
Index: 
/Users/aditi/Downloads/Aditi-website/repos/FlowIndex/examples/python_fastapi_app
/.flowindex/flowindex.db


$ flowindex context "fix duplicate payments when webhook retries"
# FlowIndex Context Pack

## Task
fix duplicate payments when webhook retries

## Likely Relevant Entrypoints
- POST /payments
- POST /stripe/webhook

## Likely Relevant Files
- services/payments.py
- tests/test_payments.py

## High-Risk Symbols
- async handle_stripe_webhook(payload)
- test_webhook_retry_updates_ledger(client)

## Tests to Run
- tests/test_payments.py

## Past Related Commits
- (none)

## Caution
- (none)

## Suggested Agent Instructions
Before editing, inspect:
1. entrypoint: POST /payments
2. entrypoint: POST /stripe/webhook
3. file: services/payments.py
4. file: tests/test_payments.py
5. symbol: async handle_stripe_webhook(payload)
6. symbol: test_webhook_retry_updates_ledger(client)
7. run tests: tests/test_payments.py
8. review git history for related bug fixes before editing shared modules
