Skip to content

Commit 6695dea

Browse files
Add agent permissions documentation
- Add comprehensive documentation for agent permissions settings - Include details on Enable Linear Auto State Change setting - Document all permission toggles: PR Creation, Rules Detection, Linear Self-Assign, and Linear Auto State Change - Update docs.json to include new agent-permissions page in Settings group - Add best practices and security considerations
1 parent 08ab649 commit 6695dea

File tree

2 files changed

+77
-1
lines changed

2 files changed

+77
-1
lines changed

docs/docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
},
4848
{
4949
"group": "Settings",
50-
"pages": ["settings/repo-rules", "settings/model-configuration"]
50+
"pages": ["settings/agent-permissions", "settings/repo-rules", "settings/model-configuration"]
5151
}
5252
]
5353
},

docs/settings/agent-permissions.mdx

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
title: "Agent Permissions"
3+
sidebarTitle: "Agent Permissions"
4+
icon: "user-shield"
5+
---
6+
7+
Agent Permissions allow you to configure what actions the AI agent is allowed to perform across your organization. These settings provide fine-grained control over the agent's capabilities, ensuring it operates within your team's preferred workflows and security boundaries.
8+
9+
## Accessing Agent Permissions
10+
11+
Agent Permission settings are applied globally for your entire organization. You can access and modify these settings by navigating to:
12+
13+
[**codegen.com/settings/permissions**](https://codegen.com/settings/permissions)
14+
15+
<Frame caption="Agent Permissions UI at codegen.com/settings/permissions">
16+
<img src="/images/agent-permissions.png" alt="Agent Permissions Configuration" />
17+
</Frame>
18+
19+
## Available Permission Settings
20+
21+
### Enable PR Creation
22+
23+
**Control whether the codegen agent is able to create pull requests in your repositories in response to user requests.**
24+
25+
When enabled, the agent can automatically create pull requests when implementing features, fixing bugs, or making other code changes. When disabled, the agent will make changes locally but won't create PRs, requiring manual PR creation.
26+
27+
- **Default**: Enabled
28+
- **Use Case**: Disable if you prefer manual PR creation or have strict PR workflows
29+
30+
### Enable Rules Detection
31+
32+
**Allow the agent to automatically detect and apply rules from .cursorrules and .windsurfrules files in your repositories.**
33+
34+
This setting enables the agent to automatically discover and follow coding standards, style guides, and other rules defined in your repository's configuration files.
35+
36+
- **Default**: Enabled
37+
- **Use Case**: Disable if you want to manually control rule application or don't use these rule files
38+
39+
### Enable Linear Self-Assign
40+
41+
**Allow the codegen agent to self-assign Linear issues, enabling it to spin off other agents.**
42+
43+
When enabled, the agent can assign itself to Linear issues and potentially delegate work to other agent instances for parallel processing.
44+
45+
- **Default**: Enabled
46+
- **Use Case**: Disable if you prefer manual issue assignment or want to limit agent autonomy
47+
48+
### Enable Linear Auto State Change
49+
50+
**When enabled, the agent will automatically move Linear issues to 'Started' state when self-assigning them.**
51+
52+
This setting automates the workflow by updating issue status when the agent begins work, providing better visibility into what the agent is actively working on.
53+
54+
- **Default**: Disabled
55+
- **Use Case**: Enable for automatic issue tracking and improved project visibility
56+
57+
## Best Practices
58+
59+
### Security Considerations
60+
61+
- Review permission settings regularly to ensure they align with your team's security policies
62+
- Consider disabling PR creation in production environments if you require manual review processes
63+
- Monitor agent activity when enabling self-assignment features
64+
65+
### Workflow Integration
66+
67+
- Enable Linear Auto State Change if your team relies on Linear for project tracking
68+
- Coordinate permission settings with your existing CI/CD and review processes
69+
- Consider your team's preferred level of automation when configuring these settings
70+
71+
## Related Documentation
72+
73+
- [Repository Rules](/settings/repo-rules) - Configure repository-specific behavior
74+
- [Linear Integration](/integrations/linear) - Set up Linear workspace integration
75+
- [Model Configuration](/settings/model-configuration) - Configure LLM settings
76+

0 commit comments

Comments
 (0)