Give your AI agent project-wide context it never forgets.
AI for Bharat Hackathon
Team Vanta β Aahil Khan, Anoushka Awasthi, Maulik Dang, Sanyam Wadhwa
FlowSync gives AI coding agents β GitHub Copilot, Cursor, Claude β persistent project memory via the Model Context Protocol (MCP).
Your agent calls log_context to record why it made a decision, and search_context to recall what the team decided weeks ago. Five MCP tools turn your agent from a stateless autocomplete into a teammate that remembers everything.
For developers who don't use an AI agent, FlowSync also auto-captures context from every git push as a built-in fallback.
AI coding agents are powerful but stateless β they lose all project context between sessions. Traditional tools can't fix this:
| Tool | Limitation |
|---|---|
| Git Logs | Stores what changed, not why |
| Documentation | Requires manual updates; goes stale quickly |
| AI Assistants | No persistent memory across sessions |
| Chat history | Fragmented, unsearchable, per-user |
After completing a task, your AI agent calls log_context to record the decisions made, risks introduced, and reasoning β structured and searchable. This is FlowSync's core value: capturing the why behind code, not just the what.
Before starting work, your agent calls search_context with a natural-language question like "what did we decide about auth?" β and gets a grounded answer with source citations, powered by Titan Embeddings + Nova Pro RAG.
For developers who don't use an AI agent, a post-push hook automatically sends diffs to Amazon Bedrock (Nova Pro) which extracts decisions, risks, tasks, and affected files. The project brain grows either way.
Any team member can view the context timeline, chat with the project brain, or ask natural language questions from the web dashboard β no AI agent required.
log_contextMCP Tool β AI agent records decisions, risks, reasoning, and tasks after every unit of worksearch_contextMCP Tool β AI agent queries project history with natural language; gets grounded, citation-backed answers- 5 MCP Tools Total β
get_project_context,get_recent_changes,search_context,log_context,get_eventsβ works with Copilot, Cursor, Claude - Auto-Capture Fallback β Every git push triggers AI extraction via Nova Pro; project brain grows even without an AI agent
- Strict Traceability & Source Citations β Every AI insight is linked back to its originating commit or logged context, preventing hallucinations
- Team Dashboard β Real-time timeline of decisions, risks, and tasks across all branches and contributors
CLIENT LAYER BACKEND LAYER (AWS)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
VS Code Extension (VSIX) Amazon API Gateway
βββ Git push hook βββΊ βββ Ingestion (Lambda)
βββ MCP Tool calls β βββ Validates, stores to DynamoDB
β Invokes AI processing async
β
MCP Server (stdio) ββββΊ βββ AI Processing (Lambda + Nova Pro)
βββ get_project_context β βββ Extracts context, embeddings,
βββ get_recent_changes β merge propagation
βββ search_context β
βββ log_context βββ MCP Handler (Lambda)
βββ get_events β βββ Routes 5 MCP tool calls
β
Web Dashboard (Next.js) βββ βββ Query (Lambda + Nova Pro)
(hosted on S3 + CloudFront) β βββ Natural language Q&A, RAG
β
βββ Chat (Lambda + Nova Lite)
βββ Conversational interface
STORAGE
βββ flowsync-projects β DynamoDB (project metadata + API tokens)
βββ flowsync-events β DynamoDB (raw push events)
βββ flowsync-context β DynamoDB (AI-extracted context + embeddings)
βββ flowsync-cache β DynamoDB (RAG response cache, 1-hr TTL)
βββ flowsync-raw-* β S3 (raw event archive)
1. Agent works on task β 2. Agent calls log_context β 3. Context stored in Project Brain
β β
6. Team views dashboard β 5. RAG answers with citations β 4. Agent calls search_context
ββ Fallback: git push auto-captures diffs ββ
Key Actors:
- AI Agent β Primary user; logs decisions via
log_context, queries viasearch_context - Developer β Codes normally; pushes trigger auto-capture as fallback
- Team Lead / Member β Views dashboard, chats with project brain
| Layer | Technology |
|---|---|
| IDE Extension | TypeScript / Node.js (VS Code) |
| MCP Server | TypeScript, @modelcontextprotocol/sdk, stdio transport |
| API & Security | Amazon API Gateway (TLS 1.3, Bearer tokens, rate limiting) |
| Serverless Compute | AWS Lambda (Python 3.12) |
| AI / LLM | Amazon Bedrock β Nova Pro (intent extraction), Nova Lite (chat/Q&A) |
| Embeddings | Amazon Titan Text Embeddings v1 |
| Database | Amazon DynamoDB |
| Asset Storage | Amazon S3 |
| Frontend Dashboard | Next.js 14, React 18, Tailwind CSS, shadcn/ui β hosted on AWS S3 + CloudFront |
| Component | AWS Service | Monthly Cost |
|---|---|---|
| Intent Extraction | Amazon Bedrock (Nova Pro) | ~βΉ420 ($5.00) |
| Chat & Q&A | Amazon Bedrock (Nova Lite) | ~βΉ85 ($1.00) |
| Embeddings | Amazon Titan Embeddings | ~βΉ84 ($1.00) |
| Compute | AWS Lambda | <βΉ170 ($2.00) |
| Storage | Amazon DynamoDB | ~βΉ420 ($5.00) |
| API & Network | Amazon API Gateway | ~βΉ265 ($3.15) |
| Total | ~βΉ1,400 ($17.00) / month |
~βΉ350 ($4.00) per developer per month (4-person team)
- Zero Idle Cost β Serverless architecture means you pay βΉ0 when the team isn't coding
- High ROI β Saving just a couple of hours of confusion per month makes it pay for itself
- Linear Scalability β Costs grow linearly with team activity, no sudden tier jumps
FlowSync ingests unpredictable bursts of developer events β spiky, bursty, schema-light workloads that would thrash a relational DB. DynamoDB delivers single-digit millisecond reads at any scale, and PAY_PER_REQUEST means βΉ0 idle cost overnight when teams aren't coding. A JOIN-heavy RDS instance would sit idle burning reserved capacity.
There is no sustained load β events arrive in bursts during working hours then go silent. Lambda scales to zero between events and to hundreds of concurrent executions during a commit storm. EC2 or ECS would require capacity planning, health checks, and a baseline bill even at rest.
us.amazon.nova-pro-v1:0 is used only for high-value, once-per-commit intent extraction where accuracy matters. us.amazon.nova-lite-v1:0 handles interactive chat and Q&A where latency matters. This splits cost and latency: Pro costs ~4Γ more; routing cheaper queries to Lite cuts the AI bill by ~60% for typical usage.
The ingestion Lambda stores the raw event to DynamoDB immediately (200 ms latency), then fires invokeAsync to the AI processing Lambda. The developer's push hook gets an instant 200 OK and is never blocked waiting on Bedrock. AI processing happens in the background within seconds.
Every raw event payload is also archived to S3 (flowsync-raw-*). This provides a full audit trail for debugging, compliance, and potential future ML training β at roughly βΉ1.7/GB/month with no compute cost.
API Gateway provides built-in rate limiting, per-client API keys, request validation, and TLS termination β all configured with a single CDK resource. An ALB would require a separate WAF, custom auth Lambda, and manual cert rotation.
Amazon Titan Text Embeddings v1 is natively integrated with Bedrock, requires no external vector DB, and stores 1,536-dimension embedding arrays directly in DynamoDB beside the context item. This eliminates the operational overhead of running a separate Pinecone or pgvector instance.
Project API tokens are hashed with scrypt (N=16384, r=8, p=1). Scrypt is memory-hard (not just CPU-hard like bcrypt), making GPU-based brute-force attacks ~100Γ more expensive for an attacker, with no observable difference to the user.
| FlowSync | Git Logs | Documentation | AI Assistants | |
|---|---|---|---|---|
| AI agent can log & query context | β | β | β | β |
| Captures why changes happen | β | β | β | β |
| Auto-updated (no manual work) | β | β | β | β |
| Persistent project memory | β | β | β | β |
| Natural language Q&A with citations | β | β | β | Partial |
| MCP-native (works with Copilot/Cursor) | β | β | β | β |
- Agent-First Architecture β Built for AI agents as the primary user; MCP tools are the main interface, not an afterthought
- Persistent Memory β Unlike chat history, FlowSync stores structured, searchable project knowledge forever
- Dual Input β AI agent logging + automatic git push capture ensures no context is ever lost
- Guaranteed Accountability β Strict traceability and source citations prevent AI hallucinations about project facts
- First of its kind β The first system that gives AI coding agents persistent, project-wide memory via MCP
- VS Code 1.85+
- A git repository
Download flowsync-1.0.1.vsix from the Releases page or from the FlowSync website.
code --install-extension flowsync-1.0.1.vsixOpen your repo in VS Code. Click the β‘ FlowSync button in the status bar β Initialize Project.
FlowSync auto-detects your project name, languages, frameworks, and branch. Youβll receive a Project ID and API Token β save these and share the token with teammates.
Your agent (Copilot, Cursor, Claude) should automatically discover 5 MCP tools: log_context, search_context, get_project_context, get_recent_changes, and get_events.
If not, add .vscode/mcp.json to your repo:
- Your AI agent calls
log_contextafter completing tasks andsearch_contextbefore starting new work β automatically - Git pushes are auto-captured as a fallback, even without an AI agent
- Open the dashboard at flowsync.site with your Project ID and Token
Try it now: Visit the dashboard and click βTry Demo Projectβ to explore a live project β no setup needed.
- Technical Deep Dive β Full architecture, implementation details, MCP server, RAG pipeline, caching, security, and more
- Performance Report β Benchmark results, latency breakdowns, extraction accuracy, and cost analysis
| Name | Role |
|---|---|
| Aahil Khan | Team Leader |
| Anoushka Awasthi | Team Member |
| Maulik Dang | Team Member |
| Sanyam Wadhwa | Team Member |
Built with β€οΈ for the AI for Bharat Hackathon
{ "servers": { "flowsync": { "type": "stdio", "command": "node", "args": ["${workspaceFolder}/mcp-server/dist/index.js"], "env": { "FLOWSYNC_PROJECT_ID": "<your-project-id>", "FLOWSYNC_TOKEN": "${input:flowsync-token}" } } } }