-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontext-forge.yml.example
More file actions
71 lines (66 loc) · 2.69 KB
/
Copy pathcontext-forge.yml.example
File metadata and controls
71 lines (66 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# ─────────────────────────────────────────────────────────────────
# context-forge configuration
# Copy this file to context-forge.yml and customize
# ─────────────────────────────────────────────────────────────────
# ─── Repositories ─────────────────────────────────────────────────
repos:
# Local repository (mounted as a Docker volume via docker-compose.override.yml)
- name: my-backend
type: local
path: /repos/my-backend # path inside the container
language: python # python | typescript | javascript | go | java | auto
# Remote GitHub repository (cloned automatically)
- name: my-frontend
type: github
url: https://github.com/myorg/my-frontend
branch: main
# token: optional, overrides GITHUB_TOKEN from .env
# Remote GitLab self-hosted repository
- name: platform
type: gitlab
url: https://gitlab.mycompany.com/team/platform
branch: develop
# token: optional, overrides GITLAB_TOKEN from .env
# For self-hosted GitLab, any URL is supported
# ─── Memory ───────────────────────────────────────────────────────
memory:
# Default user_id for memories. Use per-colleague IDs for multi-user setups.
user_id: default
# ─── Indexing ─────────────────────────────────────────────────────
indexing:
# Automatically index repos on startup and on schedule
auto: true
# Cron schedule for re-indexing and git pull (default: every 6 hours)
schedule: "0 */6 * * *"
# File patterns to exclude from indexing
exclude:
- "**/.git/**"
- "**/node_modules/**"
- "**/__pycache__/**"
- "**/*.pyc"
- "**/dist/**"
- "**/build/**"
- "**/.next/**"
- "**/coverage/**"
- "**/*.min.js"
- "**/*.lock"
- "**/package-lock.json"
# Java
- "**/target/**"
- "**/*.class"
- "**/*.jar"
- "**/*.war"
- "**/.gradle/**"
- "**/*.iml"
- "**/.idea/**"
- "**/.settings/**"
- "**/.project"
- "**/.classpath"
# Angular
- "**/.angular/**"
- "**/*.map"
# Maximum file size to index (in KB)
max_file_size_kb: 500
# Maximum chunk size in tokens (approximate)
chunk_size: 400
chunk_overlap: 50